Safe Haskell | None |
---|---|
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 {
- ctName :: TriggerName
- ctWebhook :: InputWebhook
- ctSchedule :: CronSchedule
- ctPayload :: Maybe Value
- ctRetryConf :: STRetryConf
- ctHeaders :: [HeaderConf]
- ctIncludeInMetadata :: Bool
- ctComment :: Maybe Text
- ctRequestTransform :: Maybe RequestTransform
- ctResponseTransform :: Maybe MetadataResponseTransform
- 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 {
- _seiId :: InvocationId
- _seiEventId :: EventId
- _seiStatus :: Maybe Int
- _seiRequest :: Maybe Value
- _seiResponse :: Maybe Value
- _seiCreatedAt :: UTCTime
- data ScheduledEvent
- parseScheduledEvent :: Object -> Parser ScheduledEvent
- scheduledEventToPairs :: ScheduledEvent -> [Pair]
- data CronEventSeed = CronEventSeed {}
- type OneOffEvent = CreateScheduledEvent
- data ScheduledEventStatus
- scheduledEventStatusToText :: ScheduledEventStatus -> Text
- textToScheduledEventStatus :: Text -> Maybe ScheduledEventStatus
- 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 {
- _ceId :: CronEventId
- _ceTriggerName :: TriggerName
- _ceScheduledTime :: UTCTime
- _ceStatus :: Text
- _ceTries :: Int
- _ceCreatedAt :: UTCTime
- _ceNextRetryAt :: Maybe UTCTime
- data ScheduledEventPagination = ScheduledEventPagination {}
- parseScheduledEventPagination :: Object -> Parser ScheduledEventPagination
- scheduledEventPaginationToPairs :: ScheduledEventPagination -> [Pair]
- data GetScheduledEvents = GetScheduledEvents {}
- data WithTotalCount a = WithTotalCount {}
- data DeleteScheduledEvent = DeleteScheduledEvent {}
- data GetInvocationsBy
- data GetEventInvocations = GetEventInvocations {}
- 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 #
CronTriggerMetadata | |
|
Instances
data CreateCronTrigger Source #
CreateCronTrigger | |
|
Instances
cctWebhook :: Lens' CreateCronTrigger InputWebhook Source #
cctRetryConf :: Lens' CreateCronTrigger STRetryConf Source #
cctRequestTransform :: Lens' CreateCronTrigger (Maybe RequestTransform) Source #
cctReplace :: Lens' CreateCronTrigger Bool Source #
cctPayload :: Lens' CreateCronTrigger (Maybe Value) Source #
cctName :: Lens' CreateCronTrigger TriggerName Source #
cctIncludeInMetadata :: Lens' CreateCronTrigger Bool Source #
cctHeaders :: Lens' CreateCronTrigger [HeaderConf] Source #
cctCronSchedule :: Lens' CreateCronTrigger CronSchedule Source #
cctComment :: Lens' CreateCronTrigger (Maybe Text) Source #
newtype ScheduledTriggerName Source #
Instances
Eq ScheduledTriggerName Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: ScheduledTriggerName -> ScheduledTriggerName -> Bool # (/=) :: ScheduledTriggerName -> ScheduledTriggerName -> Bool # | |
Show ScheduledTriggerName Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ScheduledTriggerName -> ShowS # show :: ScheduledTriggerName -> String # showList :: [ScheduledTriggerName] -> ShowS # | |
FromJSON ScheduledTriggerName Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser ScheduledTriggerName parseJSONList :: Value -> Parser [ScheduledTriggerName] | |
ToJSON ScheduledTriggerName Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toJSON :: ScheduledTriggerName -> Value toEncoding :: ScheduledTriggerName -> Encoding toJSONList :: [ScheduledTriggerName] -> Value toEncodingList :: [ScheduledTriggerName] -> Encoding |
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
Eq ScheduledEventType Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: ScheduledEventType -> ScheduledEventType -> Bool # (/=) :: ScheduledEventType -> ScheduledEventType -> Bool # | |
Show ScheduledEventType Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ScheduledEventType -> ShowS # show :: ScheduledEventType -> String # showList :: [ScheduledEventType] -> ShowS # | |
FromJSON ScheduledEventType Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser ScheduledEventType parseJSONList :: Value -> Parser [ScheduledEventType] | |
ToJSON ScheduledEventType Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toJSON :: ScheduledEventType -> Value toEncoding :: ScheduledEventType -> Encoding toJSONList :: [ScheduledEventType] -> Value toEncodingList :: [ScheduledEventType] -> Encoding |
data ScheduledEventInvocation Source #
ScheduledEventInvocation | |
|
Instances
Eq ScheduledEventInvocation Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger | |
Show ScheduledEventInvocation Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ScheduledEventInvocation -> ShowS # show :: ScheduledEventInvocation -> String # showList :: [ScheduledEventInvocation] -> ShowS # | |
FromJSON ScheduledEventInvocation Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser ScheduledEventInvocation parseJSONList :: Value -> Parser [ScheduledEventInvocation] | |
ToJSON ScheduledEventInvocation Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toJSON :: ScheduledEventInvocation -> Value toEncoding :: ScheduledEventInvocation -> Encoding toJSONList :: [ScheduledEventInvocation] -> Value toEncodingList :: [ScheduledEventInvocation] -> Encoding |
data ScheduledEvent Source #
Instances
Eq ScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: ScheduledEvent -> ScheduledEvent -> Bool # (/=) :: ScheduledEvent -> ScheduledEvent -> Bool # | |
Show ScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ScheduledEvent -> ShowS # show :: ScheduledEvent -> String # showList :: [ScheduledEvent] -> ShowS # |
parseScheduledEvent :: Object -> Parser ScheduledEvent Source #
scheduledEventToPairs :: ScheduledEvent -> [Pair] Source #
data CronEventSeed Source #
Instances
Eq CronEventSeed Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: CronEventSeed -> CronEventSeed -> Bool # (/=) :: CronEventSeed -> CronEventSeed -> Bool # | |
Show CronEventSeed Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> CronEventSeed -> ShowS # show :: CronEventSeed -> String # showList :: [CronEventSeed] -> ShowS # |
type OneOffEvent = CreateScheduledEvent Source #
data ScheduledEventStatus Source #
Instances
scheduledEventStatusToText :: ScheduledEventStatus -> Text Source #
textToScheduledEventStatus :: Text -> Maybe ScheduledEventStatus Source #
data OneOffScheduledEvent Source #
Instances
Eq OneOffScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: OneOffScheduledEvent -> OneOffScheduledEvent -> Bool # (/=) :: OneOffScheduledEvent -> OneOffScheduledEvent -> Bool # | |
Show OneOffScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> OneOffScheduledEvent -> ShowS # show :: OneOffScheduledEvent -> String # showList :: [OneOffScheduledEvent] -> ShowS # | |
FromJSON OneOffScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser OneOffScheduledEvent parseJSONList :: Value -> Parser [OneOffScheduledEvent] | |
ToJSON OneOffScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toJSON :: OneOffScheduledEvent -> Value toEncoding :: OneOffScheduledEvent -> Encoding toJSONList :: [OneOffScheduledEvent] -> Value toEncodingList :: [OneOffScheduledEvent] -> Encoding |
CronEvent | |
|
Instances
Eq CronEvent Source # | |
Show CronEvent Source # | |
FromJSON CronEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser CronEvent parseJSONList :: Value -> Parser [CronEvent] | |
ToJSON CronEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toEncoding :: CronEvent -> Encoding toJSONList :: [CronEvent] -> Value toEncodingList :: [CronEvent] -> Encoding |
data ScheduledEventPagination Source #
Instances
Eq ScheduledEventPagination Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger | |
Show ScheduledEventPagination Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ScheduledEventPagination -> ShowS # show :: ScheduledEventPagination -> String # showList :: [ScheduledEventPagination] -> ShowS # |
parseScheduledEventPagination :: Object -> Parser ScheduledEventPagination Source #
scheduledEventPaginationToPairs :: ScheduledEventPagination -> [Pair] Source #
data GetScheduledEvents Source #
Query type to fetch all one-off/cron scheduled events
Instances
Eq GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: GetScheduledEvents -> GetScheduledEvents -> Bool # (/=) :: GetScheduledEvents -> GetScheduledEvents -> Bool # | |
Show GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> GetScheduledEvents -> ShowS # show :: GetScheduledEvents -> String # showList :: [GetScheduledEvents] -> ShowS # | |
FromJSON GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser GetScheduledEvents parseJSONList :: Value -> Parser [GetScheduledEvents] | |
ToJSON GetScheduledEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toJSON :: GetScheduledEvents -> Value toEncoding :: GetScheduledEvents -> Encoding toJSONList :: [GetScheduledEvents] -> Value toEncodingList :: [GetScheduledEvents] -> Encoding |
data WithTotalCount a Source #
Instances
Eq a => Eq (WithTotalCount a) Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: WithTotalCount a -> WithTotalCount a -> Bool # (/=) :: WithTotalCount a -> WithTotalCount a -> Bool # | |
Show a => Show (WithTotalCount a) Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> WithTotalCount a -> ShowS # show :: WithTotalCount a -> String # showList :: [WithTotalCount a] -> ShowS # |
data DeleteScheduledEvent Source #
Query type to delete cron/one-off events.
Instances
Eq DeleteScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: DeleteScheduledEvent -> DeleteScheduledEvent -> Bool # (/=) :: DeleteScheduledEvent -> DeleteScheduledEvent -> Bool # | |
Show DeleteScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> DeleteScheduledEvent -> ShowS # show :: DeleteScheduledEvent -> String # showList :: [DeleteScheduledEvent] -> ShowS # | |
FromJSON DeleteScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser DeleteScheduledEvent parseJSONList :: Value -> Parser [DeleteScheduledEvent] | |
ToJSON DeleteScheduledEvent Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toJSON :: DeleteScheduledEvent -> Value toEncoding :: DeleteScheduledEvent -> Encoding toJSONList :: [DeleteScheduledEvent] -> Value toEncodingList :: [DeleteScheduledEvent] -> Encoding |
data GetInvocationsBy Source #
Instances
Eq GetInvocationsBy Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: GetInvocationsBy -> GetInvocationsBy -> Bool # (/=) :: GetInvocationsBy -> GetInvocationsBy -> Bool # | |
Show GetInvocationsBy Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> GetInvocationsBy -> ShowS # show :: GetInvocationsBy -> String # showList :: [GetInvocationsBy] -> ShowS # |
data GetEventInvocations Source #
Instances
Eq GetEventInvocations Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: GetEventInvocations -> GetEventInvocations -> Bool # (/=) :: GetEventInvocations -> GetEventInvocations -> Bool # | |
Show GetEventInvocations Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> GetEventInvocations -> ShowS # show :: GetEventInvocations -> String # showList :: [GetEventInvocations] -> ShowS # | |
FromJSON GetEventInvocations Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger parseJSON :: Value -> Parser GetEventInvocations parseJSONList :: Value -> Parser [GetEventInvocations] | |
ToJSON GetEventInvocations Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger toJSON :: GetEventInvocations -> Value toEncoding :: GetEventInvocations -> Encoding toJSONList :: [GetEventInvocations] -> Value toEncodingList :: [GetEventInvocations] -> Encoding |
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
Eq ClearCronEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger (==) :: ClearCronEvents -> ClearCronEvents -> Bool # (/=) :: ClearCronEvents -> ClearCronEvents -> Bool # | |
Show ClearCronEvents Source # | |
Defined in Hasura.RQL.Types.ScheduledTrigger showsPrec :: Int -> ClearCronEvents -> ShowS # show :: ClearCronEvents -> String # showList :: [ClearCronEvents] -> ShowS # |