graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.Types.ScheduledTrigger

Description

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

Synopsis

Documentation

data STRetryConf Source #

Constructors

STRetryConf 

Fields

Instances

Instances details
FromJSON STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

HasCodec 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 #

Show STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

NFData STRetryConf Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

rnf :: STRetryConf -> () #

Eq 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 (Refined NonNegative DiffTime))) :*: (S1 ('MetaSel ('Just "strcTimeoutSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Refined NonNegative DiffTime)) :*: S1 ('MetaSel ('Just "strcToleranceSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Refined NonNegative DiffTime)))))

data CronTriggerMetadata Source #

Instances

Instances details
FromJSON CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

HasCodec 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 #

Show CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

NFData CronTriggerMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

rnf :: CronTriggerMetadata -> () #

Eq 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
FromJSON CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON 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 #

Show CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

NFData CreateCronTrigger Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Methods

rnf :: CreateCronTrigger -> () #

Eq 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)))))))

newtype ScheduledTriggerName Source #

Constructors

ScheduledTriggerName 

Fields

Instances

Instances details
FromJSON ScheduledTriggerName Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON ScheduledTriggerName Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic ScheduledTriggerName Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep ScheduledTriggerName :: Type -> Type #

Show ScheduledTriggerName Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Eq ScheduledTriggerName Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep ScheduledTriggerName Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep ScheduledTriggerName = D1 ('MetaData "ScheduledTriggerName" "Hasura.RQL.Types.ScheduledTrigger" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "ScheduledTriggerName" 'PrefixI 'True) (S1 ('MetaSel ('Just "unName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TriggerName)))

data CreateScheduledEvent Source #

Instances

Instances details
FromJSON CreateScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON 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 #

Show CreateScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Eq 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.

Instances

Instances details
FromJSON ScheduledEventType Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON ScheduledEventType Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic ScheduledEventType Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep ScheduledEventType :: Type -> Type #

Show ScheduledEventType Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Eq ScheduledEventType Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep ScheduledEventType Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep ScheduledEventType = D1 ('MetaData "ScheduledEventType" "Hasura.RQL.Types.ScheduledTrigger" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Cron" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OneOff" 'PrefixI 'False) (U1 :: Type -> Type))

data ScheduledEventInvocation Source #

Instances

Instances details
FromJSON ScheduledEventInvocation Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON ScheduledEventInvocation Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic ScheduledEventInvocation Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep ScheduledEventInvocation :: Type -> Type #

Show ScheduledEventInvocation Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Eq ScheduledEventInvocation Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep ScheduledEventInvocation Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep ScheduledEventInvocation = D1 ('MetaData "ScheduledEventInvocation" "Hasura.RQL.Types.ScheduledTrigger" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ScheduledEventInvocation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_seiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InvocationId) :*: (S1 ('MetaSel ('Just "_seiEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EventId) :*: S1 ('MetaSel ('Just "_seiStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "_seiRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)) :*: (S1 ('MetaSel ('Just "_seiResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "_seiCreatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime)))))

data OneOffScheduledEvent Source #

Instances

Instances details
FromJSON OneOffScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON OneOffScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic OneOffScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep OneOffScheduledEvent :: Type -> Type #

Show OneOffScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Eq OneOffScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep OneOffScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep OneOffScheduledEvent = D1 ('MetaData "OneOffScheduledEvent" "Hasura.RQL.Types.ScheduledTrigger" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "OneOffScheduledEvent" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_ooseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OneOffScheduledEventId) :*: (S1 ('MetaSel ('Just "_ooseWebhookConf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InputWebhook) :*: S1 ('MetaSel ('Just "_ooseScheduledTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime))) :*: (S1 ('MetaSel ('Just "_ooseRetryConf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 STRetryConf) :*: (S1 ('MetaSel ('Just "_oosePayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "_ooseHeaderConf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [HeaderConf])))) :*: ((S1 ('MetaSel ('Just "_ooseStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_ooseTries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_ooseCreatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime))) :*: ((S1 ('MetaSel ('Just "_ooseNextRetryAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "_ooseComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "_ooseRequestTransform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RequestTransform)) :*: S1 ('MetaSel ('Just "_ooseResponseTransform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MetadataResponseTransform)))))))

data CronEvent Source #

Constructors

CronEvent 

Fields

Instances

Instances details
FromJSON CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep CronEvent :: Type -> Type #

Show CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Eq CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep CronEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

data DeleteScheduledEvent Source #

Query type to delete cron/one-off events.

Instances

Instances details
FromJSON DeleteScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

ToJSON DeleteScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Generic DeleteScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Associated Types

type Rep DeleteScheduledEvent :: Type -> Type #

Show DeleteScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

Eq DeleteScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep DeleteScheduledEvent Source # 
Instance details

Defined in Hasura.RQL.Types.ScheduledTrigger

type Rep DeleteScheduledEvent = D1 ('MetaData "DeleteScheduledEvent" "Hasura.RQL.Types.ScheduledTrigger" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "DeleteScheduledEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "_dseType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ScheduledEventType) :*: S1 ('MetaSel ('Just "_dseEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ScheduledEventId)))

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