Show / Hide Table of Contents

Class CfnServiceLevelObjective.SliMetricProperty

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

Inheritance
object
CfnServiceLevelObjective.SliMetricProperty
Implements
CfnServiceLevelObjective.ISliMetricProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.ApplicationSignals
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnServiceLevelObjective.SliMetricProperty : CfnServiceLevelObjective.ISliMetricProperty
Syntax (vb)
Public Class CfnServiceLevelObjective.SliMetricProperty Implements CfnServiceLevelObjective.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.AWS.ApplicationSignals;

             var sliMetricProperty = new SliMetricProperty {
                 CompositeSliConfig = new CompositeSliConfigProperty {
                     SelectionConfig = new SelectionConfigProperty {
                         Type = "type",

                         // the properties below are optional
                         Pattern = "pattern"
                     },

                     // the properties below are optional
                     CompositeSliComponents = new [] { new CompositeSliComponentProperty {
                         OperationName = "operationName"
                     } }
                 },
                 DependencyConfig = new DependencyConfigProperty {
                     DependencyKeyAttributes = new Dictionary<string, string> {
                         { "dependencyKeyAttributesKey", "dependencyKeyAttributes" }
                     },
                     DependencyOperationName = "dependencyOperationName"
                 },
                 KeyAttributes = new Dictionary<string, string> {
                     { "keyAttributesKey", "keyAttributes" }
                 },
                 MetricDataQueries = new [] { new MetricDataQueryProperty {
                     Id = "id",

                     // the properties below are optional
                     AccountId = "accountId",
                     Expression = "expression",
                     MetricStat = new MetricStatProperty {
                         Metric = new MetricProperty {
                             Dimensions = new [] { new DimensionProperty {
                                 Name = "name",
                                 Value = "value"
                             } },
                             MetricName = "metricName",
                             Namespace = "namespace"
                         },
                         Period = 123,
                         Stat = "stat",

                         // the properties below are optional
                         Unit = "unit"
                     },
                     ReturnData = false
                 } },
                 MetricName = "metricName",
                 MetricSource = new MetricSourceProperty {
                     MetricSourceKeyAttributes = new Dictionary<string, string> {
                         { "metricSourceKeyAttributesKey", "metricSourceKeyAttributes" }
                     },

                     // the properties below are optional
                     MetricSourceAttributes = new Dictionary<string, string> {
                         { "metricSourceAttributesKey", "metricSourceAttributes" }
                     }
                 },
                 MetricType = "metricType",
                 OperationName = "operationName",
                 PeriodSeconds = 123,
                 Statistic = "statistic"
             };

Synopsis

Constructors

SliMetricProperty()

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

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.

Constructors

SliMetricProperty()

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

public SliMetricProperty()
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.AWS.ApplicationSignals;

             var sliMetricProperty = new SliMetricProperty {
                 CompositeSliConfig = new CompositeSliConfigProperty {
                     SelectionConfig = new SelectionConfigProperty {
                         Type = "type",

                         // the properties below are optional
                         Pattern = "pattern"
                     },

                     // the properties below are optional
                     CompositeSliComponents = new [] { new CompositeSliComponentProperty {
                         OperationName = "operationName"
                     } }
                 },
                 DependencyConfig = new DependencyConfigProperty {
                     DependencyKeyAttributes = new Dictionary<string, string> {
                         { "dependencyKeyAttributesKey", "dependencyKeyAttributes" }
                     },
                     DependencyOperationName = "dependencyOperationName"
                 },
                 KeyAttributes = new Dictionary<string, string> {
                     { "keyAttributesKey", "keyAttributes" }
                 },
                 MetricDataQueries = new [] { new MetricDataQueryProperty {
                     Id = "id",

                     // the properties below are optional
                     AccountId = "accountId",
                     Expression = "expression",
                     MetricStat = new MetricStatProperty {
                         Metric = new MetricProperty {
                             Dimensions = new [] { new DimensionProperty {
                                 Name = "name",
                                 Value = "value"
                             } },
                             MetricName = "metricName",
                             Namespace = "namespace"
                         },
                         Period = 123,
                         Stat = "stat",

                         // the properties below are optional
                         Unit = "unit"
                     },
                     ReturnData = false
                 } },
                 MetricName = "metricName",
                 MetricSource = new MetricSourceProperty {
                     MetricSourceKeyAttributes = new Dictionary<string, string> {
                         { "metricSourceKeyAttributesKey", "metricSourceKeyAttributes" }
                     },

                     // the properties below are optional
                     MetricSourceAttributes = new Dictionary<string, string> {
                         { "metricSourceAttributesKey", "metricSourceAttributes" }
                     }
                 },
                 MetricType = "metricType",
                 OperationName = "operationName",
                 PeriodSeconds = 123,
                 Statistic = "statistic"
             };

Properties

CompositeSliConfig

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

public object? CompositeSliConfig { get; set; }
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 CfnServiceLevelObjective.ICompositeSliConfigProperty

DependencyConfig

Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName .

public object? DependencyConfig { get; set; }
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 CfnServiceLevelObjective.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.

public object? KeyAttributes { get; set; }
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.

    public object? MetricDataQueries { get; set; }
    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 CfnServiceLevelObjective.IMetricDataQueryProperty)[]

    MetricName

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

    public string? MetricName { get; set; }
    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.

    public object? MetricSource { get; set; }
    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 CfnServiceLevelObjective.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.

    public string? MetricType { get; set; }
    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.

    public string? OperationName { get; set; }
    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.

    public double? PeriodSeconds { get; set; }
    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.

    public string? Statistic { get; set; }
    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

    Implements

    CfnServiceLevelObjective.ISliMetricProperty
    Back to top Generated by DocFX