cardano-topology-8.4.0: A cardano topology generator
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Benchmarking.Topology.Types

Synopsis

Documentation

data Topology Source #

A topology as it's used to define benchmarking profiles.

Constructors

Topology 

Fields

Instances

Instances details
FromJSON Topology Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

parseJSON :: Value -> Parser Topology

parseJSONList :: Value -> Parser [Topology]

omittedField :: Maybe Topology

ToJSON Topology Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

toJSON :: Topology -> Value

toEncoding :: Topology -> Encoding

toJSONList :: [Topology] -> Value

toEncodingList :: [Topology] -> Encoding

omitField :: Topology -> Bool

Generic Topology Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Associated Types

type Rep Topology :: Type -> Type Source #

Show Topology Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Eq Topology Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

type Rep Topology Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

type Rep Topology = D1 ('MetaData "Topology" "Cardano.Benchmarking.Topology.Types" "cardano-topology-8.4.0-inplace" 'False) (C1 ('MetaCons "Topology" 'PrefixI 'True) (S1 ('MetaSel ('Just "coreNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Node]) :*: S1 ('MetaSel ('Just "relayNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Node])))

data Node Source #

A node as it's used to define benchmarking profiles. These nodes don't have remote addresses allocated, are referenced by name.

Constructors

Node 

Fields

Instances

Instances details
FromJSON Node Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

parseJSON :: Value -> Parser Node

parseJSONList :: Value -> Parser [Node]

omittedField :: Maybe Node

ToJSON Node Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

toJSON :: Node -> Value

toEncoding :: Node -> Encoding

toJSONList :: [Node] -> Value

toEncodingList :: [Node] -> Encoding

omitField :: Node -> Bool

Generic Node Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Associated Types

type Rep Node :: Type -> Type Source #

Methods

from :: Node -> Rep Node x Source #

to :: Rep Node x -> Node Source #

Show Node Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Eq Node Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

(==) :: Node -> Node -> Bool Source #

(/=) :: Node -> Node -> Bool Source #

type Rep Node Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

data Location Source #

Location is either "loopback" used for local runs or an AWS Region name used for cloud runs.

Constructors

Loopback 
AWS AWSRegion 

Instances

Instances details
FromJSON Location Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

parseJSON :: Value -> Parser Location

parseJSONList :: Value -> Parser [Location]

omittedField :: Maybe Location

ToJSON Location Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

toJSON :: Location -> Value

toEncoding :: Location -> Encoding

toJSONList :: [Location] -> Value

toEncodingList :: [Location] -> Encoding

omitField :: Location -> Bool

Generic Location Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Associated Types

type Rep Location :: Type -> Type Source #

Show Location Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Eq Location Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

type Rep Location Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

type Rep Location = D1 ('MetaData "Location" "Cardano.Benchmarking.Topology.Types" "cardano-topology-8.4.0-inplace" 'False) (C1 ('MetaCons "Loopback" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AWS" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AWSRegion)))

data AWSRegion Source #

The AWS Regions we support (No Availability Zone, the "c" in "us-east-2c").

Instances

Instances details
FromJSON AWSRegion Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

parseJSON :: Value -> Parser AWSRegion

parseJSONList :: Value -> Parser [AWSRegion]

omittedField :: Maybe AWSRegion

ToJSON AWSRegion Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Methods

toJSON :: AWSRegion -> Value

toEncoding :: AWSRegion -> Encoding

toJSONList :: [AWSRegion] -> Value

toEncodingList :: [AWSRegion] -> Encoding

omitField :: AWSRegion -> Bool

Generic AWSRegion Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Associated Types

type Rep AWSRegion :: Type -> Type Source #

Show AWSRegion Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

Eq AWSRegion Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

type Rep AWSRegion Source # 
Instance details

Defined in Cardano.Benchmarking.Topology.Types

type Rep AWSRegion = D1 ('MetaData "AWSRegion" "Cardano.Benchmarking.Topology.Types" "cardano-topology-8.4.0-inplace" 'False) ((C1 ('MetaCons "AP_SOUTHEAST_2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EU_CENTRAL_1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "US_EAST_1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "US_EAST_2" 'PrefixI 'False) (U1 :: Type -> Type)))