CloudWatchAgent

@cosmos-building-blocks/serviceGlobalsCloudWatchAgent

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:

NameType
scopeConstruct
idstring
propsCloudWatchAgentProps

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:

NameType
...metricsCloudWatchMetric[]

Returns: this


addNetworkMetric

addNetworkMetric(): this

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

Returns: this