interface MonitoredRequestCountMetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApplicationSignals.Mixins.CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapplicationsignals/mixins#CfnServiceLevelObjectivePropsMixin_MonitoredRequestCountMetricProperty |
Java | software.amazon.awscdk.mixins.preview.services.applicationsignals.mixins.CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty |
Python | aws_cdk.mixins_preview.aws_applicationsignals.mixins.CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty |
TypeScript | @aws-cdk/mixins-preview » aws_applicationsignals » mixins » CfnServiceLevelObjectivePropsMixin » MonitoredRequestCountMetricProperty |
This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO.
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as applicationsignals_mixins } from '@aws-cdk/mixins-preview/aws-applicationsignals';
const monitoredRequestCountMetricProperty: applicationsignals_mixins.CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty = {
badCountMetric: [{
accountId: 'accountId',
expression: 'expression',
id: 'id',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
unit: 'unit',
},
returnData: false,
}],
goodCountMetric: [{
accountId: 'accountId',
expression: 'expression',
id: 'id',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
unit: 'unit',
},
returnData: false,
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| bad | IResolvable | (IResolvable | Metric)[] | 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. |
| good | IResolvable | (IResolvable | Metric)[] | 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. |
badCountMetric?
Type:
IResolvable | (IResolvable | Metric)[]
(optional)
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?
Type:
IResolvable | (IResolvable | Metric)[]
(optional)
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.

.NET
Go
Java
Python
TypeScript