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. |
AlarmConfig()
topublic toAlarmConfig(): MetricAlarmConfig
⚠️ Deprecated: Use toMetricConfig()
instead.
Returns
Turn this metric object into an alarm configuration.
GraphConfig()
topublic toGraphConfig(): MetricGraphConfig
⚠️ Deprecated: Use toMetricConfig()
instead.
Returns
Turn this metric object into a graph configuration.
MetricConfig()
topublic toMetricConfig(): MetricConfig
Returns
Inspect the details of the metric object.