interface IMetric
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.IMetric |
Java | software.amazon.awscdk.services.cloudwatch.IMetric |
Python | aws_cdk.aws_cloudwatch.IMetric |
TypeScript (source) | @aws-cdk/aws-cloudwatch » IMetric |
Implemented by
Math, Metric
Obtainable from
Table.metricSystemErrorsForOperations()
Interface for metrics.
Properties
| Name | Type | Description |
|---|---|---|
| warnings? | string[] | Any warnings related to this metric. |
warnings?
Type:
string[]
(optional, default: None)
Any warnings related to this metric.
Should be attached to the consuming construct.
Methods
| Name | Description |
|---|---|
| to | Turn this metric object into an alarm configuration. |
| to | Turn this metric object into a graph configuration. |
| to | Inspect the details of the metric object. |
toAlarmConfig()
public toAlarmConfig(): MetricAlarmConfig
⚠️ Deprecated: Use toMetricConfig() instead.
Returns
Turn this metric object into an alarm configuration.
toGraphConfig()
public toGraphConfig(): MetricGraphConfig
⚠️ Deprecated: Use toMetricConfig() instead.
Returns
Turn this metric object into a graph configuration.
toMetricConfig()
public toMetricConfig(): MetricConfig
Returns
Inspect the details of the metric object.

.NET
Java
Python
TypeScript (