| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Servant.Types
Description
Response types for the Arbiter REST API
Synopsis
- data StatsResponse = StatsResponse {
- stats :: QueueStats
- timestamp :: Text
- newtype ApiJobWrite payload = ApiJobWrite {
- unApiJobWrite :: JobWrite payload
- data QueuesResponse = QueuesResponse {}
- data JobResponse payload = JobResponse {}
- data JobsResponse payload = JobsResponse {
- jobs :: [ApiJob payload]
- jobsTotal :: Int
- jobsOffset :: Int
- jobsLimit :: Int
- childCounts :: Map Int64 Int64
- pausedParents :: [Int64]
- dlqChildCounts :: Map Int64 Int64
- data DLQResponse payload = DLQResponse {}
- data CronSchedulesResponse = CronSchedulesResponse {}
- data ApiJob payload = ApiJob {}
- jobStatus :: UTCTime -> JobRead payload -> Text
- data ApiDLQJob payload = ApiDLQJob {
- unApiDLQJob :: DLQJob payload
- apiDLQNow :: UTCTime
- newtype BatchInsertRequest payload = BatchInsertRequest {
- jobWrites :: [ApiJobWrite payload]
- data BatchInsertResponse payload = BatchInsertResponse {
- inserted :: [ApiJob payload]
- insertedCount :: Int
- data BatchDeleteRequest = BatchDeleteRequest {}
- data BatchDeleteResponse = BatchDeleteResponse {}
- data CronScheduleRow = CronScheduleRow {}
- data CronScheduleUpdate = CronScheduleUpdate {}
Documentation
data StatsResponse Source #
Queue statistics response
Constructors
| StatsResponse | |
Fields
| |
Instances
newtype ApiJobWrite payload Source #
Write-side job type for REST API insertion.
Accepts payload, groupKey, priority, notVisibleUntil, dedupKey,
and maxAttempts. Fields like parentId, isRollup, and suspended are
managed internally and cannot be set through the REST API.
Constructors
| ApiJobWrite | |
Fields
| |
Instances
| FromJSON payload => FromJSON (ApiJobWrite payload) Source # | |
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (ApiJobWrite payload) parseJSONList :: Value -> Parser [ApiJobWrite payload] omittedField :: Maybe (ApiJobWrite payload) | |
| ToJSON payload => ToJSON (ApiJobWrite payload) Source # | |
Defined in Arbiter.Servant.Types Methods toJSON :: ApiJobWrite payload -> Value toEncoding :: ApiJobWrite payload -> Encoding toJSONList :: [ApiJobWrite payload] -> Value toEncodingList :: [ApiJobWrite payload] -> Encoding omitField :: ApiJobWrite payload -> Bool | |
| Show payload => Show (ApiJobWrite payload) Source # | |
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> ApiJobWrite payload -> ShowS # show :: ApiJobWrite payload -> String # showList :: [ApiJobWrite payload] -> ShowS # | |
| Eq payload => Eq (ApiJobWrite payload) Source # | |
Defined in Arbiter.Servant.Types Methods (==) :: ApiJobWrite payload -> ApiJobWrite payload -> Bool # (/=) :: ApiJobWrite payload -> ApiJobWrite payload -> Bool # | |
data QueuesResponse Source #
Queues list response
Constructors
| QueuesResponse | |
Instances
| FromJSON QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: QueuesResponse -> Value toEncoding :: QueuesResponse -> Encoding toJSONList :: [QueuesResponse] -> Value toEncodingList :: [QueuesResponse] -> Encoding omitField :: QueuesResponse -> Bool | |||||
| Generic QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: QueuesResponse -> Rep QueuesResponse x # to :: Rep QueuesResponse x -> QueuesResponse # | |||||
| Show QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> QueuesResponse -> ShowS # show :: QueuesResponse -> String # showList :: [QueuesResponse] -> ShowS # | |||||
| Eq QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: QueuesResponse -> QueuesResponse -> Bool # (/=) :: QueuesResponse -> QueuesResponse -> Bool # | |||||
| type Rep QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep QueuesResponse = D1 ('MetaData "QueuesResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "QueuesResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "queues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]))) | |||||
data JobResponse payload Source #
Response wrapper for job operations
Constructors
| JobResponse | |
Instances
| FromJSON payload => FromJSON (JobResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (JobResponse payload) parseJSONList :: Value -> Parser [JobResponse payload] omittedField :: Maybe (JobResponse payload) | |||||
| ToJSON payload => ToJSON (JobResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: JobResponse payload -> Value toEncoding :: JobResponse payload -> Encoding toJSONList :: [JobResponse payload] -> Value toEncodingList :: [JobResponse payload] -> Encoding omitField :: JobResponse payload -> Bool | |||||
| Generic (JobResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: JobResponse payload -> Rep (JobResponse payload) x # to :: Rep (JobResponse payload) x -> JobResponse payload # | |||||
| Show payload => Show (JobResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> JobResponse payload -> ShowS # show :: JobResponse payload -> String # showList :: [JobResponse payload] -> ShowS # | |||||
| Eq payload => Eq (JobResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: JobResponse payload -> JobResponse payload -> Bool # (/=) :: JobResponse payload -> JobResponse payload -> Bool # | |||||
| type Rep (JobResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types type Rep (JobResponse payload) = D1 ('MetaData "JobResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "JobResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "job") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ApiJob payload)))) | |||||
data JobsResponse payload Source #
Response wrapper for multiple jobs
Constructors
| JobsResponse | |
Fields
| |
Instances
| FromJSON payload => FromJSON (JobsResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (JobsResponse payload) parseJSONList :: Value -> Parser [JobsResponse payload] omittedField :: Maybe (JobsResponse payload) | |||||
| ToJSON payload => ToJSON (JobsResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: JobsResponse payload -> Value toEncoding :: JobsResponse payload -> Encoding toJSONList :: [JobsResponse payload] -> Value toEncodingList :: [JobsResponse payload] -> Encoding omitField :: JobsResponse payload -> Bool | |||||
| Generic (JobsResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: JobsResponse payload -> Rep (JobsResponse payload) x # to :: Rep (JobsResponse payload) x -> JobsResponse payload # | |||||
| Show payload => Show (JobsResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> JobsResponse payload -> ShowS # show :: JobsResponse payload -> String # showList :: [JobsResponse payload] -> ShowS # | |||||
| Eq payload => Eq (JobsResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: JobsResponse payload -> JobsResponse payload -> Bool # (/=) :: JobsResponse payload -> JobsResponse payload -> Bool # | |||||
| type Rep (JobsResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types type Rep (JobsResponse payload) = D1 ('MetaData "JobsResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "JobsResponse" 'PrefixI 'True) ((S1 ('MetaSel ('Just "jobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ApiJob payload]) :*: (S1 ('MetaSel ('Just "jobsTotal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "jobsOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "jobsLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "childCounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Int64 Int64))) :*: (S1 ('MetaSel ('Just "pausedParents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int64]) :*: S1 ('MetaSel ('Just "dlqChildCounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Int64 Int64)))))) | |||||
data DLQResponse payload Source #
Response wrapper for DLQ jobs
Constructors
| DLQResponse | |
Instances
| FromJSON payload => FromJSON (DLQResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (DLQResponse payload) parseJSONList :: Value -> Parser [DLQResponse payload] omittedField :: Maybe (DLQResponse payload) | |||||
| ToJSON payload => ToJSON (DLQResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: DLQResponse payload -> Value toEncoding :: DLQResponse payload -> Encoding toJSONList :: [DLQResponse payload] -> Value toEncodingList :: [DLQResponse payload] -> Encoding omitField :: DLQResponse payload -> Bool | |||||
| Generic (DLQResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: DLQResponse payload -> Rep (DLQResponse payload) x # to :: Rep (DLQResponse payload) x -> DLQResponse payload # | |||||
| Show payload => Show (DLQResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> DLQResponse payload -> ShowS # show :: DLQResponse payload -> String # showList :: [DLQResponse payload] -> ShowS # | |||||
| Eq payload => Eq (DLQResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: DLQResponse payload -> DLQResponse payload -> Bool # (/=) :: DLQResponse payload -> DLQResponse payload -> Bool # | |||||
| type Rep (DLQResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types type Rep (DLQResponse payload) = D1 ('MetaData "DLQResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "DLQResponse" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dlqJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ApiDLQJob payload]) :*: S1 ('MetaSel ('Just "dlqTotal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "dlqOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "dlqLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) | |||||
data CronSchedulesResponse Source #
Cron schedules response
Constructors
| CronSchedulesResponse | |
Fields | |
Instances
| FromJSON CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser CronSchedulesResponse parseJSONList :: Value -> Parser [CronSchedulesResponse] | |||||
| ToJSON CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: CronSchedulesResponse -> Value toEncoding :: CronSchedulesResponse -> Encoding toJSONList :: [CronSchedulesResponse] -> Value toEncodingList :: [CronSchedulesResponse] -> Encoding | |||||
| Generic CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: CronSchedulesResponse -> Rep CronSchedulesResponse x # to :: Rep CronSchedulesResponse x -> CronSchedulesResponse # | |||||
| Show CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> CronSchedulesResponse -> ShowS # show :: CronSchedulesResponse -> String # showList :: [CronSchedulesResponse] -> ShowS # | |||||
| Eq CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: CronSchedulesResponse -> CronSchedulesResponse -> Bool # (/=) :: CronSchedulesResponse -> CronSchedulesResponse -> Bool # | |||||
| type Rep CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep CronSchedulesResponse = D1 ('MetaData "CronSchedulesResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "CronSchedulesResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "cronSchedules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CronScheduleRow]))) | |||||
Instances
| FromJSON payload => FromJSON (ApiJob payload) Source # | |
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (ApiJob payload) parseJSONList :: Value -> Parser [ApiJob payload] omittedField :: Maybe (ApiJob payload) | |
| ToJSON payload => ToJSON (ApiJob payload) Source # | |
Defined in Arbiter.Servant.Types Methods toJSON :: ApiJob payload -> Value toEncoding :: ApiJob payload -> Encoding toJSONList :: [ApiJob payload] -> Value toEncodingList :: [ApiJob payload] -> Encoding | |
| Show payload => Show (ApiJob payload) Source # | |
| Eq payload => Eq (ApiJob payload) Source # | |
data ApiDLQJob payload Source #
Constructors
| ApiDLQJob | |
Fields
| |
Instances
| FromJSON payload => FromJSON (ApiDLQJob payload) Source # | |
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (ApiDLQJob payload) parseJSONList :: Value -> Parser [ApiDLQJob payload] omittedField :: Maybe (ApiDLQJob payload) | |
| ToJSON payload => ToJSON (ApiDLQJob payload) Source # | |
Defined in Arbiter.Servant.Types Methods toJSON :: ApiDLQJob payload -> Value toEncoding :: ApiDLQJob payload -> Encoding toJSONList :: [ApiDLQJob payload] -> Value toEncodingList :: [ApiDLQJob payload] -> Encoding | |
| Show payload => Show (ApiDLQJob payload) Source # | |
| Eq payload => Eq (ApiDLQJob payload) Source # | |
newtype BatchInsertRequest payload Source #
Request body for batch job insert
Constructors
| BatchInsertRequest | |
Fields
| |
Instances
| FromJSON payload => FromJSON (BatchInsertRequest payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (BatchInsertRequest payload) parseJSONList :: Value -> Parser [BatchInsertRequest payload] omittedField :: Maybe (BatchInsertRequest payload) | |||||
| ToJSON payload => ToJSON (BatchInsertRequest payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: BatchInsertRequest payload -> Value toEncoding :: BatchInsertRequest payload -> Encoding toJSONList :: [BatchInsertRequest payload] -> Value toEncodingList :: [BatchInsertRequest payload] -> Encoding omitField :: BatchInsertRequest payload -> Bool | |||||
| Generic (BatchInsertRequest payload) Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: BatchInsertRequest payload -> Rep (BatchInsertRequest payload) x # to :: Rep (BatchInsertRequest payload) x -> BatchInsertRequest payload # | |||||
| Show payload => Show (BatchInsertRequest payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> BatchInsertRequest payload -> ShowS # show :: BatchInsertRequest payload -> String # showList :: [BatchInsertRequest payload] -> ShowS # | |||||
| Eq payload => Eq (BatchInsertRequest payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchInsertRequest payload -> BatchInsertRequest payload -> Bool # (/=) :: BatchInsertRequest payload -> BatchInsertRequest payload -> Bool # | |||||
| type Rep (BatchInsertRequest payload) Source # | |||||
Defined in Arbiter.Servant.Types type Rep (BatchInsertRequest payload) = D1 ('MetaData "BatchInsertRequest" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "BatchInsertRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobWrites") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ApiJobWrite payload]))) | |||||
data BatchInsertResponse payload Source #
Response body for batch job insert
Constructors
| BatchInsertResponse | |
Fields
| |
Instances
| FromJSON payload => FromJSON (BatchInsertResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (BatchInsertResponse payload) parseJSONList :: Value -> Parser [BatchInsertResponse payload] omittedField :: Maybe (BatchInsertResponse payload) | |||||
| ToJSON payload => ToJSON (BatchInsertResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: BatchInsertResponse payload -> Value toEncoding :: BatchInsertResponse payload -> Encoding toJSONList :: [BatchInsertResponse payload] -> Value toEncodingList :: [BatchInsertResponse payload] -> Encoding omitField :: BatchInsertResponse payload -> Bool | |||||
| Generic (BatchInsertResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: BatchInsertResponse payload -> Rep (BatchInsertResponse payload) x # to :: Rep (BatchInsertResponse payload) x -> BatchInsertResponse payload # | |||||
| Show payload => Show (BatchInsertResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> BatchInsertResponse payload -> ShowS # show :: BatchInsertResponse payload -> String # showList :: [BatchInsertResponse payload] -> ShowS # | |||||
| Eq payload => Eq (BatchInsertResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchInsertResponse payload -> BatchInsertResponse payload -> Bool # (/=) :: BatchInsertResponse payload -> BatchInsertResponse payload -> Bool # | |||||
| type Rep (BatchInsertResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types type Rep (BatchInsertResponse payload) = D1 ('MetaData "BatchInsertResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "BatchInsertResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "inserted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ApiJob payload]) :*: S1 ('MetaSel ('Just "insertedCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) | |||||
data BatchDeleteRequest Source #
Request body for batch DLQ delete
Constructors
| BatchDeleteRequest | |
Instances
| FromJSON BatchDeleteRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser BatchDeleteRequest parseJSONList :: Value -> Parser [BatchDeleteRequest] | |||||
| ToJSON BatchDeleteRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: BatchDeleteRequest -> Value toEncoding :: BatchDeleteRequest -> Encoding toJSONList :: [BatchDeleteRequest] -> Value toEncodingList :: [BatchDeleteRequest] -> Encoding omitField :: BatchDeleteRequest -> Bool | |||||
| Generic BatchDeleteRequest Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: BatchDeleteRequest -> Rep BatchDeleteRequest x # to :: Rep BatchDeleteRequest x -> BatchDeleteRequest # | |||||
| Show BatchDeleteRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> BatchDeleteRequest -> ShowS # show :: BatchDeleteRequest -> String # showList :: [BatchDeleteRequest] -> ShowS # | |||||
| Eq BatchDeleteRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchDeleteRequest -> BatchDeleteRequest -> Bool # (/=) :: BatchDeleteRequest -> BatchDeleteRequest -> Bool # | |||||
| type Rep BatchDeleteRequest Source # | |||||
Defined in Arbiter.Servant.Types type Rep BatchDeleteRequest = D1 ('MetaData "BatchDeleteRequest" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "BatchDeleteRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int64]))) | |||||
data BatchDeleteResponse Source #
Response body for batch DLQ delete
Constructors
| BatchDeleteResponse | |
Instances
| FromJSON BatchDeleteResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser BatchDeleteResponse parseJSONList :: Value -> Parser [BatchDeleteResponse] | |||||
| ToJSON BatchDeleteResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: BatchDeleteResponse -> Value toEncoding :: BatchDeleteResponse -> Encoding toJSONList :: [BatchDeleteResponse] -> Value toEncodingList :: [BatchDeleteResponse] -> Encoding omitField :: BatchDeleteResponse -> Bool | |||||
| Generic BatchDeleteResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: BatchDeleteResponse -> Rep BatchDeleteResponse x # to :: Rep BatchDeleteResponse x -> BatchDeleteResponse # | |||||
| Show BatchDeleteResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> BatchDeleteResponse -> ShowS # show :: BatchDeleteResponse -> String # showList :: [BatchDeleteResponse] -> ShowS # | |||||
| Eq BatchDeleteResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchDeleteResponse -> BatchDeleteResponse -> Bool # (/=) :: BatchDeleteResponse -> BatchDeleteResponse -> Bool # | |||||
| type Rep BatchDeleteResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep BatchDeleteResponse = D1 ('MetaData "BatchDeleteResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "BatchDeleteResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) | |||||
data CronScheduleRow #
A row from the cron_schedules table.
Constructors
| CronScheduleRow | |
Fields
| |
Instances
| FromJSON CronScheduleRow | |||||
Defined in Arbiter.Core.CronSchedule Methods parseJSON :: Value -> Parser CronScheduleRow parseJSONList :: Value -> Parser [CronScheduleRow] | |||||
| ToJSON CronScheduleRow | |||||
Defined in Arbiter.Core.CronSchedule Methods toJSON :: CronScheduleRow -> Value toEncoding :: CronScheduleRow -> Encoding toJSONList :: [CronScheduleRow] -> Value toEncodingList :: [CronScheduleRow] -> Encoding omitField :: CronScheduleRow -> Bool | |||||
| Generic CronScheduleRow | |||||
Defined in Arbiter.Core.CronSchedule Associated Types
Methods from :: CronScheduleRow -> Rep CronScheduleRow x # to :: Rep CronScheduleRow x -> CronScheduleRow # | |||||
| Show CronScheduleRow | |||||
Defined in Arbiter.Core.CronSchedule Methods showsPrec :: Int -> CronScheduleRow -> ShowS # show :: CronScheduleRow -> String # showList :: [CronScheduleRow] -> ShowS # | |||||
| Eq CronScheduleRow | |||||
Defined in Arbiter.Core.CronSchedule Methods (==) :: CronScheduleRow -> CronScheduleRow -> Bool # (/=) :: CronScheduleRow -> CronScheduleRow -> Bool # | |||||
| FromRow CronScheduleRow | |||||
Defined in Arbiter.Core.CronSchedule Methods fromRow :: RowParser CronScheduleRow | |||||
| ToRow CronScheduleRow | |||||
Defined in Arbiter.Core.CronSchedule Methods toRow :: CronScheduleRow -> [Action] | |||||
| type Rep CronScheduleRow | |||||
Defined in Arbiter.Core.CronSchedule type Rep CronScheduleRow = D1 ('MetaData "CronScheduleRow" "Arbiter.Core.CronSchedule" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "CronScheduleRow" 'PrefixI 'True) (((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "defaultExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "defaultOverlap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "overrideExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "overrideOverlap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "lastFiredAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime))) :*: (S1 ('MetaSel ('Just "lastCheckedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "updatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))))) | |||||
data CronScheduleUpdate #
Patch update for a cron schedule.
Each field uses Maybe (Maybe a):
Nothing= don't changeJust Nothing= reset to default (set column to NULL)Just (Just x)= set tox
Constructors
| CronScheduleUpdate | |
Instances
| FromJSON CronScheduleUpdate | Manual instance to distinguish missing keys from
| ||||
Defined in Arbiter.Core.CronSchedule Methods parseJSON :: Value -> Parser CronScheduleUpdate parseJSONList :: Value -> Parser [CronScheduleUpdate] | |||||
| ToJSON CronScheduleUpdate | |||||
Defined in Arbiter.Core.CronSchedule Methods toJSON :: CronScheduleUpdate -> Value toEncoding :: CronScheduleUpdate -> Encoding toJSONList :: [CronScheduleUpdate] -> Value toEncodingList :: [CronScheduleUpdate] -> Encoding omitField :: CronScheduleUpdate -> Bool | |||||
| Generic CronScheduleUpdate | |||||
Defined in Arbiter.Core.CronSchedule Associated Types
Methods from :: CronScheduleUpdate -> Rep CronScheduleUpdate x # to :: Rep CronScheduleUpdate x -> CronScheduleUpdate # | |||||
| Show CronScheduleUpdate | |||||
Defined in Arbiter.Core.CronSchedule Methods showsPrec :: Int -> CronScheduleUpdate -> ShowS # show :: CronScheduleUpdate -> String # showList :: [CronScheduleUpdate] -> ShowS # | |||||
| Eq CronScheduleUpdate | |||||
Defined in Arbiter.Core.CronSchedule Methods (==) :: CronScheduleUpdate -> CronScheduleUpdate -> Bool # (/=) :: CronScheduleUpdate -> CronScheduleUpdate -> Bool # | |||||
| type Rep CronScheduleUpdate | |||||
Defined in Arbiter.Core.CronSchedule type Rep CronScheduleUpdate = D1 ('MetaData "CronScheduleUpdate" "Arbiter.Core.CronSchedule" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "CronScheduleUpdate" 'PrefixI 'True) (S1 ('MetaSel ('Just "overrideExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Maybe Text))) :*: (S1 ('MetaSel ('Just "overrideOverlap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Maybe Text))) :*: S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) | |||||