Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 #
STRetryConf | |
|
Instances
data CronTriggerMetadata Source #
Instances
data CreateCronTrigger Source #
Instances
newtype ScheduledTriggerName Source #
Instances
formatTime' :: UTCTime -> Text Source #
data CreateScheduledEvent Source #
CreateScheduledEvent | |
|
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.
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 #
ScheduledEventInvocation | |
|
Instances
data ScheduledEvent Source #
Instances
Show ScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ScheduledEvent -> ShowS # show :: ScheduledEvent -> String # showList :: [ScheduledEvent] -> ShowS # | |
Eq ScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: ScheduledEvent -> ScheduledEvent -> Bool # (/=) :: ScheduledEvent -> ScheduledEvent -> Bool # |
data CronEventSeed Source #
Instances
Show CronEventSeed Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> CronEventSeed -> ShowS # show :: CronEventSeed -> String # showList :: [CronEventSeed] -> ShowS # | |
Eq CronEventSeed Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: CronEventSeed -> CronEventSeed -> Bool # (/=) :: CronEventSeed -> CronEventSeed -> Bool # |
type OneOffEvent = CreateScheduledEvent Source #
data ScheduledEventStatus Source #
Instances
FromJSON ScheduledEventStatus Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger | |
ToJSON ScheduledEventStatus Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toJSON :: ScheduledEventStatus -> Value Source # toEncoding :: ScheduledEventStatus -> Encoding Source # toJSONList :: [ScheduledEventStatus] -> Value Source # toEncodingList :: [ScheduledEventStatus] -> Encoding Source # | |
Show ScheduledEventStatus Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ScheduledEventStatus -> ShowS # show :: ScheduledEventStatus -> String # showList :: [ScheduledEventStatus] -> ShowS # | |
Eq ScheduledEventStatus Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: ScheduledEventStatus -> ScheduledEventStatus -> Bool # (/=) :: ScheduledEventStatus -> ScheduledEventStatus -> Bool # | |
FromCol ScheduledEventStatus Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger | |
ToPrepArg ScheduledEventStatus Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger |
data OneOffScheduledEvent Source #
Instances
CronEvent | |
|
Instances
data ScheduledEventPagination Source #
Instances
Show ScheduledEventPagination Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ScheduledEventPagination -> ShowS # show :: ScheduledEventPagination -> String # showList :: [ScheduledEventPagination] -> ShowS # | |
Eq ScheduledEventPagination Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger |
data RowsCountOption Source #
Instances
FromJSON RowsCountOption Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser RowsCountOption Source # parseJSONList :: Value -> Parser [RowsCountOption] Source # | |
ToJSON RowsCountOption Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger 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 showsPrec :: Int -> RowsCountOption -> ShowS # show :: RowsCountOption -> String # showList :: [RowsCountOption] -> ShowS # | |
Eq RowsCountOption Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: RowsCountOption -> RowsCountOption -> Bool # (/=) :: RowsCountOption -> RowsCountOption -> Bool # |
data GetScheduledEvents Source #
Query type to fetch all one-off/cron scheduled events
Instances
FromJSON GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser GetScheduledEvents Source # parseJSONList :: Value -> Parser [GetScheduledEvents] Source # | |
ToJSON GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger 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 showsPrec :: Int -> GetScheduledEvents -> ShowS # show :: GetScheduledEvents -> String # showList :: [GetScheduledEvents] -> ShowS # | |
Eq GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: GetScheduledEvents -> GetScheduledEvents -> Bool # (/=) :: GetScheduledEvents -> GetScheduledEvents -> Bool # |
data WithOptionalTotalCount a Source #
Instances
Show a => Show (WithOptionalTotalCount a) Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger 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 (==) :: WithOptionalTotalCount a -> WithOptionalTotalCount a -> Bool # (/=) :: WithOptionalTotalCount a -> WithOptionalTotalCount a -> Bool # |
data DeleteScheduledEvent Source #
Query type to delete cron/one-off events.
Instances
data GetScheduledEventInvocationsBy Source #
Instances
data GetScheduledEventInvocations Source #
GetScheduledEventInvocations | |
|
Instances
data ClearCronEvents Source #
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 showsPrec :: Int -> ClearCronEvents -> ShowS # show :: ClearCronEvents -> String # showList :: [ClearCronEvents] -> ShowS # | |
Eq ClearCronEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: ClearCronEvents -> ClearCronEvents -> Bool # (/=) :: ClearCronEvents -> ClearCronEvents -> Bool # |