CloudWatchMetricBuilder

@cosmos-building-blocks/serviceGlobalsCloudWatchMetricBuilder

Builder for a metric for Cloud Watch Agent

Hierarchy

  • CloudWatchMetricBuilder

Index

Constructors

Methods

Constructors

constructor

+ new CloudWatchMetricBuilder(name: string): CloudWatchMetricBuilder

Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:173

Parameters:

NameType
namestring

Returns: CloudWatchMetricBuilder

Methods

addMeasurement

addMeasurement(...measurement: string[]): this

Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:194

Parameters:

NameType
...measurementstring[]

Returns: this


addProperty

addProperty(key: string, value: any): this

Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:204

Parameters:

NameType
keystring
valueany

Returns: this


addResource

addResource(...resource: string[]): this

Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:199

Parameters:

NameType
...resourcestring[]

Returns: this


setInterval

setInterval(interval: number): this

Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:189

Parameters:

NameType
intervalnumber

Returns: this


setNamespace

setNamespace(namespace: string): this

Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:184

Parameters:

NameType
namespacestring

Returns: this


toMetric

toMetric(): CloudWatchMetric

Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:209

Returns: CloudWatchMetric