Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hasura.RQL.Types.ScheduledTrigger
Description
These are types for Scheduled Trigger definition; see Hasura.Eventing.ScheduledTrigger
Synopsis
- type CronEventId = EventId
- type OneOffScheduledEventId = EventId
- type ScheduledEventId = EventId
- type InvocationId = Text
- data STRetryConf = STRetryConf {}
- defaultSTRetryConf :: STRetryConf
- data CronTriggerMetadata = CronTriggerMetadata {}
- data CreateCronTrigger = CreateCronTrigger {
- _cctName :: TriggerName
- _cctWebhook :: InputWebhook
- _cctCronSchedule :: CronSchedule
- _cctPayload :: Maybe Value
- _cctRetryConf :: STRetryConf
- _cctHeaders :: [HeaderConf]
- _cctIncludeInMetadata :: Bool
- _cctComment :: Maybe Text
- _cctReplace :: Bool
- _cctRequestTransform :: Maybe RequestTransform
- _cctResponseTransform :: Maybe MetadataResponseTransform
- cctWebhook :: Lens' CreateCronTrigger InputWebhook
- cctRetryConf :: Lens' CreateCronTrigger STRetryConf
- cctResponseTransform :: Lens' CreateCronTrigger (Maybe MetadataResponseTransform)
- cctRequestTransform :: Lens' CreateCronTrigger (Maybe RequestTransform)
- cctReplace :: Lens' CreateCronTrigger Bool
- cctPayload :: Lens' CreateCronTrigger (Maybe Value)
- cctName :: Lens' CreateCronTrigger TriggerName
- cctIncludeInMetadata :: Lens' CreateCronTrigger Bool
- cctHeaders :: Lens' CreateCronTrigger [HeaderConf]
- cctCronSchedule :: Lens' CreateCronTrigger CronSchedule
- cctComment :: Lens' CreateCronTrigger (Maybe Text)
- newtype ScheduledTriggerName = ScheduledTriggerName {}
- formatTime' :: UTCTime -> Text
- data CreateScheduledEvent = CreateScheduledEvent {}
- data ScheduledEventType
- data ScheduledEventInvocation = ScheduledEventInvocation {}
- data ScheduledEvent
- data CronEventSeed = CronEventSeed {}
- type OneOffEvent = CreateScheduledEvent
- data ScheduledEventStatus
- scheduledEventStatusToText :: ScheduledEventStatus -> Text
- data OneOffScheduledEvent = OneOffScheduledEvent {
- _ooseId :: OneOffScheduledEventId
- _ooseWebhookConf :: InputWebhook
- _ooseScheduledTime :: UTCTime
- _ooseRetryConf :: STRetryConf
- _oosePayload :: Maybe Value
- _ooseHeaderConf :: [HeaderConf]
- _ooseStatus :: Text
- _ooseTries :: Int
- _ooseCreatedAt :: UTCTime
- _ooseNextRetryAt :: Maybe UTCTime
- _ooseComment :: Maybe Text
- _ooseRequestTransform :: Maybe RequestTransform
- _ooseResponseTransform :: Maybe MetadataResponseTransform
- data CronEvent = CronEvent {}
- data ScheduledEventPagination = ScheduledEventPagination {}
- data RowsCountOption
- data GetScheduledEvents = GetScheduledEvents {}
- data WithOptionalTotalCount a = WithOptionalTotalCount {}
- data DeleteScheduledEvent = DeleteScheduledEvent {}
- data GetScheduledEventInvocationsBy
- data GetScheduledEventInvocations = GetScheduledEventInvocations {}
- data ClearCronEvents
Documentation
type CronEventId = EventId Source #
type OneOffScheduledEventId = EventId Source #
type ScheduledEventId = EventId Source #
type InvocationId = Text Source #
data STRetryConf Source #
Constructors
STRetryConf | |
Fields
|
Instances
data CronTriggerMetadata Source #
Constructors
Instances
data CreateCronTrigger Source #
Constructors
Instances
newtype ScheduledTriggerName Source #
Constructors
ScheduledTriggerName | |
Fields |
Instances
formatTime' :: UTCTime -> Text Source #
data CreateScheduledEvent Source #
Constructors
CreateScheduledEvent | |
Fields
|
Instances
data ScheduledEventType Source #
The ScheduledEventType
data type is needed to differentiate
between a CronScheduledEvent
and OneOffScheduledEvent
scheduled
event because they both have different configurations
and they live in different tables.
Constructors
Cron | A Cron scheduled event has a template defined which will contain the webhook, header configuration, retry configuration and a payload. Every cron event created uses the above mentioned configurations defined in the template. The configuration defined with the cron trigger is cached and hence it's not fetched along the cron scheduled events. |
OneOff | A One-off scheduled event doesn't have any template defined so all the configuration is fetched along the scheduled events. |
Instances
data ScheduledEventInvocation Source #
Constructors
ScheduledEventInvocation | |
Fields
|
Instances
data ScheduledEvent Source #
Constructors
SEOneOff | |
SECron TriggerName |
Instances
Show ScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> ScheduledEvent -> ShowS # show :: ScheduledEvent -> String # showList :: [ScheduledEvent] -> ShowS # | |
Eq ScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods (==) :: ScheduledEvent -> ScheduledEvent -> Bool # (/=) :: ScheduledEvent -> ScheduledEvent -> Bool # |
data CronEventSeed Source #
Constructors
CronEventSeed | |
Fields |
Instances
Show CronEventSeed Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> CronEventSeed -> ShowS # show :: CronEventSeed -> String # showList :: [CronEventSeed] -> ShowS # | |
Eq CronEventSeed Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods (==) :: CronEventSeed -> CronEventSeed -> Bool # (/=) :: CronEventSeed -> CronEventSeed -> Bool # |
type OneOffEvent = CreateScheduledEvent Source #
data ScheduledEventStatus Source #
Constructors
SESScheduled | |
SESLocked | |
SESDelivered | |
SESError | |
SESDead |
Instances
data OneOffScheduledEvent Source #
Constructors
Instances
Constructors
CronEvent | |
Fields
|
Instances
data ScheduledEventPagination Source #
Constructors
ScheduledEventPagination | |
Instances
Show ScheduledEventPagination Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> ScheduledEventPagination -> ShowS # show :: ScheduledEventPagination -> String # showList :: [ScheduledEventPagination] -> ShowS # | |
Eq ScheduledEventPagination Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods (==) :: ScheduledEventPagination -> ScheduledEventPagination -> Bool # (/=) :: ScheduledEventPagination -> ScheduledEventPagination -> Bool # |
data RowsCountOption Source #
Constructors
IncludeRowsCount | |
DontIncludeRowsCount |
Instances
FromJSON RowsCountOption Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods parseJSON :: Value -> Parser RowsCountOption Source # parseJSONList :: Value -> Parser [RowsCountOption] Source # | |
ToJSON RowsCountOption Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods toJSON :: RowsCountOption -> Value Source # toEncoding :: RowsCountOption -> Encoding Source # toJSONList :: [RowsCountOption] -> Value Source # toEncodingList :: [RowsCountOption] -> Encoding Source # | |
Show RowsCountOption Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> RowsCountOption -> ShowS # show :: RowsCountOption -> String # showList :: [RowsCountOption] -> ShowS # | |
Eq RowsCountOption Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods (==) :: RowsCountOption -> RowsCountOption -> Bool # (/=) :: RowsCountOption -> RowsCountOption -> Bool # |
data GetScheduledEvents Source #
Query type to fetch all one-off/cron scheduled events
Constructors
GetScheduledEvents | |
Instances
FromJSON GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods parseJSON :: Value -> Parser GetScheduledEvents Source # parseJSONList :: Value -> Parser [GetScheduledEvents] Source # | |
ToJSON GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods toJSON :: GetScheduledEvents -> Value Source # toEncoding :: GetScheduledEvents -> Encoding Source # toJSONList :: [GetScheduledEvents] -> Value Source # toEncodingList :: [GetScheduledEvents] -> Encoding Source # | |
Show GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> GetScheduledEvents -> ShowS # show :: GetScheduledEvents -> String # showList :: [GetScheduledEvents] -> ShowS # | |
Eq GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods (==) :: GetScheduledEvents -> GetScheduledEvents -> Bool # (/=) :: GetScheduledEvents -> GetScheduledEvents -> Bool # |
data WithOptionalTotalCount a Source #
Constructors
WithOptionalTotalCount | |
Instances
Show a => Show (WithOptionalTotalCount a) Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> WithOptionalTotalCount a -> ShowS # show :: WithOptionalTotalCount a -> String # showList :: [WithOptionalTotalCount a] -> ShowS # | |
Eq a => Eq (WithOptionalTotalCount a) Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods (==) :: WithOptionalTotalCount a -> WithOptionalTotalCount a -> Bool # (/=) :: WithOptionalTotalCount a -> WithOptionalTotalCount a -> Bool # |
data DeleteScheduledEvent Source #
Query type to delete cron/one-off events.
Constructors
DeleteScheduledEvent | |
Fields |
Instances
data GetScheduledEventInvocationsBy Source #
Constructors
GIBEventId EventId ScheduledEventType | |
GIBEvent ScheduledEvent |
Instances
Show GetScheduledEventInvocationsBy Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> GetScheduledEventInvocationsBy -> ShowS # show :: GetScheduledEventInvocationsBy -> String # showList :: [GetScheduledEventInvocationsBy] -> ShowS # | |
Eq GetScheduledEventInvocationsBy Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger |
data GetScheduledEventInvocations Source #
Constructors
GetScheduledEventInvocations | |
Fields
|
Instances
FromJSON GetScheduledEventInvocations Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods parseJSON :: Value -> Parser GetScheduledEventInvocations Source # parseJSONList :: Value -> Parser [GetScheduledEventInvocations] Source # | |
ToJSON GetScheduledEventInvocations Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger | |
Show GetScheduledEventInvocations Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> GetScheduledEventInvocations -> ShowS # show :: GetScheduledEventInvocations -> String # showList :: [GetScheduledEventInvocations] -> ShowS # | |
Eq GetScheduledEventInvocations Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods (==) :: GetScheduledEventInvocations -> GetScheduledEventInvocations -> Bool # (/=) :: GetScheduledEventInvocations -> GetScheduledEventInvocations -> Bool # |
data ClearCronEvents Source #
Constructors
SingleCronTrigger TriggerName | Used to delete the cron events only of the specified cron trigger |
MetadataCronTriggers [TriggerName] | Used to delete all the cron events of the cron triggers with `include_in_metadata: true`
It is used in the case of the |
Instances
Show ClearCronEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods showsPrec :: Int -> ClearCronEvents -> ShowS # show :: ClearCronEvents -> String # showList :: [ClearCronEvents] -> ShowS # | |
Eq ClearCronEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger Methods (==) :: ClearCronEvents -> ClearCronEvents -> Bool # (/=) :: ClearCronEvents -> ClearCronEvents -> Bool # |