Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
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 #
SubscribeOpSpec | |
|
Instances
RetryConf | |
|
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 #
Instances
data WebhookConf Source #
Instances
data WebhookConfInfo Source #
Instances
data TriggerOpsDef (b :: BackendType) Source #
The table operations on which the event trigger will be invoked.
TriggerOpsDef | |
|
Instances
data EventTriggerCleanupStatus Source #
Instances
FromJSON EventTriggerCleanupStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger | |
ToJSON EventTriggerCleanupStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger | |
HasCodec EventTriggerCleanupStatus Source # | |
Generic EventTriggerCleanupStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger type Rep EventTriggerCleanupStatus :: Type -> Type # | |
Show EventTriggerCleanupStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger showsPrec :: Int -> EventTriggerCleanupStatus -> ShowS # show :: EventTriggerCleanupStatus -> String # showList :: [EventTriggerCleanupStatus] -> ShowS # | |
NFData EventTriggerCleanupStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger rnf :: EventTriggerCleanupStatus -> () # | |
Eq EventTriggerCleanupStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger | |
type Rep EventTriggerCleanupStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger |
data AutoTriggerLogCleanupConfig Source #
Automatic event trigger log cleanup configuration
AutoTriggerLogCleanupConfig | |
|
Instances
data TriggerLogCleanupConfig Source #
Manual event trigger log cleanup configuration
TriggerLogCleanupConfig | |
|
Instances
data EventTriggerQualifier Source #
Instances
data TriggerLogCleanupSources Source #
Instances
data TriggerLogCleanupToggleConfig Source #
Instances
data EventTriggerConf (b :: BackendType) Source #
Instances
updateCleanupConfig :: Maybe AutoTriggerLogCleanupConfig -> EventTriggerConf b -> EventTriggerConf b Source #
data RecreateEventTriggers Source #
Instances
Semigroup RecreateEventTriggers Source # | |
Defined in Hasura.RQL.Types.EventTrigger | |
Generic RecreateEventTriggers Source # | |
Defined in Hasura.RQL.Types.EventTrigger type Rep RecreateEventTriggers :: Type -> Type # | |
Show RecreateEventTriggers Source # | |
Defined in Hasura.RQL.Types.EventTrigger showsPrec :: Int -> RecreateEventTriggers -> ShowS # show :: RecreateEventTriggers -> String # showList :: [RecreateEventTriggers] -> ShowS # | |
Eq RecreateEventTriggers Source # | |
Defined in Hasura.RQL.Types.EventTrigger (==) :: RecreateEventTriggers -> RecreateEventTriggers -> Bool # (/=) :: RecreateEventTriggers -> RecreateEventTriggers -> Bool # | |
type Rep RecreateEventTriggers Source # | |
Defined in Hasura.RQL.Types.EventTrigger |
data TriggerMetadata Source #
Instances
data Event (b :: BackendType) Source #
Change data for a particular row
https://docs.hasura.io/1.0/graphql/manual/event-triggers/payload.html
Event | |
|
Instances
data EventWithSource (b :: BackendType) Source #
The event payload processed by processEvent
EventWithSource | |
|
data ProcessEventError Source #
Instances
Show ProcessEventError Source # | |
Defined in Hasura.RQL.Types.EventTrigger showsPrec :: Int -> ProcessEventError -> ShowS # show :: ProcessEventError -> String # showList :: [ProcessEventError] -> ShowS # | |
Eq ProcessEventError Source # | |
Defined in Hasura.RQL.Types.EventTrigger (==) :: ProcessEventError -> ProcessEventError -> Bool # (/=) :: ProcessEventError -> ProcessEventError -> Bool # |
data EventTriggerInfo (b :: BackendType) Source #
EventTriggerInfo | |
|
Instances
type EventTriggerInfoMap b = HashMap TriggerName (EventTriggerInfo b) Source #
newtype FetchBatchSize Source #
Instances
Show FetchBatchSize Source # | |
Defined in Hasura.RQL.Types.EventTrigger showsPrec :: Int -> FetchBatchSize -> ShowS # show :: FetchBatchSize -> String # showList :: [FetchBatchSize] -> ShowS # | |
Eq FetchBatchSize Source # | |
Defined in Hasura.RQL.Types.EventTrigger (==) :: FetchBatchSize -> FetchBatchSize -> Bool # (/=) :: FetchBatchSize -> FetchBatchSize -> Bool # |
data DeletedEventLogStats Source #
Statistics of deleted event logs and invocation logs
Instances
Show DeletedEventLogStats Source # | |
Defined in Hasura.RQL.Types.EventTrigger showsPrec :: Int -> DeletedEventLogStats -> ShowS # show :: DeletedEventLogStats -> String # showList :: [DeletedEventLogStats] -> ShowS # | |
Eq DeletedEventLogStats Source # | |
Defined in Hasura.RQL.Types.EventTrigger (==) :: DeletedEventLogStats -> DeletedEventLogStats -> Bool # (/=) :: DeletedEventLogStats -> DeletedEventLogStats -> Bool # |
data EventLogStatus Source #
Instances
FromJSON EventLogStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger parseJSON :: Value -> Parser EventLogStatus Source # parseJSONList :: Value -> Parser [EventLogStatus] Source # | |
ToJSON EventLogStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger 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 showsPrec :: Int -> EventLogStatus -> ShowS # show :: EventLogStatus -> String # showList :: [EventLogStatus] -> ShowS # | |
Eq EventLogStatus Source # | |
Defined in Hasura.RQL.Types.EventTrigger (==) :: EventLogStatus -> EventLogStatus -> Bool # (/=) :: EventLogStatus -> EventLogStatus -> Bool # |
data GetEventLogs (b :: BackendType) Source #
GetEventLogs | |
|
Instances
FromJSON (GetEventLogs b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger parseJSON :: Value -> Parser (GetEventLogs b) Source # parseJSONList :: Value -> Parser [GetEventLogs b] Source # | |
ToJSON (GetEventLogs b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger 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 showsPrec :: Int -> GetEventLogs b -> ShowS # show :: GetEventLogs b -> String # showList :: [GetEventLogs b] -> ShowS # |
EventLog | |
|
Instances
data GetEventInvocations (b :: BackendType) Source #
GetEventInvocations | |
|
Instances
FromJSON (GetEventInvocations b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger parseJSON :: Value -> Parser (GetEventInvocations b) Source # parseJSONList :: Value -> Parser [GetEventInvocations b] Source # | |
ToJSON (GetEventInvocations b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger 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 showsPrec :: Int -> GetEventInvocations b -> ShowS # show :: GetEventInvocations b -> String # showList :: [GetEventInvocations b] -> ShowS # |
data EventInvocationLog Source #
EventInvocationLog | |
|
Instances
data GetEventById (b :: BackendType) Source #
Instances
FromJSON (GetEventById b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger parseJSON :: Value -> Parser (GetEventById b) Source # parseJSONList :: Value -> Parser [GetEventById b] Source # | |
ToJSON (GetEventById b) Source # | |
Defined in Hasura.RQL.Types.EventTrigger 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 showsPrec :: Int -> GetEventById b -> ShowS # show :: GetEventById b -> String # showList :: [GetEventById b] -> ShowS # |
data EventLogWithInvocations Source #
Instances
ToJSON EventLogWithInvocations Source # | |
Defined in Hasura.RQL.Types.EventTrigger | |
Generic EventLogWithInvocations Source # | |
Defined in Hasura.RQL.Types.EventTrigger type Rep EventLogWithInvocations :: Type -> Type # | |
type Rep EventLogWithInvocations Source # | |
Defined in Hasura.RQL.Types.EventTrigger type Rep EventLogWithInvocations = D1 ('MetaData "EventLogWithInvocations" "Hasura.RQL.Types.EventTrigger" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "EventLogWithInvocations" 'PrefixI 'True) (S1 ('MetaSel ('Just "elwiEvent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventLog)) :*: S1 ('MetaSel ('Just "elwiInvocations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [EventInvocationLog]))) |