| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Servant.Types
Description
Request and response types for the Arbiter REST API.
Synopsis
- data ApiJobWithStatus payload = ApiJobWithStatus {
- ajwsJob :: JobRead payload
- ajwsStatus :: JobStatus
- newtype ApiJobWrite payload = ApiJobWrite {
- unApiJobWrite :: JobWrite payload
- newtype JobResponse a = JobResponse {
- job :: a
- data JobsResponse payload = JobsResponse {
- jobsPage :: Page (ApiJobWithStatus (Stored payload))
- childCounts :: Map Int64 Int64
- pausedParents :: [Int64]
- dlqChildCounts :: Map Int64 Int64
- newtype RescheduleRequest = RescheduleRequest {}
- newtype DLQRetentionRequest = DLQRetentionRequest {}
- newtype BatchInsertRequest payload = BatchInsertRequest {
- jobs :: [ApiJobWrite payload]
- data BatchInsertResponse payload = BatchInsertResponse {
- inserted :: [JobRead payload]
- insertedCount :: Int
- newtype PayloadEdit payload = PayloadEdit {
- editPayload :: payload
- data OptionalJSON
- newtype BatchDeleteRequest = BatchDeleteRequest {}
- newtype BatchDeleteResponse = BatchDeleteResponse {}
- newtype BatchRetryRequest = BatchRetryRequest {}
- newtype BatchRetryResponse = BatchRetryResponse {}
- data Page a = Page {}
- newtype PageSize (def :: Nat) = PageSize {
- unPageSize :: Int
- type PageLimit = PageSize 50
- type KeyPageLimit = PageSize 100
- pageSizeDefault :: forall (def :: Nat) proxy. KnownNat def => proxy def -> Int
- pageLimitRange :: (Int, Int)
- newtype Items a = Items {
- items :: [a]
- type ArchiveResponse payload = Page (ArchiveJob (Stored payload))
- type DLQResponse payload = Page (DLQJob (Stored payload))
- type GroupsResponse = Page GroupSummary
- data ClaimRequest = ClaimRequest {}
- claimJobsRange :: (Int, Int)
- defaultClaimJobs :: Int
- leaseSecondsRange :: (Double, Double)
- defaultLeaseSeconds :: Double
- newtype ClaimResponse payload = ClaimResponse {}
- data JobLease = JobLease {
- jlClaimSeq :: Int64
- jlClaimedBy :: UUID
- data AckRequest result = AckRequest {}
- data ExtendRequest = ExtendRequest {}
- data StatsResponse = StatsResponse {
- stats :: QueueStats
- timestamp :: UTCTime
- newtype AllStatsResponse = AllStatsResponse {
- queues :: [QueueOverview]
- newtype QueuesResponse = QueuesResponse {}
- data MaintenanceResponse = MaintenanceResponse {
- maintenanceOps :: Map Text Int64
- maintenanceFailed :: [Text]
- data CronScheduleView = CronScheduleView {}
- newtype CronSchedulesResponse = CronSchedulesResponse {}
- newtype WorkersResponse = WorkersResponse {}
- newtype RateLimitPoliciesResponse = RateLimitPoliciesResponse {}
- type RateLimitBucketsResponse = Items RateLimitBucketView
- newtype RateLimitResetResponse = RateLimitResetResponse {}
- newtype AddTokensRequest = AddTokensRequest {}
- newtype AddTokensResponse = AddTokensResponse {}
- newtype PruneResponse = PruneResponse {}
- newtype ConcurrencyPoliciesResponse = ConcurrencyPoliciesResponse {}
- type ConcurrencyKeysResponse = Items ConcurrencyKeyView
- newtype ConcurrencyReconcileResponse = ConcurrencyReconcileResponse {
- reconciled :: Int64
- data HealthStatus
- healthStatusToText :: HealthStatus -> Text
- data HealthResponse = HealthResponse {
- status :: HealthStatus
- schemaName :: Text
- checkedAt :: UTCTime
- dbLatencyMs :: Maybe Double
- db :: Maybe PgDbHealth
- newtype LivenessResponse = LivenessResponse {}
- data CronScheduleRow = CronScheduleRow {
- name :: Text
- queueName :: Text
- defaultExpression :: Text
- defaultOverlap :: Text
- defaultTimezone :: Maybe Text
- overrideExpression :: Maybe Text
- overrideOverlap :: Maybe Text
- overrideTimezone :: Maybe Text
- enabled :: Bool
- lastFiredAt :: Maybe UTCTime
- lastCheckedAt :: Maybe UTCTime
- runRequestedAt :: Maybe UTCTime
- lastManualRunAt :: Maybe UTCTime
- createdAt :: UTCTime
- updatedAt :: UTCTime
- data CronScheduleUpdate = CronScheduleUpdate {
- overrideExpression :: Maybe (Maybe Text)
- overrideOverlap :: Maybe (Maybe Text)
- overrideTimezone :: Maybe (Maybe Text)
- enabled :: Maybe Bool
- data QueueOverview = QueueOverview {}
- data QueueStats = QueueStats {
- totalJobs :: Int64
- readyJobs :: Int64
- inFlightJobs :: Int64
- scheduledJobs :: Int64
- backoffJobs :: Int64
- throttledJobs :: Int64
- suspendedJobs :: Int64
- cancelledJobs :: Int64
- exhaustedJobs :: Int64
- blockedJobs :: Int64
- oldestReadyAgeSeconds :: Maybe Double
- oldestInFlightAgeSeconds :: Maybe Double
- dlqJobs :: Int64
- kindCounts :: Map Text Int64
- dlqKindCounts :: Map Text Int64
- data QueueRow = QueueRow {}
- data WorkerRow = WorkerRow {
- workerId :: UUID
- queueName :: Text
- hostName :: Maybe Text
- workerCount :: Maybe Int32
- startedAt :: UTCTime
- lastHeartbeat :: UTCTime
- shuttingDown :: Bool
- paused :: Bool
- staleThresholdSecs :: Double
- metadata :: Maybe Value
- health :: WorkerHealth
- data RateLimitPolicyView = RateLimitPolicyView {
- prefix :: Text
- defaultMaxTokens :: Double
- defaultRefillAmount :: Double
- defaultInterval :: Double
- overrideMaxTokens :: Maybe Double
- overrideRefillAmount :: Maybe Double
- overrideInterval :: Maybe Double
- bucketCount :: Int64
- throttledCount :: Int64
- throttledQueues :: [Text]
- minTokens :: Maybe Double
- avgTokens :: Maybe Double
- data RateLimitBucketView = RateLimitBucketView {}
- data RateLimitPolicyUpdate = RateLimitPolicyUpdate {}
- data ConcurrencyPolicyView = ConcurrencyPolicyView {
- prefix :: Text
- defaultLimit :: Int32
- overrideLimit :: Maybe Int32
- keyCount :: Int64
- totalInFlight :: Int64
- maxInFlight :: Maybe Int32
- data ConcurrencyKeyView = ConcurrencyKeyView {}
- data ConcurrencyPolicyUpdate = ConcurrencyPolicyUpdate {
- overrideLimit :: Maybe (Maybe Int32)
- data PgDbHealth = PgDbHealth {}
- data GroupSummary = GroupSummary {}
Jobs
data ApiJobWithStatus payloadSource #
A job row plus its SQL-derived status, for the list and detail endpoints.
Constructors
| ApiJobWithStatus | |
Fields
| |
Instances
newtype ApiJobWrite payloadSource #
Write-side job for REST insertion. Lineage, suspension and trace fields are not settable.
Constructors
| ApiJobWrite | |
Fields
| |
Instances
newtype JobResponse aSource #
Single-job response envelope, parameterized over the job representation
(JobRead for insert, ApiJobWithStatus for the detail endpoint).
Constructors
| JobResponse | |
Fields
| |
Instances
data JobsResponse payloadSource #
A page of jobs with their tree counts.
Constructors
| JobsResponse | |
Fields
| |
Instances
| 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 (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# | |
| Eq (JobsResponse payload) Source # | |
Defined in Arbiter.Servant.Types Methods (==) :: JobsResponse payload -> JobsResponse payload -> Bool# (/=) :: JobsResponse payload -> JobsResponse payload -> Bool# | |
| Show (JobsResponse payload) Source # | |
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> JobsResponse payload -> ShowS# show :: JobsResponse payload -> String# showList :: [JobsResponse payload] -> ShowS# | |
newtype RescheduleRequestSource #
When a rescheduled job becomes visible.
Constructors
| RescheduleRequest | |
Instances
| FromJSON RescheduleRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser RescheduleRequest# parseJSONList :: Value -> Parser [RescheduleRequest]# | |||||
| ToJSON RescheduleRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: RescheduleRequest -> Value# toEncoding :: RescheduleRequest -> Encoding# toJSONList :: [RescheduleRequest] -> Value# toEncodingList :: [RescheduleRequest] -> Encoding# omitField :: RescheduleRequest -> Bool# | |||||
| Eq RescheduleRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: RescheduleRequest -> RescheduleRequest -> Bool# (/=) :: RescheduleRequest -> RescheduleRequest -> Bool# | |||||
| Generic RescheduleRequest Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: RescheduleRequest -> Rep RescheduleRequest x# to :: Rep RescheduleRequest x -> RescheduleRequest# | |||||
| Show RescheduleRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> RescheduleRequest -> ShowS# show :: RescheduleRequest -> String# showList :: [RescheduleRequest] -> ShowS# | |||||
| type Rep RescheduleRequest Source # | |||||
Defined in Arbiter.Servant.Types type Rep RescheduleRequest = D1 ('MetaData "RescheduleRequest" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "RescheduleRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "runAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime))) | |||||
newtype DLQRetentionRequestSource #
Request body for setting a queue's DLQ retention.
Constructors
| DLQRetentionRequest | |
Fields | |
Instances
| FromJSON DLQRetentionRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser DLQRetentionRequest# parseJSONList :: Value -> Parser [DLQRetentionRequest]# | |||||
| ToJSON DLQRetentionRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: DLQRetentionRequest -> Value# toEncoding :: DLQRetentionRequest -> Encoding# toJSONList :: [DLQRetentionRequest] -> Value# | |||||
| Eq DLQRetentionRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: DLQRetentionRequest -> DLQRetentionRequest -> Bool# (/=) :: DLQRetentionRequest -> DLQRetentionRequest -> Bool# | |||||
| Generic DLQRetentionRequest Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: DLQRetentionRequest -> Rep DLQRetentionRequest x# to :: Rep DLQRetentionRequest x -> DLQRetentionRequest# | |||||
| Show DLQRetentionRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> DLQRetentionRequest -> ShowS# show :: DLQRetentionRequest -> String# showList :: [DLQRetentionRequest] -> ShowS# | |||||
| type Rep DLQRetentionRequest Source # | |||||
Defined in Arbiter.Servant.Types type Rep DLQRetentionRequest = D1 ('MetaData "DLQRetentionRequest" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "DLQRetentionRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "retentionSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)))) | |||||
newtype BatchInsertRequest payloadSource #
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# | |||||
| Eq payload => Eq (BatchInsertRequest payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchInsertRequest payload -> BatchInsertRequest payload -> Bool# (/=) :: BatchInsertRequest payload -> 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# | |||||
| 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 "jobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ApiJobWrite payload]))) | |||||
data BatchInsertResponse payloadSource #
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# | |||||
| Eq payload => Eq (BatchInsertResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchInsertResponse payload -> BatchInsertResponse payload -> Bool# (/=) :: BatchInsertResponse payload -> 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# | |||||
| 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 [JobRead payload]) :*: S1 ('MetaSel ('Just "insertedCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) | |||||
DLQ and archive
newtype PayloadEdit payloadSource #
A replacement payload for a retry or a re-enqueue.
Constructors
| PayloadEdit | |
Fields
| |
Instances
| FromJSON payload => FromJSON (PayloadEdit payload) Source # | |
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (PayloadEdit payload)# parseJSONList :: Value -> Parser [PayloadEdit payload]# omittedField :: Maybe (PayloadEdit payload)# | |
| ToJSON payload => ToJSON (PayloadEdit payload) Source # | |
Defined in Arbiter.Servant.Types Methods toJSON :: PayloadEdit payload -> Value# toEncoding :: PayloadEdit payload -> Encoding# toJSONList :: [PayloadEdit payload] -> Value# toEncodingList :: [PayloadEdit payload] -> Encoding# omitField :: PayloadEdit payload -> Bool# | |
| Eq payload => Eq (PayloadEdit payload) Source # | |
Defined in Arbiter.Servant.Types Methods (==) :: PayloadEdit payload -> PayloadEdit payload -> Bool# (/=) :: PayloadEdit payload -> PayloadEdit payload -> Bool# | |
| Show payload => Show (PayloadEdit payload) Source # | |
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> PayloadEdit payload -> ShowS# show :: PayloadEdit payload -> String# showList :: [PayloadEdit payload] -> ShowS# | |
data OptionalJSONSource #
JSON that a request can leave out. An empty body decodes as Nothing. A request
with no content type is read as this type and must have an empty body.
Instances
| Accept OptionalJSON Source # | |
Defined in Arbiter.Servant.Types Methods | |
| ToJSON a => MimeRender OptionalJSON (Maybe a) Source # |
|
Defined in Arbiter.Servant.Types Methods mimeRender :: Proxy OptionalJSON -> Maybe a -> ByteString# | |
| FromJSON a => MimeUnrender OptionalJSON (Maybe a) Source # | |
Defined in Arbiter.Servant.Types Methods mimeUnrender :: Proxy OptionalJSON -> ByteString -> Either String (Maybe a)# mimeUnrenderWithType :: Proxy OptionalJSON -> MediaType -> ByteString -> Either String (Maybe a)# | |
newtype BatchDeleteRequestSource #
Request body for a batch DLQ or archive 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# | |||||
| Eq BatchDeleteRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchDeleteRequest -> BatchDeleteRequest -> Bool# (/=) :: BatchDeleteRequest -> 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# | |||||
| 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" 'True) (C1 ('MetaCons "BatchDeleteRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int64]))) | |||||
newtype BatchDeleteResponseSource #
Response body for a batch DLQ or archive 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# | |||||
| Eq BatchDeleteResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchDeleteResponse -> BatchDeleteResponse -> Bool# (/=) :: BatchDeleteResponse -> 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# | |||||
| 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" 'True) (C1 ('MetaCons "BatchDeleteResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) | |||||
newtype BatchRetryRequestSource #
Request body for a batch DLQ retry.
Constructors
| BatchRetryRequest | |
Instances
| FromJSON BatchRetryRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser BatchRetryRequest# parseJSONList :: Value -> Parser [BatchRetryRequest]# | |||||
| ToJSON BatchRetryRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: BatchRetryRequest -> Value# toEncoding :: BatchRetryRequest -> Encoding# toJSONList :: [BatchRetryRequest] -> Value# toEncodingList :: [BatchRetryRequest] -> Encoding# omitField :: BatchRetryRequest -> Bool# | |||||
| Eq BatchRetryRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchRetryRequest -> BatchRetryRequest -> Bool# (/=) :: BatchRetryRequest -> BatchRetryRequest -> Bool# | |||||
| Generic BatchRetryRequest Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: BatchRetryRequest -> Rep BatchRetryRequest x# to :: Rep BatchRetryRequest x -> BatchRetryRequest# | |||||
| Show BatchRetryRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> BatchRetryRequest -> ShowS# show :: BatchRetryRequest -> String# showList :: [BatchRetryRequest] -> ShowS# | |||||
| type Rep BatchRetryRequest Source # | |||||
Defined in Arbiter.Servant.Types type Rep BatchRetryRequest = D1 ('MetaData "BatchRetryRequest" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "BatchRetryRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int64]))) | |||||
newtype BatchRetryResponseSource #
Response body for a batch or filtered DLQ retry.
Constructors
| BatchRetryResponse | |
Instances
| FromJSON BatchRetryResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser BatchRetryResponse# parseJSONList :: Value -> Parser [BatchRetryResponse]# | |||||
| ToJSON BatchRetryResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: BatchRetryResponse -> Value# toEncoding :: BatchRetryResponse -> Encoding# toJSONList :: [BatchRetryResponse] -> Value# toEncodingList :: [BatchRetryResponse] -> Encoding# omitField :: BatchRetryResponse -> Bool# | |||||
| Eq BatchRetryResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: BatchRetryResponse -> BatchRetryResponse -> Bool# (/=) :: BatchRetryResponse -> BatchRetryResponse -> Bool# | |||||
| Generic BatchRetryResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: BatchRetryResponse -> Rep BatchRetryResponse x# to :: Rep BatchRetryResponse x -> BatchRetryResponse# | |||||
| Show BatchRetryResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> BatchRetryResponse -> ShowS# show :: BatchRetryResponse -> String# showList :: [BatchRetryResponse] -> ShowS# | |||||
| type Rep BatchRetryResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep BatchRetryResponse = D1 ('MetaData "BatchRetryResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "BatchRetryResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "retried") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) | |||||
Pages
One page of a list, with the size of the full list.
Constructors
| Page | |
Fields
| |
newtype PageSize (def :: Nat)Source #
Page size of a listing, with the size it takes when the request omits it.
Constructors
| PageSize | |
Fields
| |
Instances
| Eq (PageSize def) Source # | |
| Show (PageSize def) Source # | |
| FromHttpApiData (PageSize def) Source # | |
Defined in Arbiter.Servant.Types Methods parseUrlPiece :: Text -> Either Text (PageSize def)# parseHeader :: ByteString -> Either Text (PageSize def)# | |
| ToHttpApiData (PageSize def) Source # | |
Defined in Arbiter.Servant.Types Methods toUrlPiece :: PageSize def -> Text# toEncodedUrlPiece :: PageSize def -> Builder# toHeader :: PageSize def -> ByteString# toQueryParam :: PageSize def -> Text# toEncodedQueryParam :: PageSize def -> Builder# | |
type KeyPageLimit = PageSize 100Source #
Page size of a bucket or key listing.
pageSizeDefault :: forall (def :: Nat) proxy. KnownNat def => proxy def -> IntSource #
The page size a listing takes when the request omits it.
pageLimitRange :: (Int, Int)Source #
Bounds on page size.
A list of rows without a total.
Instances
| FromJSON a => FromJSON (Items a) Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON a => ToJSON (Items a) Source # | |||||
| Eq a => Eq (Items a) Source # | |||||
| Generic (Items a) Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show a => Show (Items a) Source # | |||||
| type Rep (Items a) Source # | |||||
Defined in Arbiter.Servant.Types | |||||
type ArchiveResponse payload = Page (ArchiveJob (Stored payload))Source #
A page of archived jobs.
type GroupsResponse = Page GroupSummarySource #
A page of a queue's open groups.
Leases
data ClaimRequestSource #
A consumer's request to lease visible jobs.
Constructors
| ClaimRequest | |
Fields
| |
Instances
| FromJSON ClaimRequest Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON ClaimRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: ClaimRequest -> Value# toEncoding :: ClaimRequest -> Encoding# toJSONList :: [ClaimRequest] -> Value# toEncodingList :: [ClaimRequest] -> Encoding# omitField :: ClaimRequest -> Bool# | |||||
| Eq ClaimRequest Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| Generic ClaimRequest Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show ClaimRequest Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> ClaimRequest -> ShowS# show :: ClaimRequest -> String# showList :: [ClaimRequest] -> ShowS# | |||||
| type Rep ClaimRequest Source # | |||||
Defined in Arbiter.Servant.Types type Rep ClaimRequest = D1 ('MetaData "ClaimRequest" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ClaimRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "leaseSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)))) | |||||
claimJobsRange :: (Int, Int)Source #
Bounds on jobs per claim.
defaultClaimJobs :: IntSource #
Jobs per claim when the request omits it.
leaseSecondsRange :: (Double, Double)Source #
Bounds on lease seconds.
defaultLeaseSeconds :: DoubleSource #
Lease seconds when the request omits it.
newtype ClaimResponse payloadSource #
Jobs returned by one claim. Each job contains the lease fields required for finalization.
Constructors
| ClaimResponse | |
Instances
| FromJSON payload => FromJSON (ClaimResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (ClaimResponse payload)# parseJSONList :: Value -> Parser [ClaimResponse payload]# omittedField :: Maybe (ClaimResponse payload)# | |||||
| ToJSON payload => ToJSON (ClaimResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: ClaimResponse payload -> Value# toEncoding :: ClaimResponse payload -> Encoding# toJSONList :: [ClaimResponse payload] -> Value# toEncodingList :: [ClaimResponse payload] -> Encoding# omitField :: ClaimResponse payload -> Bool# | |||||
| Eq payload => Eq (ClaimResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: ClaimResponse payload -> ClaimResponse payload -> Bool# (/=) :: ClaimResponse payload -> ClaimResponse payload -> Bool# | |||||
| Generic (ClaimResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: ClaimResponse payload -> Rep (ClaimResponse payload) x# to :: Rep (ClaimResponse payload) x -> ClaimResponse payload# | |||||
| Show payload => Show (ClaimResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> ClaimResponse payload -> ShowS# show :: ClaimResponse payload -> String# showList :: [ClaimResponse payload] -> ShowS# | |||||
| type Rep (ClaimResponse payload) Source # | |||||
Defined in Arbiter.Servant.Types type Rep (ClaimResponse payload) = D1 ('MetaData "ClaimResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "ClaimResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [JobRead payload]))) | |||||
Proof that the caller still holds a claimed job.
Constructors
| JobLease | |
Fields
| |
data AckRequest resultSource #
A lease and an optional stored result. An absent result performs a plain ack.
Constructors
| AckRequest | |
Instances
| FromJSON result => FromJSON (AckRequest result) Source # | |
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser (AckRequest result)# parseJSONList :: Value -> Parser [AckRequest result]# omittedField :: Maybe (AckRequest result)# | |
| ToJSON result => ToJSON (AckRequest result) Source # | |
Defined in Arbiter.Servant.Types Methods toJSON :: AckRequest result -> Value# toEncoding :: AckRequest result -> Encoding# toJSONList :: [AckRequest result] -> Value# toEncodingList :: [AckRequest result] -> Encoding# omitField :: AckRequest result -> Bool# | |
| Eq result => Eq (AckRequest result) Source # | |
Defined in Arbiter.Servant.Types Methods (==) :: AckRequest result -> AckRequest result -> Bool# (/=) :: AckRequest result -> AckRequest result -> Bool# | |
| Show result => Show (AckRequest result) Source # | |
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> AckRequest result -> ShowS# show :: AckRequest result -> String# showList :: [AckRequest result] -> ShowS# | |
data ExtendRequestSource #
A lease plus the window to hide the job for, counted from now.
Constructors
| ExtendRequest | |
Fields
| |
Instances
| FromJSON ExtendRequest Source # | |
Defined in Arbiter.Servant.Types | |
| ToJSON ExtendRequest Source # | |
Defined in Arbiter.Servant.Types Methods toJSON :: ExtendRequest -> Value# toEncoding :: ExtendRequest -> Encoding# toJSONList :: [ExtendRequest] -> Value# toEncodingList :: [ExtendRequest] -> Encoding# omitField :: ExtendRequest -> Bool# | |
| Eq ExtendRequest Source # | |
Defined in Arbiter.Servant.Types Methods (==) :: ExtendRequest -> ExtendRequest -> Bool# (/=) :: ExtendRequest -> ExtendRequest -> Bool# | |
| Show ExtendRequest Source # | |
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> ExtendRequest -> ShowS# show :: ExtendRequest -> String# showList :: [ExtendRequest] -> ShowS# | |
Queues and stats
data StatsResponseSource #
Queue statistics response.
Constructors
| StatsResponse | |
Fields
| |
Instances
| FromJSON StatsResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON StatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: StatsResponse -> Value# toEncoding :: StatsResponse -> Encoding# toJSONList :: [StatsResponse] -> Value# toEncodingList :: [StatsResponse] -> Encoding# omitField :: StatsResponse -> Bool# | |||||
| Eq StatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: StatsResponse -> StatsResponse -> Bool# (/=) :: StatsResponse -> StatsResponse -> Bool# | |||||
| Generic StatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show StatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> StatsResponse -> ShowS# show :: StatsResponse -> String# showList :: [StatsResponse] -> ShowS# | |||||
| type Rep StatsResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep StatsResponse = D1 ('MetaData "StatsResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "StatsResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "stats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueueStats) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime))) | |||||
newtype AllStatsResponseSource #
Every queue's stats, for the landing overview.
Constructors
| AllStatsResponse | |
Fields
| |
Instances
| FromJSON AllStatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser AllStatsResponse# parseJSONList :: Value -> Parser [AllStatsResponse]# | |||||
| ToJSON AllStatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: AllStatsResponse -> Value# toEncoding :: AllStatsResponse -> Encoding# toJSONList :: [AllStatsResponse] -> Value# toEncodingList :: [AllStatsResponse] -> Encoding# omitField :: AllStatsResponse -> Bool# | |||||
| Eq AllStatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: AllStatsResponse -> AllStatsResponse -> Bool# (/=) :: AllStatsResponse -> AllStatsResponse -> Bool# | |||||
| Generic AllStatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: AllStatsResponse -> Rep AllStatsResponse x# to :: Rep AllStatsResponse x -> AllStatsResponse# | |||||
| Show AllStatsResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> AllStatsResponse -> ShowS# show :: AllStatsResponse -> String# showList :: [AllStatsResponse] -> ShowS# | |||||
| type Rep AllStatsResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep AllStatsResponse = D1 ('MetaData "AllStatsResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "AllStatsResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "queues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [QueueOverview]))) | |||||
newtype QueuesResponseSource #
Queues list response.
Constructors
| QueuesResponse | |
Instances
| FromJSON QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser QueuesResponse# parseJSONList :: Value -> Parser [QueuesResponse]# | |||||
| ToJSON QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: QueuesResponse -> Value# toEncoding :: QueuesResponse -> Encoding# toJSONList :: [QueuesResponse] -> Value# toEncodingList :: [QueuesResponse] -> Encoding# omitField :: QueuesResponse -> Bool# | |||||
| Eq QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: QueuesResponse -> QueuesResponse -> Bool# (/=) :: QueuesResponse -> QueuesResponse -> Bool# | |||||
| Generic QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show QueuesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> QueuesResponse -> ShowS# show :: QueuesResponse -> String# showList :: [QueuesResponse] -> ShowS# | |||||
| 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" 'True) (C1 ('MetaCons "QueuesResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "queues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]))) | |||||
Maintenance
data MaintenanceResponseSource #
Rows each maintenance operation touched, and the operations that raised. An operation in neither was skipped.
Constructors
| MaintenanceResponse | |
Fields
| |
Instances
| FromJSON MaintenanceResponse Source # | |
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser MaintenanceResponse# parseJSONList :: Value -> Parser [MaintenanceResponse]# | |
| ToJSON MaintenanceResponse Source # | |
Defined in Arbiter.Servant.Types Methods toJSON :: MaintenanceResponse -> Value# toEncoding :: MaintenanceResponse -> Encoding# toJSONList :: [MaintenanceResponse] -> Value# | |
| Eq MaintenanceResponse Source # | |
Defined in Arbiter.Servant.Types Methods (==) :: MaintenanceResponse -> MaintenanceResponse -> Bool# (/=) :: MaintenanceResponse -> MaintenanceResponse -> Bool# | |
| Show MaintenanceResponse Source # | |
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> MaintenanceResponse -> ShowS# show :: MaintenanceResponse -> String# showList :: [MaintenanceResponse] -> ShowS# | |
Cron and workers
data CronScheduleViewSource #
A cron schedule row plus the next tick its effective expression fires at. A disabled schedule, an expression that never fires again, or one the server cannot parse has none.
Constructors
| CronScheduleView | |
Fields
| |
Instances
| FromJSON CronScheduleView Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser CronScheduleView# parseJSONList :: Value -> Parser [CronScheduleView]# | |||||
| ToJSON CronScheduleView Source # | The row's own fields, with | ||||
Defined in Arbiter.Servant.Types Methods toJSON :: CronScheduleView -> Value# toEncoding :: CronScheduleView -> Encoding# toJSONList :: [CronScheduleView] -> Value# toEncodingList :: [CronScheduleView] -> Encoding# omitField :: CronScheduleView -> Bool# | |||||
| Eq CronScheduleView Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: CronScheduleView -> CronScheduleView -> Bool# (/=) :: CronScheduleView -> CronScheduleView -> Bool# | |||||
| Generic CronScheduleView Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: CronScheduleView -> Rep CronScheduleView x# to :: Rep CronScheduleView x -> CronScheduleView# | |||||
| Show CronScheduleView Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> CronScheduleView -> ShowS# show :: CronScheduleView -> String# showList :: [CronScheduleView] -> ShowS# | |||||
| type Rep CronScheduleView Source # | |||||
Defined in Arbiter.Servant.Types type Rep CronScheduleView = D1 ('MetaData "CronScheduleView" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "CronScheduleView" 'PrefixI 'True) (S1 ('MetaSel ('Just "schedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CronScheduleRow) :*: S1 ('MetaSel ('Just "nextRunAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)))) | |||||
newtype CronSchedulesResponseSource #
Cron schedules response.
Constructors
| CronSchedulesResponse | |
Fields | |
Instances
| FromJSON CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser CronSchedulesResponse# | |||||
| ToJSON CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: CronSchedulesResponse -> Value# toEncoding :: CronSchedulesResponse -> Encoding# toJSONList :: [CronSchedulesResponse] -> Value# | |||||
| Eq CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: CronSchedulesResponse -> CronSchedulesResponse -> Bool# (/=) :: CronSchedulesResponse -> CronSchedulesResponse -> Bool# | |||||
| Generic CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: CronSchedulesResponse -> Rep CronSchedulesResponse x# | |||||
| Show CronSchedulesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> CronSchedulesResponse -> ShowS# show :: CronSchedulesResponse -> String# showList :: [CronSchedulesResponse] -> ShowS# | |||||
| 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" 'True) (C1 ('MetaCons "CronSchedulesResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "schedules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CronScheduleView]))) | |||||
newtype WorkersResponseSource #
Worker registry response.
Constructors
| WorkersResponse | |
Instances
| FromJSON WorkersResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser WorkersResponse# parseJSONList :: Value -> Parser [WorkersResponse]# | |||||
| ToJSON WorkersResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: WorkersResponse -> Value# toEncoding :: WorkersResponse -> Encoding# toJSONList :: [WorkersResponse] -> Value# toEncodingList :: [WorkersResponse] -> Encoding# omitField :: WorkersResponse -> Bool# | |||||
| Eq WorkersResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: WorkersResponse -> WorkersResponse -> Bool# (/=) :: WorkersResponse -> WorkersResponse -> Bool# | |||||
| Generic WorkersResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: WorkersResponse -> Rep WorkersResponse x# to :: Rep WorkersResponse x -> WorkersResponse# | |||||
| Show WorkersResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> WorkersResponse -> ShowS# show :: WorkersResponse -> String# showList :: [WorkersResponse] -> ShowS# | |||||
| type Rep WorkersResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep WorkersResponse = D1 ('MetaData "WorkersResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "WorkersResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "workers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [WorkerRow]))) | |||||
Admission policies
newtype RateLimitPoliciesResponseSource #
Rate-limit policies response.
Constructors
| RateLimitPoliciesResponse | |
Fields | |
Instances
| FromJSON RateLimitPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON RateLimitPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| Eq RateLimitPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: RateLimitPoliciesResponse -> RateLimitPoliciesResponse -> Bool# (/=) :: RateLimitPoliciesResponse -> RateLimitPoliciesResponse -> Bool# | |||||
| Generic RateLimitPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: RateLimitPoliciesResponse -> Rep RateLimitPoliciesResponse x# to :: Rep RateLimitPoliciesResponse x -> RateLimitPoliciesResponse# | |||||
| Show RateLimitPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> RateLimitPoliciesResponse -> ShowS# show :: RateLimitPoliciesResponse -> String# showList :: [RateLimitPoliciesResponse] -> ShowS# | |||||
| type Rep RateLimitPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep RateLimitPoliciesResponse = D1 ('MetaData "RateLimitPoliciesResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "RateLimitPoliciesResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "policies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RateLimitPolicyView]))) | |||||
type RateLimitBucketsResponse = Items RateLimitBucketViewSource #
Rate-limit buckets response (one prefix's keys).
newtype RateLimitResetResponseSource #
Number of buckets a reset refilled to full.
Constructors
| RateLimitResetResponse | |
Instances
| FromJSON RateLimitResetResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON RateLimitResetResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: RateLimitResetResponse -> Value# toEncoding :: RateLimitResetResponse -> Encoding# toJSONList :: [RateLimitResetResponse] -> Value# | |||||
| Eq RateLimitResetResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: RateLimitResetResponse -> RateLimitResetResponse -> Bool# (/=) :: RateLimitResetResponse -> RateLimitResetResponse -> Bool# | |||||
| Generic RateLimitResetResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: RateLimitResetResponse -> Rep RateLimitResetResponse x# to :: Rep RateLimitResetResponse x -> RateLimitResetResponse# | |||||
| Show RateLimitResetResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> RateLimitResetResponse -> ShowS# show :: RateLimitResetResponse -> String# showList :: [RateLimitResetResponse] -> ShowS# | |||||
| type Rep RateLimitResetResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep RateLimitResetResponse = D1 ('MetaData "RateLimitResetResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "RateLimitResetResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "reset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) | |||||
newtype AddTokensRequestSource #
Tokens to add to one rate-limit bucket.
Constructors
| AddTokensRequest | |
Fields | |
Instances
| FromJSON AddTokensRequest Source # | |
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser AddTokensRequest# parseJSONList :: Value -> Parser [AddTokensRequest]# | |
| ToJSON AddTokensRequest Source # | |
Defined in Arbiter.Servant.Types Methods toJSON :: AddTokensRequest -> Value# toEncoding :: AddTokensRequest -> Encoding# toJSONList :: [AddTokensRequest] -> Value# toEncodingList :: [AddTokensRequest] -> Encoding# omitField :: AddTokensRequest -> Bool# | |
| Eq AddTokensRequest Source # | |
Defined in Arbiter.Servant.Types Methods (==) :: AddTokensRequest -> AddTokensRequest -> Bool# (/=) :: AddTokensRequest -> AddTokensRequest -> Bool# | |
| Show AddTokensRequest Source # | |
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> AddTokensRequest -> ShowS# show :: AddTokensRequest -> String# showList :: [AddTokensRequest] -> ShowS# | |
newtype AddTokensResponseSource #
Jobs a token grant made claimable again.
Constructors
| AddTokensResponse | |
Instances
| FromJSON AddTokensResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser AddTokensResponse# parseJSONList :: Value -> Parser [AddTokensResponse]# | |||||
| ToJSON AddTokensResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: AddTokensResponse -> Value# toEncoding :: AddTokensResponse -> Encoding# toJSONList :: [AddTokensResponse] -> Value# toEncodingList :: [AddTokensResponse] -> Encoding# omitField :: AddTokensResponse -> Bool# | |||||
| Eq AddTokensResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: AddTokensResponse -> AddTokensResponse -> Bool# (/=) :: AddTokensResponse -> AddTokensResponse -> Bool# | |||||
| Generic AddTokensResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: AddTokensResponse -> Rep AddTokensResponse x# to :: Rep AddTokensResponse x -> AddTokensResponse# | |||||
| Show AddTokensResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> AddTokensResponse -> ShowS# show :: AddTokensResponse -> String# showList :: [AddTokensResponse] -> ShowS# | |||||
| type Rep AddTokensResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep AddTokensResponse = D1 ('MetaData "AddTokensResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "AddTokensResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "woken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) | |||||
newtype PruneResponseSource #
Rows a prune deleted.
Constructors
| PruneResponse | |
Instances
| FromJSON PruneResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON PruneResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: PruneResponse -> Value# toEncoding :: PruneResponse -> Encoding# toJSONList :: [PruneResponse] -> Value# toEncodingList :: [PruneResponse] -> Encoding# omitField :: PruneResponse -> Bool# | |||||
| Eq PruneResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: PruneResponse -> PruneResponse -> Bool# (/=) :: PruneResponse -> PruneResponse -> Bool# | |||||
| Generic PruneResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show PruneResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> PruneResponse -> ShowS# show :: PruneResponse -> String# showList :: [PruneResponse] -> ShowS# | |||||
| type Rep PruneResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep PruneResponse = D1 ('MetaData "PruneResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "PruneResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "pruned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) | |||||
newtype ConcurrencyPoliciesResponseSource #
Concurrency policies response.
Constructors
| ConcurrencyPoliciesResponse | |
Fields | |
Instances
| FromJSON ConcurrencyPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON ConcurrencyPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| Eq ConcurrencyPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| Generic ConcurrencyPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show ConcurrencyPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> ConcurrencyPoliciesResponse -> ShowS# | |||||
| type Rep ConcurrencyPoliciesResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep ConcurrencyPoliciesResponse = D1 ('MetaData "ConcurrencyPoliciesResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "ConcurrencyPoliciesResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "policies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ConcurrencyPolicyView]))) | |||||
type ConcurrencyKeysResponse = Items ConcurrencyKeyViewSource #
Concurrency keys response (one prefix's keys).
newtype ConcurrencyReconcileResponseSource #
Number of count rows repaired from live jobs.
Constructors
| ConcurrencyReconcileResponse | |
Fields
| |
Instances
| FromJSON ConcurrencyReconcileResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON ConcurrencyReconcileResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| Eq ConcurrencyReconcileResponse Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| Generic ConcurrencyReconcileResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show ConcurrencyReconcileResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> ConcurrencyReconcileResponse -> ShowS# | |||||
| type Rep ConcurrencyReconcileResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep ConcurrencyReconcileResponse = D1 ('MetaData "ConcurrencyReconcileResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "ConcurrencyReconcileResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "reconciled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) | |||||
Health
data HealthStatusSource #
Whether the API can reach its database.
Instances
| FromJSON HealthStatus Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| ToJSON HealthStatus Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: HealthStatus -> Value# toEncoding :: HealthStatus -> Encoding# toJSONList :: [HealthStatus] -> Value# toEncodingList :: [HealthStatus] -> Encoding# omitField :: HealthStatus -> Bool# | |||||
| Eq HealthStatus Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| Bounded HealthStatus Source # | |||||
Defined in Arbiter.Servant.Types | |||||
| Enum HealthStatus Source # | |||||
Defined in Arbiter.Servant.Types Methods succ :: HealthStatus -> HealthStatus# pred :: HealthStatus -> HealthStatus# toEnum :: Int -> HealthStatus# fromEnum :: HealthStatus -> Int# enumFrom :: HealthStatus -> [HealthStatus]# enumFromThen :: HealthStatus -> HealthStatus -> [HealthStatus]# enumFromTo :: HealthStatus -> HealthStatus -> [HealthStatus]# enumFromThenTo :: HealthStatus -> HealthStatus -> HealthStatus -> [HealthStatus]# | |||||
| Generic HealthStatus Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show HealthStatus Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> HealthStatus -> ShowS# show :: HealthStatus -> String# showList :: [HealthStatus] -> ShowS# | |||||
| type Rep HealthStatus Source # | |||||
healthStatusToText :: HealthStatus -> TextSource #
The JSON text of a status: ok or down.
data HealthResponseSource #
Readiness of the API and the database behind it.
Constructors
| HealthResponse | |
Fields
| |
Instances
| FromJSON HealthResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser HealthResponse# parseJSONList :: Value -> Parser [HealthResponse]# | |||||
| ToJSON HealthResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: HealthResponse -> Value# toEncoding :: HealthResponse -> Encoding# toJSONList :: [HealthResponse] -> Value# toEncodingList :: [HealthResponse] -> Encoding# omitField :: HealthResponse -> Bool# | |||||
| Eq HealthResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: HealthResponse -> HealthResponse -> Bool# (/=) :: HealthResponse -> HealthResponse -> Bool# | |||||
| Generic HealthResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
| |||||
| Show HealthResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> HealthResponse -> ShowS# show :: HealthResponse -> String# showList :: [HealthResponse] -> ShowS# | |||||
| type Rep HealthResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep HealthResponse = D1 ('MetaData "HealthResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'False) (C1 ('MetaCons "HealthResponse" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HealthStatus) :*: S1 ('MetaSel ('Just "schemaName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "checkedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "dbLatencyMs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "db") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PgDbHealth)))))) | |||||
newtype LivenessResponseSource #
The process is running. Answered without touching the database.
Constructors
| LivenessResponse | |
Instances
| FromJSON LivenessResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods parseJSON :: Value -> Parser LivenessResponse# parseJSONList :: Value -> Parser [LivenessResponse]# | |||||
| ToJSON LivenessResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods toJSON :: LivenessResponse -> Value# toEncoding :: LivenessResponse -> Encoding# toJSONList :: [LivenessResponse] -> Value# toEncodingList :: [LivenessResponse] -> Encoding# omitField :: LivenessResponse -> Bool# | |||||
| Eq LivenessResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods (==) :: LivenessResponse -> LivenessResponse -> Bool# (/=) :: LivenessResponse -> LivenessResponse -> Bool# | |||||
| Generic LivenessResponse Source # | |||||
Defined in Arbiter.Servant.Types Associated Types
Methods from :: LivenessResponse -> Rep LivenessResponse x# to :: Rep LivenessResponse x -> LivenessResponse# | |||||
| Show LivenessResponse Source # | |||||
Defined in Arbiter.Servant.Types Methods showsPrec :: Int -> LivenessResponse -> ShowS# show :: LivenessResponse -> String# showList :: [LivenessResponse] -> ShowS# | |||||
| type Rep LivenessResponse Source # | |||||
Defined in Arbiter.Servant.Types type Rep LivenessResponse = D1 ('MetaData "LivenessResponse" "Arbiter.Servant.Types" "arbiter-servant-0.1.0.0-inplace" 'True) (C1 ('MetaCons "LivenessResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "alive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) | |||||
Re-exported core types
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# | |||||
| Eq CronScheduleRow # | |||||
Defined in Arbiter.Core.CronSchedule Methods (==) :: CronScheduleRow -> CronScheduleRow -> Bool# (/=) :: CronScheduleRow -> 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# | |||||
| 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 "queueName") '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 "defaultTimezone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "overrideExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "overrideOverlap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "overrideTimezone") '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 "runRequestedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "lastManualRunAt") '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#
A patch over a cron schedule's overrides. Nothing leaves a field unchanged,
Just Nothing clears the override back to the default, Just (Just v) sets it.
Constructors
| CronScheduleUpdate | |
Fields
| |
Instances
| FromJSON CronScheduleUpdate # | |||||
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# | |||||
| Eq CronScheduleUpdate # | |||||
Defined in Arbiter.Core.CronSchedule Methods (==) :: CronScheduleUpdate -> CronScheduleUpdate -> Bool# (/=) :: CronScheduleUpdate -> 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# | |||||
| 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 "overrideTimezone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Maybe Text))) :*: S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) | |||||
data QueueOverview#
A landing-overview row: a queue's stats, pause flag and worker counts.
Constructors
| QueueOverview | |
Fields
| |
Instances
| FromJSON QueueOverview # | |||||
Defined in Arbiter.Core.Operations | |||||
| ToJSON QueueOverview # | |||||
Defined in Arbiter.Core.Operations Methods toJSON :: QueueOverview -> Value# toEncoding :: QueueOverview -> Encoding# toJSONList :: [QueueOverview] -> Value# toEncodingList :: [QueueOverview] -> Encoding# omitField :: QueueOverview -> Bool# | |||||
| Eq QueueOverview # | |||||
Defined in Arbiter.Core.Operations Methods (==) :: QueueOverview -> QueueOverview -> Bool# (/=) :: QueueOverview -> QueueOverview -> Bool# | |||||
| Generic QueueOverview # | |||||
Defined in Arbiter.Core.Operations Associated Types
| |||||
| Show QueueOverview # | |||||
Defined in Arbiter.Core.Operations Methods showsPrec :: Int -> QueueOverview -> ShowS# show :: QueueOverview -> String# showList :: [QueueOverview] -> ShowS# | |||||
| type Rep QueueOverview # | |||||
Defined in Arbiter.Core.Operations type Rep QueueOverview = D1 ('MetaData "QueueOverview" "Arbiter.Core.Operations" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "QueueOverview" 'PrefixI 'True) ((S1 ('MetaSel ('Just "overviewQueue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "overviewStats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueueStats)) :*: (S1 ('MetaSel ('Just "overviewQueuePaused") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "overviewWorkersLive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "overviewWorkersPaused") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))))) | |||||
data QueueStats#
Per-status breakdown of a queue. The per-status counts partition the queue
and sum to totalJobs.
Constructors
| QueueStats | |
Fields
| |
Instances
| FromJSON QueueStats # | |||||
Defined in Arbiter.Core.Operations | |||||
| ToJSON QueueStats # | |||||
Defined in Arbiter.Core.Operations Methods toJSON :: QueueStats -> Value# toEncoding :: QueueStats -> Encoding# toJSONList :: [QueueStats] -> Value# toEncodingList :: [QueueStats] -> Encoding# omitField :: QueueStats -> Bool# | |||||
| Eq QueueStats # | |||||
Defined in Arbiter.Core.Operations | |||||
| Generic QueueStats # | |||||
Defined in Arbiter.Core.Operations Associated Types
| |||||
| Show QueueStats # | |||||
Defined in Arbiter.Core.Operations Methods showsPrec :: Int -> QueueStats -> ShowS# show :: QueueStats -> String# showList :: [QueueStats] -> ShowS# | |||||
| type Rep QueueStats # | |||||
Defined in Arbiter.Core.Operations type Rep QueueStats = D1 ('MetaData "QueueStats" "Arbiter.Core.Operations" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "QueueStats" 'PrefixI 'True) (((S1 ('MetaSel ('Just "totalJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: (S1 ('MetaSel ('Just "readyJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "inFlightJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) :*: ((S1 ('MetaSel ('Just "scheduledJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "backoffJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)) :*: (S1 ('MetaSel ('Just "throttledJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "suspendedJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)))) :*: (((S1 ('MetaSel ('Just "cancelledJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "exhaustedJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)) :*: (S1 ('MetaSel ('Just "blockedJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "oldestReadyAgeSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "oldestInFlightAgeSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "dlqJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)) :*: (S1 ('MetaSel ('Just "kindCounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text Int64)) :*: S1 ('MetaSel ('Just "dlqKindCounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text Int64))))))) | |||||
A row of the arbiter_queues table.
Constructors
| QueueRow | |
Fields
| |
Instances
| FromJSON QueueRow # | |||||
Defined in Arbiter.Core.Queues | |||||
| ToJSON QueueRow # | |||||
| Eq QueueRow # | |||||
| Generic QueueRow # | |||||
Defined in Arbiter.Core.Queues Associated Types
| |||||
| Show QueueRow # | |||||
| type Rep QueueRow # | |||||
Defined in Arbiter.Core.Queues type Rep QueueRow = D1 ('MetaData "QueueRow" "Arbiter.Core.Queues" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "QueueRow" 'PrefixI 'True) ((S1 ('MetaSel ('Just "queueName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "paused") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "pausedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)))) :*: ((S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)) :*: (S1 ('MetaSel ('Just "updatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "dlqRetention") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe NominalDiffTime)))))) | |||||
A row in the worker registry. One row per running worker.
Constructors
| WorkerRow | |
Fields
| |
Instances
| FromJSON WorkerRow # | |||||
Defined in Arbiter.Core.Worker | |||||
| ToJSON WorkerRow # | |||||
| Eq WorkerRow # | |||||
| Generic WorkerRow # | |||||
Defined in Arbiter.Core.Worker Associated Types
| |||||
| Show WorkerRow # | |||||
| type Rep WorkerRow # | |||||
Defined in Arbiter.Core.Worker type Rep WorkerRow = D1 ('MetaData "WorkerRow" "Arbiter.Core.Worker" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "WorkerRow" 'PrefixI 'True) (((S1 ('MetaSel ('Just "workerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UUID) :*: S1 ('MetaSel ('Just "queueName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "hostName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "workerCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int32)) :*: S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))) :*: ((S1 ('MetaSel ('Just "lastHeartbeat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "shuttingDown") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "paused") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "staleThresholdSecs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: (S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "health") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkerHealth)))))) | |||||
data RateLimitPolicyView#
A policy with its default and override params plus live bucket and throttle
stats. Each effective param is its override* field when set, else its default* field.
Constructors
| RateLimitPolicyView | |
Fields
| |
Instances
| FromJSON RateLimitPolicyView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods parseJSON :: Value -> Parser RateLimitPolicyView# parseJSONList :: Value -> Parser [RateLimitPolicyView]# | |||||
| ToJSON RateLimitPolicyView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods toJSON :: RateLimitPolicyView -> Value# toEncoding :: RateLimitPolicyView -> Encoding# toJSONList :: [RateLimitPolicyView] -> Value# | |||||
| Eq RateLimitPolicyView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods (==) :: RateLimitPolicyView -> RateLimitPolicyView -> Bool# (/=) :: RateLimitPolicyView -> RateLimitPolicyView -> Bool# | |||||
| Generic RateLimitPolicyView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Associated Types
Methods from :: RateLimitPolicyView -> Rep RateLimitPolicyView x# to :: Rep RateLimitPolicyView x -> RateLimitPolicyView# | |||||
| Show RateLimitPolicyView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods showsPrec :: Int -> RateLimitPolicyView -> ShowS# show :: RateLimitPolicyView -> String# showList :: [RateLimitPolicyView] -> ShowS# | |||||
| type Rep RateLimitPolicyView # | |||||
Defined in Arbiter.Core.RateLimit.Stats type Rep RateLimitPolicyView = D1 ('MetaData "RateLimitPolicyView" "Arbiter.Core.RateLimit.Stats" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "RateLimitPolicyView" 'PrefixI 'True) (((S1 ('MetaSel ('Just "prefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "defaultMaxTokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "defaultRefillAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) :*: (S1 ('MetaSel ('Just "defaultInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: (S1 ('MetaSel ('Just "overrideMaxTokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "overrideRefillAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))))) :*: ((S1 ('MetaSel ('Just "overrideInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "bucketCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "throttledCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) :*: (S1 ('MetaSel ('Just "throttledQueues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "minTokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "avgTokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))))))) | |||||
data RateLimitBucketView#
A single key's bucket: current tokens, effective max, and fill fraction.
Constructors
| RateLimitBucketView | |
Fields
| |
Instances
| FromJSON RateLimitBucketView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods parseJSON :: Value -> Parser RateLimitBucketView# parseJSONList :: Value -> Parser [RateLimitBucketView]# | |||||
| ToJSON RateLimitBucketView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods toJSON :: RateLimitBucketView -> Value# toEncoding :: RateLimitBucketView -> Encoding# toJSONList :: [RateLimitBucketView] -> Value# | |||||
| Eq RateLimitBucketView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods (==) :: RateLimitBucketView -> RateLimitBucketView -> Bool# (/=) :: RateLimitBucketView -> RateLimitBucketView -> Bool# | |||||
| Generic RateLimitBucketView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Associated Types
Methods from :: RateLimitBucketView -> Rep RateLimitBucketView x# to :: Rep RateLimitBucketView x -> RateLimitBucketView# | |||||
| Show RateLimitBucketView # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods showsPrec :: Int -> RateLimitBucketView -> ShowS# show :: RateLimitBucketView -> String# showList :: [RateLimitBucketView] -> ShowS# | |||||
| type Rep RateLimitBucketView # | |||||
Defined in Arbiter.Core.RateLimit.Stats type Rep RateLimitBucketView = D1 ('MetaData "RateLimitBucketView" "Arbiter.Core.RateLimit.Stats" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "RateLimitBucketView" 'PrefixI 'True) ((S1 ('MetaSel ('Just "rateLimitKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "rateLimitPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "tokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) :*: (S1 ('MetaSel ('Just "maxTokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: (S1 ('MetaSel ('Just "fillFraction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "lastRefill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime))))) | |||||
A patch over a policy's override params. Per field: Nothing leaves it
unchanged, Just Nothing clears the override (reverts to the default), and
Just (Just v) sets it.
Constructors
| RateLimitPolicyUpdate | |
Fields
| |
Instances
| FromJSON RateLimitPolicyUpdate # | A missing key leaves the field unchanged. An explicit | ||||
Defined in Arbiter.Core.RateLimit.Stats Methods parseJSON :: Value -> Parser RateLimitPolicyUpdate# | |||||
| ToJSON RateLimitPolicyUpdate # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods toJSON :: RateLimitPolicyUpdate -> Value# toEncoding :: RateLimitPolicyUpdate -> Encoding# toJSONList :: [RateLimitPolicyUpdate] -> Value# | |||||
| Eq RateLimitPolicyUpdate # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods (==) :: RateLimitPolicyUpdate -> RateLimitPolicyUpdate -> Bool# (/=) :: RateLimitPolicyUpdate -> RateLimitPolicyUpdate -> Bool# | |||||
| Generic RateLimitPolicyUpdate # | |||||
Defined in Arbiter.Core.RateLimit.Stats Associated Types
Methods from :: RateLimitPolicyUpdate -> Rep RateLimitPolicyUpdate x# | |||||
| Show RateLimitPolicyUpdate # | |||||
Defined in Arbiter.Core.RateLimit.Stats Methods showsPrec :: Int -> RateLimitPolicyUpdate -> ShowS# show :: RateLimitPolicyUpdate -> String# showList :: [RateLimitPolicyUpdate] -> ShowS# | |||||
| type Rep RateLimitPolicyUpdate # | |||||
Defined in Arbiter.Core.RateLimit.Stats type Rep RateLimitPolicyUpdate = D1 ('MetaData "RateLimitPolicyUpdate" "Arbiter.Core.RateLimit.Stats" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "RateLimitPolicyUpdate" 'PrefixI 'True) (S1 ('MetaSel ('Just "overrideMaxTokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Maybe Double))) :*: (S1 ('MetaSel ('Just "overrideRefillAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Maybe Double))) :*: S1 ('MetaSel ('Just "overrideInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Maybe Double)))))) | |||||
A concurrency policy with its default and override limits plus live key and
in-flight stats. The effective cap is overrideLimit when set, else defaultLimit.
Constructors
| ConcurrencyPolicyView | |
Fields
| |
Instances
| FromJSON ConcurrencyPolicyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods parseJSON :: Value -> Parser ConcurrencyPolicyView# | |||||
| ToJSON ConcurrencyPolicyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods toJSON :: ConcurrencyPolicyView -> Value# toEncoding :: ConcurrencyPolicyView -> Encoding# toJSONList :: [ConcurrencyPolicyView] -> Value# | |||||
| Eq ConcurrencyPolicyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods (==) :: ConcurrencyPolicyView -> ConcurrencyPolicyView -> Bool# (/=) :: ConcurrencyPolicyView -> ConcurrencyPolicyView -> Bool# | |||||
| Generic ConcurrencyPolicyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Associated Types
Methods from :: ConcurrencyPolicyView -> Rep ConcurrencyPolicyView x# | |||||
| Show ConcurrencyPolicyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods showsPrec :: Int -> ConcurrencyPolicyView -> ShowS# show :: ConcurrencyPolicyView -> String# showList :: [ConcurrencyPolicyView] -> ShowS# | |||||
| type Rep ConcurrencyPolicyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats type Rep ConcurrencyPolicyView = D1 ('MetaData "ConcurrencyPolicyView" "Arbiter.Core.Concurrency.Stats" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ConcurrencyPolicyView" 'PrefixI 'True) ((S1 ('MetaSel ('Just "prefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "defaultLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int32) :*: S1 ('MetaSel ('Just "overrideLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int32)))) :*: (S1 ('MetaSel ('Just "keyCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: (S1 ('MetaSel ('Just "totalInFlight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "maxInFlight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int32)))))) | |||||
data ConcurrencyKeyView#
A single key's in-flight count, its effective cap, and fill fraction.
Constructors
| ConcurrencyKeyView | |
Fields
| |
Instances
| FromJSON ConcurrencyKeyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods parseJSON :: Value -> Parser ConcurrencyKeyView# parseJSONList :: Value -> Parser [ConcurrencyKeyView]# | |||||
| ToJSON ConcurrencyKeyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods toJSON :: ConcurrencyKeyView -> Value# toEncoding :: ConcurrencyKeyView -> Encoding# toJSONList :: [ConcurrencyKeyView] -> Value# toEncodingList :: [ConcurrencyKeyView] -> Encoding# omitField :: ConcurrencyKeyView -> Bool# | |||||
| Eq ConcurrencyKeyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods (==) :: ConcurrencyKeyView -> ConcurrencyKeyView -> Bool# (/=) :: ConcurrencyKeyView -> ConcurrencyKeyView -> Bool# | |||||
| Generic ConcurrencyKeyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Associated Types
Methods from :: ConcurrencyKeyView -> Rep ConcurrencyKeyView x# to :: Rep ConcurrencyKeyView x -> ConcurrencyKeyView# | |||||
| Show ConcurrencyKeyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods showsPrec :: Int -> ConcurrencyKeyView -> ShowS# show :: ConcurrencyKeyView -> String# showList :: [ConcurrencyKeyView] -> ShowS# | |||||
| type Rep ConcurrencyKeyView # | |||||
Defined in Arbiter.Core.Concurrency.Stats type Rep ConcurrencyKeyView = D1 ('MetaData "ConcurrencyKeyView" "Arbiter.Core.Concurrency.Stats" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ConcurrencyKeyView" 'PrefixI 'True) ((S1 ('MetaSel ('Just "concurrencyKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "concurrencyPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "inFlight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int32) :*: (S1 ('MetaSel ('Just "effectiveLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int32) :*: S1 ('MetaSel ('Just "fillFraction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)))))) | |||||
A patch over a concurrency policy's override limit. Nothing leaves it unchanged,
Just Nothing clears the override (reverts to the default), and Just (Just v) sets it.
Constructors
| ConcurrencyPolicyUpdate | |
Fields
| |
Instances
| FromJSON ConcurrencyPolicyUpdate # | A missing key leaves the field unchanged. An explicit | ||||
Defined in Arbiter.Core.Concurrency.Stats | |||||
| ToJSON ConcurrencyPolicyUpdate # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods toJSON :: ConcurrencyPolicyUpdate -> Value# toEncoding :: ConcurrencyPolicyUpdate -> Encoding# toJSONList :: [ConcurrencyPolicyUpdate] -> Value# | |||||
| Eq ConcurrencyPolicyUpdate # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods (==) :: ConcurrencyPolicyUpdate -> ConcurrencyPolicyUpdate -> Bool# (/=) :: ConcurrencyPolicyUpdate -> ConcurrencyPolicyUpdate -> Bool# | |||||
| Generic ConcurrencyPolicyUpdate # | |||||
Defined in Arbiter.Core.Concurrency.Stats Associated Types
Methods from :: ConcurrencyPolicyUpdate -> Rep ConcurrencyPolicyUpdate x# to :: Rep ConcurrencyPolicyUpdate x -> ConcurrencyPolicyUpdate# | |||||
| Show ConcurrencyPolicyUpdate # | |||||
Defined in Arbiter.Core.Concurrency.Stats Methods showsPrec :: Int -> ConcurrencyPolicyUpdate -> ShowS# show :: ConcurrencyPolicyUpdate -> String# showList :: [ConcurrencyPolicyUpdate] -> ShowS# | |||||
| type Rep ConcurrencyPolicyUpdate # | |||||
Defined in Arbiter.Core.Concurrency.Stats type Rep ConcurrencyPolicyUpdate = D1 ('MetaData "ConcurrencyPolicyUpdate" "Arbiter.Core.Concurrency.Stats" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ConcurrencyPolicyUpdate" 'PrefixI 'True) (S1 ('MetaSel ('Just "overrideLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Maybe Int32))))) | |||||
data PgDbHealth#
Connection and age counters for the current database, shared with its other clients.
Constructors
| PgDbHealth | |
Fields
| |
Instances
| FromJSON PgDbHealth # | |||||
Defined in Arbiter.Core.Health | |||||
| ToJSON PgDbHealth # | |||||
Defined in Arbiter.Core.Health Methods toJSON :: PgDbHealth -> Value# toEncoding :: PgDbHealth -> Encoding# toJSONList :: [PgDbHealth] -> Value# toEncodingList :: [PgDbHealth] -> Encoding# omitField :: PgDbHealth -> Bool# | |||||
| Eq PgDbHealth # | |||||
Defined in Arbiter.Core.Health | |||||
| Generic PgDbHealth # | |||||
Defined in Arbiter.Core.Health Associated Types
| |||||
| Show PgDbHealth # | |||||
Defined in Arbiter.Core.Health Methods showsPrec :: Int -> PgDbHealth -> ShowS# show :: PgDbHealth -> String# showList :: [PgDbHealth] -> ShowS# | |||||
| type Rep PgDbHealth # | |||||
Defined in Arbiter.Core.Health type Rep PgDbHealth = D1 ('MetaData "PgDbHealth" "Arbiter.Core.Health" "arbiter-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PgDbHealth" 'PrefixI 'True) (((S1 ('MetaSel ('Just "numBackends") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "connActive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)) :*: (S1 ('MetaSel ('Just "connIdle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "connIdleInTxn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))) :*: ((S1 ('MetaSel ('Just "connIdleInTxnAborted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "connBlocked") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)) :*: (S1 ('MetaSel ('Just "connOther") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: (S1 ('MetaSel ('Just "oldestTxnAge") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "oldestQueryAge") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))))) | |||||
data GroupSummary#
One open group, read from the queue's groups summary.
Constructors
| GroupSummary | |
Fields
| |
Instances
| FromJSON GroupSummary # | |
Defined in Arbiter.Core.Operations | |
| ToJSON GroupSummary # | |
Defined in Arbiter.Core.Operations Methods toJSON :: GroupSummary -> Value# toEncoding :: GroupSummary -> Encoding# toJSONList :: [GroupSummary] -> Value# toEncodingList :: [GroupSummary] -> Encoding# omitField :: GroupSummary -> Bool# | |
| Eq GroupSummary # | |
Defined in Arbiter.Core.Operations | |
| Show GroupSummary # | |
Defined in Arbiter.Core.Operations Methods showsPrec :: Int -> GroupSummary -> ShowS# show :: GroupSummary -> String# showList :: [GroupSummary] -> ShowS# | |