Show / Hide Table of Contents

Class CfnServiceLevelObjective.SliProperty

This structure specifies the information about the service and the performance metric that an SLO is to monitor.

Inheritance
object
CfnServiceLevelObjective.SliProperty
Implements
CfnServiceLevelObjective.ISliProperty
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.SliProperty : CfnServiceLevelObjective.ISliProperty
Syntax (vb)
Public Class CfnServiceLevelObjective.SliProperty Implements CfnServiceLevelObjective.ISliProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.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 sliProperty = new SliProperty {
                 ComparisonOperator = "comparisonOperator",
                 MetricThreshold = 123,
                 SliMetric = 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

SliProperty()

This structure specifies the information about the service and the performance metric that an SLO is to monitor.

Properties

ComparisonOperator

The arithmetic operation to use when comparing the specified metric to the threshold.

MetricThreshold

The value that the SLI metric is compared to.

SliMetric

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

Constructors

SliProperty()

This structure specifies the information about the service and the performance metric that an SLO is to monitor.

public SliProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.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 sliProperty = new SliProperty {
                 ComparisonOperator = "comparisonOperator",
                 MetricThreshold = 123,
                 SliMetric = 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

ComparisonOperator

The arithmetic operation to use when comparing the specified metric to the threshold.

public string ComparisonOperator { get; set; }
Property Value

string

Remarks

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

MetricThreshold

The value that the SLI metric is compared to.

public double MetricThreshold { get; set; }
Property Value

double

Remarks

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

SliMetric

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

public object SliMetric { get; set; }
Property Value

object

Remarks

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

Type union: either IResolvable or CfnServiceLevelObjective.ISliMetricProperty

Implements

CfnServiceLevelObjective.ISliProperty
Back to top Generated by DocFX