Interface CfnServiceLevelObjectivePropsMixin.ISliMetricProperty
Use this structure to specify the metric to be used for the SLO.
Namespace: Amazon.CDK.Mixins.Preview.AWS.ApplicationSignals.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnServiceLevelObjectivePropsMixin.ISliMetricProperty
Syntax (vb)
Public Interface CfnServiceLevelObjectivePropsMixin.ISliMetricProperty
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.Mixins.Preview.AWS.ApplicationSignals.Mixins;
var sliMetricProperty = new SliMetricProperty {
DependencyConfig = new DependencyConfigProperty {
DependencyKeyAttributes = new Dictionary<string, string> {
{ "dependencyKeyAttributesKey", "dependencyKeyAttributes" }
},
DependencyOperationName = "dependencyOperationName"
},
KeyAttributes = new Dictionary<string, string> {
{ "keyAttributesKey", "keyAttributes" }
},
MetricDataQueries = new [] { new MetricDataQueryProperty {
AccountId = "accountId",
Expression = "expression",
Id = "id",
MetricStat = new MetricStatProperty {
Metric = new MetricProperty {
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
},
Period = 123,
Stat = "stat",
Unit = "unit"
},
ReturnData = false
} },
MetricType = "metricType",
OperationName = "operationName",
PeriodSeconds = 123,
Statistic = "statistic"
};
Synopsis
Properties
| DependencyConfig | Identifies the dependency using the |
| KeyAttributes | If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to. |
| MetricDataQueries | If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, use this structure to specify that metric or expression. |
| MetricType | If the SLO is to monitor either the |
| OperationName | If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation. |
| PeriodSeconds | The number of seconds to use as the period for SLO evaluation. |
| Statistic | The statistic to use for comparison to the threshold. |
Properties
DependencyConfig
Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName .
object? DependencyConfig { get; }
Property Value
Remarks
Type union: either IResolvable or CfnServiceLevelObjectivePropsMixin.IDependencyConfigProperty
KeyAttributes
If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to.
object? KeyAttributes { get; }
Property Value
Remarks
To do so, you must specify at least the Type , Name , and Environment attributes.
This is a string-to-string map. It can include the following fields.
Type union: either Dictionary<string, string> or IResolvable
MetricDataQueries
If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, use this structure to specify that metric or expression.
object? MetricDataQueries { get; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnServiceLevelObjectivePropsMixin.IMetricDataQueryProperty)[]
MetricType
If the SLO is to monitor either the LATENCY or AVAILABILITY metric that Application Signals collects, use this field to specify which of those metrics is used.
string? MetricType { get; }
Property Value
Remarks
OperationName
If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation.
string? OperationName { get; }
Property Value
Remarks
PeriodSeconds
The number of seconds to use as the period for SLO evaluation.
double? PeriodSeconds { get; }
Property Value
Remarks
Your application's performance is compared to the SLI during each period. For each period, the application is determined to have either achieved or not achieved the necessary performance.
Statistic
The statistic to use for comparison to the threshold.
string? Statistic { get; }
Property Value
Remarks
It can be any CloudWatch statistic or extended statistic. For more information about statistics, see CloudWatch statistics definitions .