Copyright | Copyright © FINN.no AS Inc. All rights reserved. |
---|---|
License | MIT |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Unleash domain transfer objects.
Synopsis
- data Features = Features {}
- data Feature = Feature {}
- data Strategy = Strategy {
- name :: Text
- parameters :: Maybe (Map Text Text)
- constraints :: Maybe [Constraint]
- segments :: Maybe [Int]
- data Constraint = Constraint {}
- data Variant = Variant {}
- data Payload = Payload {}
- data Override = Override {
- contextName :: Text
- values :: [Text]
- data Context = Context {}
- emptyContext :: Context
- data Segment = Segment {
- id :: Int
- constraints :: [Constraint]
- data VariantResponse = VariantResponse {}
- emptyVariantResponse :: VariantResponse
- data MetricsPayload = MetricsPayload {}
- data FullMetricsPayload = FullMetricsPayload {
- appName :: Text
- instanceId :: Text
- bucket :: FullMetricsBucket
- data FullMetricsBucket = FullMetricsBucket {}
- data YesAndNoes = YesAndNoes {}
- data FullRegisterPayload = FullRegisterPayload {
- appName :: Text
- instanceId :: Text
- sdkVersion :: Text
- strategies :: [Text]
- started :: UTCTime
- interval :: Int
- data RegisterPayload = RegisterPayload {
- appName :: Text
- instanceId :: Text
- started :: UTCTime
- intervalSeconds :: Int
Documentation
Feature toggle set.
Instances
Feature toggle.
Instances
Strategy. Encompasses all (supported) types of strategies.
Strategy | |
|
Instances
data Constraint Source #
Strategy constraint.
Instances
Variant.
Instances
Variant payload.
Instances
FromJSON Payload Source # | |
ToJSON Payload Source # | |
Defined in Unleash.Internal.JsonTypes | |
Generic Payload Source # | |
Show Payload Source # | |
Eq Payload Source # | |
aplg ~ Text => HasField "type_" Payload aplg Source # | |
Defined in Unleash.Internal.JsonTypes | |
aplg ~ Text => HasField "value" Payload aplg Source # | |
Defined in Unleash.Internal.JsonTypes | |
type Rep Payload Source # | |
Defined in Unleash.Internal.JsonTypes type Rep Payload = D1 ('MetaData "Payload" "Unleash.Internal.JsonTypes" "unleash-client-haskell-core-0.8.9-inplace" 'False) (C1 ('MetaCons "Payload" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
Contextual override.
Override | |
|
Instances
FromJSON Override Source # | |
ToJSON Override Source # | |
Defined in Unleash.Internal.JsonTypes | |
Generic Override Source # | |
Show Override Source # | |
Eq Override Source # | |
aplg ~ Text => HasField "contextName" Override aplg Source # | |
Defined in Unleash.Internal.JsonTypes | |
aplg ~ [Text] => HasField "values" Override aplg Source # | |
Defined in Unleash.Internal.JsonTypes | |
type Rep Override Source # | |
Defined in Unleash.Internal.JsonTypes type Rep Override = D1 ('MetaData "Override" "Unleash.Internal.JsonTypes" "unleash-client-haskell-core-0.8.9-inplace" 'False) (C1 ('MetaCons "Override" 'PrefixI 'True) (S1 ('MetaSel ('Just "contextName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]))) |
Client context.
Context | |
|
Instances
emptyContext :: Context Source #
An initial client context.
Segment.
Segment | |
|
Instances
FromJSON Segment Source # | |
ToJSON Segment Source # | |
Defined in Unleash.Internal.JsonTypes | |
Generic Segment Source # | |
Show Segment Source # | |
Eq Segment Source # | |
aplg ~ [Constraint] => HasField "constraints" Segment aplg Source # | |
Defined in Unleash.Internal.JsonTypes | |
aplg ~ Int => HasField "id" Segment aplg Source # | |
Defined in Unleash.Internal.JsonTypes | |
type Rep Segment Source # | |
Defined in Unleash.Internal.JsonTypes type Rep Segment = D1 ('MetaData "Segment" "Unleash.Internal.JsonTypes" "unleash-client-haskell-core-0.8.9-inplace" 'False) (C1 ('MetaCons "Segment" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "constraints") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Constraint]))) |
data VariantResponse Source #
Variant response.
Instances
emptyVariantResponse :: VariantResponse Source #
The default (disabled) variant response.
data MetricsPayload Source #
Metrics payload.
Instances
data FullMetricsPayload Source #
Full metrics payload.
Instances
data FullMetricsBucket Source #
Full metrics bucket.
Instances
data YesAndNoes Source #
Helper data structure for metrics.
Instances
data FullRegisterPayload Source #
Full client registration payload.
FullRegisterPayload | |
|
Instances
data RegisterPayload Source #
Client registration payload.
RegisterPayload | |
|