Class CfnServiceLevelObjective.MetricProperty
This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ApplicationSignals
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnServiceLevelObjective.MetricProperty : CfnServiceLevelObjective.IMetricProperty
Syntax (vb)
Public Class CfnServiceLevelObjective.MetricProperty Implements CfnServiceLevelObjective.IMetricProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationSignals;
var metricProperty = new MetricProperty {
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
};
Synopsis
Constructors
| MetricProperty() | This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions. |
Properties
| Dimensions | An array of one or more dimensions to use to define the metric that you want to use. |
| MetricName | The name of the metric to use. |
| Namespace | The namespace of the metric. |
Constructors
MetricProperty()
This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions.
public MetricProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationSignals;
var metricProperty = new MetricProperty {
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
};
Properties
Dimensions
An array of one or more dimensions to use to define the metric that you want to use.
public object? Dimensions { get; set; }
Property Value
Remarks
For more information, see Dimensions .
Type union: either IResolvable or (either IResolvable or CfnServiceLevelObjective.IDimensionProperty)[]
MetricName
The name of the metric to use.
public string? MetricName { get; set; }
Property Value
Remarks
Namespace
The namespace of the metric.
public string? Namespace { get; set; }