Show / Hide Table of Contents

Interface CfnServiceLevelObjectivePropsMixin.ISliMetricProperty

Use this structure to specify the metric to be used for the SLO.

Namespace: Amazon.CDK.CfnPropertyMixins.AWS.ApplicationSignals
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface CfnServiceLevelObjectivePropsMixin.ISliMetricProperty
Syntax (vb)
Public Interface CfnServiceLevelObjectivePropsMixin.ISliMetricProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html

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.CfnPropertyMixins.AWS.ApplicationSignals;

             var sliMetricProperty = new SliMetricProperty {
                 CompositeSliConfig = new CompositeSliConfigProperty {
                     CompositeSliComponents = new [] { new CompositeSliComponentProperty {
                         OperationName = "operationName"
                     } },
                     SelectionConfig = new SelectionConfigProperty {
                         Pattern = "pattern",
                         Type = "type"
                     }
                 },
                 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
                 } },
                 MetricName = "metricName",
                 MetricSource = new MetricSourceProperty {
                     MetricSourceAttributes = new Dictionary<string, string> {
                         { "metricSourceAttributesKey", "metricSourceAttributes" }
                     },
                     MetricSourceKeyAttributes = new Dictionary<string, string> {
                         { "metricSourceKeyAttributesKey", "metricSourceKeyAttributes" }
                     }
                 },
                 MetricType = "metricType",
                 OperationName = "operationName",
                 PeriodSeconds = 123,
                 Statistic = "statistic"
             };

Synopsis

Properties

CompositeSliConfig

Use this structure to specify the metric to be used for the SLO.

DependencyConfig

Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName .

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.

MetricName

The name of the metric for non-Application Signals services.

MetricSource

Configuration for identifying the source of metrics for non-Application Signals services.

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.

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

CompositeSliConfig

Use this structure to specify the metric to be used for the SLO.

object? CompositeSliConfig { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-compositesliconfig

Type union: either IResolvable or CfnServiceLevelObjectivePropsMixin.ICompositeSliConfigProperty

DependencyConfig

Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName .

object? DependencyConfig { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-dependencyconfig

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

object

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.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-keyattributes

    Type union: either IResolvable or Dictionary<string, string>

    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

    object

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-metricdataqueries

    Type union: either IResolvable or (either IResolvable or CfnServiceLevelObjectivePropsMixin.IMetricDataQueryProperty)[]

    MetricName

    The name of the metric for non-Application Signals services.

    string? MetricName { get; }
    Property Value

    string

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-metricname

    MetricSource

    Configuration for identifying the source of metrics for non-Application Signals services.

    object? MetricSource { get; }
    Property Value

    object

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-metricsource

    Type union: either IResolvable or CfnServiceLevelObjectivePropsMixin.IMetricSourceProperty

    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

    string

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-metrictype

    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

    string

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-operationname

    PeriodSeconds

    The number of seconds to use as the period for SLO evaluation.

    double? PeriodSeconds { get; }
    Property Value

    double?

    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.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-periodseconds

    Statistic

    The statistic to use for comparison to the threshold.

    string? Statistic { get; }
    Property Value

    string

    Remarks

    It can be any CloudWatch statistic or extended statistic. For more information about statistics, see CloudWatch statistics definitions .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-statistic

    Back to top Generated by DocFX