CloudWatchMetricBuilder
@cosmos-building-blocks/service › Globals › CloudWatchMetricBuilder
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:
Name | Type |
---|---|
name | string |
Returns: CloudWatchMetricBuilder
Methods
addMeasurement
▸ addMeasurement(...measurement
: string[]): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:194
Parameters:
Name | Type |
---|---|
...measurement | string[] |
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:
Name | Type |
---|---|
key | string |
value | any |
Returns: this
addResource
▸ addResource(...resource
: string[]): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:199
Parameters:
Name | Type |
---|---|
...resource | string[] |
Returns: this
setInterval
▸ setInterval(interval
: number): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:189
Parameters:
Name | Type |
---|---|
interval | number |
Returns: this
setNamespace
▸ setNamespace(namespace
: string): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:184
Parameters:
Name | Type |
---|---|
namespace | string |
Returns: this
toMetric
▸ toMetric(): CloudWatchMetric
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:209
Returns: CloudWatchMetric