Class CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty
This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ApplicationSignals.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty : CfnServiceLevelObjectivePropsMixin.IMonitoredRequestCountMetricProperty
Syntax (vb)
Public Class CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty Implements CfnServiceLevelObjectivePropsMixin.IMonitoredRequestCountMetricProperty
Remarks
This value observed for the metric defined in TotalRequestCountMetric is divided by the number found for MonitoredRequestCountMetric to determine the percentage of successful requests that this SLO tracks.
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 monitoredRequestCountMetricProperty = new MonitoredRequestCountMetricProperty {
BadCountMetric = 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
} },
GoodCountMetric = 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
} }
};
Synopsis
Constructors
| MonitoredRequestCountMetricProperty() | This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO. |
Properties
| BadCountMetric | If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure. |
| GoodCountMetric | If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure. |
Constructors
MonitoredRequestCountMetricProperty()
This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO.
public MonitoredRequestCountMetricProperty()
Remarks
This value observed for the metric defined in TotalRequestCountMetric is divided by the number found for MonitoredRequestCountMetric to determine the percentage of successful requests that this SLO tracks.
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 monitoredRequestCountMetricProperty = new MonitoredRequestCountMetricProperty {
BadCountMetric = 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
} },
GoodCountMetric = 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
} }
};
Properties
BadCountMetric
If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.
public object? BadCountMetric { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnServiceLevelObjectivePropsMixin.IMetricDataQueryProperty)[]
GoodCountMetric
If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.
public object? GoodCountMetric { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnServiceLevelObjectivePropsMixin.IMetricDataQueryProperty)[]