graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.RQL.Types.ScheduledTrigger

Description

These are types for Scheduled Trigger definition; see Hasura.Eventing.ScheduledTrigger

Synopsis

Documentation

type InvocationId = Text Source #

data STRetryConf Source #

Constructors

STRetryConf 

Fields

Instances

Instances details
Eq STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Show STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep STRetryConf :: Type -> Type #

NFData STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

rnf :: STRetryConf -> () #

FromJSON STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

parseJSON :: Value -> Parser STRetryConf

parseJSONList :: Value -> Parser [STRetryConf]

ToJSON STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

toJSON :: STRetryConf -> Value

toEncoding :: STRetryConf -> Encoding

toJSONList :: [STRetryConf] -> Value

toEncodingList :: [STRetryConf] -> Encoding

Cacheable STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep STRetryConf = D1 ('MetaData "STRetryConf" "Hasura.RQL.Types.ScheduledTrigger" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "STRetryConf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "strcNumRetries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "strcRetryIntervalSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NonNegativeDiffTime)) :*: (S1 ('MetaSel ('Just "strcTimeoutSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NonNegativeDiffTime) :*: S1 ('MetaSel ('Just "strcToleranceSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NonNegativeDiffTime))))

data CronTriggerMetadata Source #

Instances

Instances details
Eq CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Show CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep CronTriggerMetadata :: Type -> Type #

NFData CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

rnf :: CronTriggerMetadata -> () #

FromJSON CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

parseJSON :: Value -> Parser CronTriggerMetadata

parseJSONList :: Value -> Parser [CronTriggerMetadata]

ToJSON CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Cacheable CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

data CreateCronTrigger Source #

Instances

Instances details
Eq CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Show CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep CreateCronTrigger :: Type -> Type #

NFData CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

rnf :: CreateCronTrigger -> () #

FromJSON CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

parseJSON :: Value -> Parser CreateCronTrigger

parseJSONList :: Value -> Parser [CreateCronTrigger]

ToJSON CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Cacheable CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep CreateCronTrigger = D1 ('MetaData "CreateCronTrigger" "Hasura.RQL.Types.ScheduledTrigger" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "CreateCronTrigger" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_cctName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TriggerName) :*: S1 ('MetaSel ('Just "_cctWebhook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InputWebhook)) :*: (S1 ('MetaSel ('Just "_cctCronSchedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CronSchedule) :*: (S1 ('MetaSel ('Just "_cctPayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "_cctRetryConf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 STRetryConf)))) :*: ((S1 ('MetaSel ('Just "_cctHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [HeaderConf]) :*: (S1 ('MetaSel ('Just "_cctIncludeInMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_cctComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "_cctReplace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "_cctRequestTransform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RequestTransform)) :*: S1 ('MetaSel ('Just "_cctResponseTransform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MetadataResponseTransform)))))))

data CreateScheduledEvent Source #

Instances

Instances details
Eq CreateScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Show CreateScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic CreateScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep CreateScheduledEvent :: Type -> Type #

FromJSON CreateScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

parseJSON :: Value -> Parser CreateScheduledEvent

parseJSONList :: Value -> Parser [CreateScheduledEvent]

ToJSON CreateScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep CreateScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

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.

data OneOffScheduledEvent Source #

data CronEvent Source #

Constructors

CronEvent 

Fields

Instances

Instances details
Eq CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Show CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

FromJSON CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

parseJSON :: Value -> Parser CronEvent

parseJSONList :: Value -> Parser [CronEvent]

ToJSON CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

toJSON :: CronEvent -> Value

toEncoding :: CronEvent -> Encoding

toJSONList :: [CronEvent] -> Value

toEncodingList :: [CronEvent] -> Encoding

data WithTotalCount a Source #

Constructors

WithTotalCount 

Fields

Instances

Instances details
Eq a => Eq (WithTotalCount a) Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Show a => Show (WithTotalCount a) Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

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 replace_metadata API