CloudWatchAgent
@cosmos-building-blocks/service › Globals › CloudWatchAgent
Add Cloud Watch Agent to compute host
Hierarchy
Construct
↳ CloudWatchAgent
Implements
- IConstruct
- IConstruct
Index
Constructors
Methods
Constructors
constructor
+ new CloudWatchAgent(scope: Construct, id: string, props: CloudWatchAgentProps): CloudWatchAgent
Overrides void
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:60
Parameters:
| Name | Type |
|---|---|
scope | Construct |
id | string |
props | CloudWatchAgentProps |
Returns: CloudWatchAgent
Methods
addCpuMetric
▸ addCpuMetric(): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:119
Returns: this
addDiskMetric
▸ addDiskMetric(): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:129
Returns: this
addMemoryMetric
▸ addMemoryMetric(): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:125
Returns: this
addMetric
▸ addMetric(...metrics: CloudWatchMetric[]): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:114
Parameters:
| Name | Type |
|---|---|
...metrics | CloudWatchMetric[] |
Returns: this
addNetworkMetric
▸ addNetworkMetric(): this
Defined in packages/@cosmos-building-blocks/service/src/ec2/ec2-cloud-watch-agent.ts:133
Returns: this