Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hasura.RQL.Types.EventTrigger
Synopsis
- newtype TriggerName = TriggerName {}
- triggerNameToTxt :: TriggerName -> Text
- isIllegalTriggerName :: TriggerName -> Bool
- data Ops
- data SubscribeColumns (b :: BackendType)
- data SubscribeOpSpec (b :: BackendType) = SubscribeOpSpec {
- sosColumns :: SubscribeColumns b
- sosPayload :: Maybe (SubscribeColumns b)
- defaultTimeoutSeconds :: Int
- defaultRetryConf :: RetryConf
- data RetryConf = RetryConf {
- rcNumRetries :: Int
- rcIntervalSec :: Int
- rcTimeoutSec :: Maybe Int
- data EventHeaderInfo = EventHeaderInfo {}
- data WebhookConf
- data WebhookConfInfo = WebhookConfInfo {}
- data TriggerOpsDef (b :: BackendType) = TriggerOpsDef {
- tdInsert :: Maybe (SubscribeOpSpec b)
- tdUpdate :: Maybe (SubscribeOpSpec b)
- tdDelete :: Maybe (SubscribeOpSpec b)
- tdEnableManual :: Maybe Bool
- data EventTriggerCleanupStatus
- data AutoTriggerLogCleanupConfig = AutoTriggerLogCleanupConfig {}
- data TriggerLogCleanupConfig = TriggerLogCleanupConfig {}
- data EventTriggerQualifier = EventTriggerQualifier {}
- data TriggerLogCleanupSources
- data TriggerLogCleanupToggleConfig
- data EventTriggerConf (b :: BackendType) = EventTriggerConf {
- etcName :: TriggerName
- etcDefinition :: TriggerOpsDef b
- etcWebhook :: Maybe InputWebhook
- etcWebhookFromEnv :: Maybe Text
- etcRetryConf :: RetryConf
- etcHeaders :: Maybe [HeaderConf]
- etcRequestTransform :: Maybe RequestTransform
- etcResponseTransform :: Maybe MetadataResponseTransform
- etcCleanupConfig :: Maybe AutoTriggerLogCleanupConfig
- etcTriggerOnReplication :: TriggerOnReplication
- updateCleanupConfig :: Maybe AutoTriggerLogCleanupConfig -> EventTriggerConf b -> EventTriggerConf b
- data RecreateEventTriggers
- data TriggerMetadata = TriggerMetadata {}
- data Event (b :: BackendType) = Event {
- eId :: EventId
- eSource :: SourceName
- eTable :: TableName b
- eTrigger :: TriggerMetadata
- eEvent :: Value
- eTries :: Int
- eCreatedAt :: LocalTime
- eRetryAt :: Maybe UTCTime
- eCreatedAtUTC :: UTCTime
- eRetryAtUTC :: Maybe UTCTime
- data EventWithSource (b :: BackendType) = EventWithSource {}
- data ProcessEventError
- data EventTriggerInfo (b :: BackendType) = EventTriggerInfo {
- etiName :: TriggerName
- etiOpsDef :: TriggerOpsDef b
- etiRetryConf :: RetryConf
- etiWebhookInfo :: WebhookConfInfo
- etiHeaders :: [EventHeaderInfo]
- etiRequestTransform :: Maybe RequestTransform
- etiResponseTransform :: Maybe MetadataResponseTransform
- etiCleanupConfig :: Maybe AutoTriggerLogCleanupConfig
- etiTriggerOnReplication :: TriggerOnReplication
- type EventTriggerInfoMap b = HashMap TriggerName (EventTriggerInfo b)
- newtype FetchBatchSize = FetchBatchSize {}
- data DeletedEventLogStats = DeletedEventLogStats {}
- data EventLogStatus
- data GetEventLogs (b :: BackendType) = GetEventLogs {}
- data EventLog = EventLog {
- elId :: EventId
- elSchemaName :: Text
- elTableName :: Text
- elTriggerName :: TriggerName
- elPayload :: Value
- elDelivered :: Bool
- elError :: Bool
- elTries :: Int
- elCreatedAt :: UTCTime
- elLocked :: Maybe UTCTime
- elNextRetryAt :: Maybe UTCTime
- elArchived :: Bool
- data GetEventInvocations (b :: BackendType) = GetEventInvocations {}
- data EventInvocationLog = EventInvocationLog {}
- data GetEventById (b :: BackendType) = GetEventById {}
- data EventLogWithInvocations = EventLogWithInvocations {}
Documentation
newtype TriggerName Source #
Unique name for event trigger.
Constructors
TriggerName | |
Fields |
Instances
triggerNameToTxt :: TriggerName -> Text Source #
Instances
Generic Ops Source # | |
Show Ops Source # | |
Eq Ops Source # | |
Hashable Ops Source # | |
type Rep Ops Source # | |
Defined in Hasura.RQL.Types.EventTrigger type Rep Ops = D1 ('MetaData "Ops" "Hasura.RQL.Types.EventTrigger" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "INSERT" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UPDATE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DELETE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MANUAL" 'PrefixI 'False) (U1 :: Type -> Type))) |
data SubscribeColumns (b :: BackendType) Source #
Instances
data SubscribeOpSpec (b :: BackendType) Source #
Constructors
SubscribeOpSpec | |
Fields
|
Instances
Constructors
RetryConf | |
Fields
|
Instances
FromJSON RetryConf Source # | |
ToJSON RetryConf Source # | |
HasCodec RetryConf Source # | |
Generic RetryConf Source # | |
Show RetryConf Source # | |
NFData RetryConf Source # | |
Defined in Hasura.RQL.Types.EventTrigger | |
Eq RetryConf Source # | |
type Rep RetryConf Source # | |
Defined in Hasura.RQL.Types.EventTrigger type Rep RetryConf = D1 ('MetaData "RetryConf" "Hasura.RQL.Types.EventTrigger" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RetryConf" 'PrefixI 'True) (S1 ('MetaSel ('Just "rcNumRetries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "rcIntervalSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "rcTimeoutSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) |
data EventHeaderInfo Source #
Constructors
EventHeaderInfo | |
Fields |
Instances
data WebhookConf Source #
Constructors
WCValue InputWebhook | |
WCEnv Text |
Instances
data WebhookConfInfo Source #
Constructors
WebhookConfInfo | |
Fields |
Instances
data TriggerOpsDef (b :: BackendType) Source #
The table operations on which the event trigger will be invoked.
Constructors
TriggerOpsDef | |
Fields
|
Instances
data EventTriggerCleanupStatus Source #
Constructors
ETCSPaused | |
ETCSUnpaused |
Instances
data AutoTriggerLogCleanupConfig Source #
Automatic event trigger log cleanup configuration
Constructors
AutoTriggerLogCleanupConfig | |
Fields
|
Instances
data TriggerLogCleanupConfig Source #
Manual event trigger log cleanup configuration
Constructors
TriggerLogCleanupConfig | |
Fields
|
Instances
data EventTriggerQualifier Source #
Constructors
EventTriggerQualifier | |
Fields |
Instances
data TriggerLogCleanupSources Source #
Constructors
TriggerAllSource | |
TriggerSource (NonEmpty SourceName) |
Instances
data TriggerLogCleanupToggleConfig Source #
Constructors
TriggerLogCleanupSources TriggerLogCleanupSources | |
TriggerQualifier (NonEmpty EventTriggerQualifier) |
Instances
data EventTriggerConf (b :: BackendType) Source #
Constructors
Instances
updateCleanupConfig :: Maybe AutoTriggerLogCleanupConfig -> EventTriggerConf b -> EventTriggerConf b Source #
data RecreateEventTriggers Source #
Constructors
RETRecreate | |
RETDoNothing |
Instances
data TriggerMetadata Source #
Constructors
TriggerMetadata | |
Fields |
Instances
data Event (b :: BackendType) Source #
Change data for a particular row
https://docs.hasura.io/1.0/graphql/manual/event-triggers/payload.html
Constructors
Event | |
Fields
|
Instances
data EventWithSource (b :: BackendType) Source #
The event payload processed by processEvent
Constructors
EventWithSource | |
Fields
|
data ProcessEventError Source #
Constructors
PESetRetry UTCTime | |
PESetError |
Instances
Show ProcessEventError Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods showsPrec :: Int -> ProcessEventError -> ShowS # show :: ProcessEventError -> String # showList :: [ProcessEventError] -> ShowS # | |
Eq ProcessEventError Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods (==) :: ProcessEventError -> ProcessEventError -> Bool # (/=) :: ProcessEventError -> ProcessEventError -> Bool # |
data EventTriggerInfo (b :: BackendType) Source #
Constructors
EventTriggerInfo | |
Fields
|
Instances
type EventTriggerInfoMap b = HashMap TriggerName (EventTriggerInfo b) Source #
newtype FetchBatchSize Source #
Constructors
FetchBatchSize | |
Fields |
Instances
Show FetchBatchSize Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods showsPrec :: Int -> FetchBatchSize -> ShowS # show :: FetchBatchSize -> String # showList :: [FetchBatchSize] -> ShowS # | |
Eq FetchBatchSize Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods (==) :: FetchBatchSize -> FetchBatchSize -> Bool # (/=) :: FetchBatchSize -> FetchBatchSize -> Bool # |
data DeletedEventLogStats Source #
Statistics of deleted event logs and invocation logs
Constructors
DeletedEventLogStats | |
Fields |
Instances
Show DeletedEventLogStats Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods showsPrec :: Int -> DeletedEventLogStats -> ShowS # show :: DeletedEventLogStats -> String # showList :: [DeletedEventLogStats] -> ShowS # | |
Eq DeletedEventLogStats Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods (==) :: DeletedEventLogStats -> DeletedEventLogStats -> Bool # (/=) :: DeletedEventLogStats -> DeletedEventLogStats -> Bool # |
data EventLogStatus Source #
Instances
FromJSON EventLogStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods parseJSON :: Value -> Parser EventLogStatus Source # parseJSONList :: Value -> Parser [EventLogStatus] Source # | |
ToJSON EventLogStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods toJSON :: EventLogStatus -> Value Source # toEncoding :: EventLogStatus -> Encoding Source # toJSONList :: [EventLogStatus] -> Value Source # toEncodingList :: [EventLogStatus] -> Encoding Source # | |
Show EventLogStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods showsPrec :: Int -> EventLogStatus -> ShowS # show :: EventLogStatus -> String # showList :: [EventLogStatus] -> ShowS # | |
Eq EventLogStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods (==) :: EventLogStatus -> EventLogStatus -> Bool # (/=) :: EventLogStatus -> EventLogStatus -> Bool # |
data GetEventLogs (b :: BackendType) Source #
Constructors
GetEventLogs | |
Fields
|
Instances
FromJSON (GetEventLogs b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods parseJSON :: Value -> Parser (GetEventLogs b) Source # parseJSONList :: Value -> Parser [GetEventLogs b] Source # | |
ToJSON (GetEventLogs b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods toJSON :: GetEventLogs b -> Value Source # toEncoding :: GetEventLogs b -> Encoding Source # toJSONList :: [GetEventLogs b] -> Value Source # toEncodingList :: [GetEventLogs b] -> Encoding Source # | |
Show (GetEventLogs b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods showsPrec :: Int -> GetEventLogs b -> ShowS # show :: GetEventLogs b -> String # showList :: [GetEventLogs b] -> ShowS # |
Constructors
EventLog | |
Fields
|
Instances
data GetEventInvocations (b :: BackendType) Source #
Constructors
GetEventInvocations | |
Fields
|
Instances
FromJSON (GetEventInvocations b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods parseJSON :: Value -> Parser (GetEventInvocations b) Source # parseJSONList :: Value -> Parser [GetEventInvocations b] Source # | |
ToJSON (GetEventInvocations b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods toJSON :: GetEventInvocations b -> Value Source # toEncoding :: GetEventInvocations b -> Encoding Source # toJSONList :: [GetEventInvocations b] -> Value Source # toEncodingList :: [GetEventInvocations b] -> Encoding Source # | |
Show (GetEventInvocations b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods showsPrec :: Int -> GetEventInvocations b -> ShowS # show :: GetEventInvocations b -> String # showList :: [GetEventInvocations b] -> ShowS # |
data EventInvocationLog Source #
Constructors
EventInvocationLog | |
Fields
|
Instances
data GetEventById (b :: BackendType) Source #
Constructors
GetEventById | |
Fields |
Instances
FromJSON (GetEventById b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods parseJSON :: Value -> Parser (GetEventById b) Source # parseJSONList :: Value -> Parser [GetEventById b] Source # | |
ToJSON (GetEventById b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods toJSON :: GetEventById b -> Value Source # toEncoding :: GetEventById b -> Encoding Source # toJSONList :: [GetEventById b] -> Value Source # toEncodingList :: [GetEventById b] -> Encoding Source # | |
Show (GetEventById b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger Methods showsPrec :: Int -> GetEventById b -> ShowS # show :: GetEventById b -> String # showList :: [GetEventById b] -> ShowS # |
data EventLogWithInvocations Source #
Constructors
EventLogWithInvocations | |
Fields |