interface MonitoredRequestCountMetricProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.aws_applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationsignals#CfnServiceLevelObjective_MonitoredRequestCountMetricProperty |
Java | software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty |
Python | aws_cdk.aws_applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty |
TypeScript | aws-cdk-lib » aws_applicationsignals » CfnServiceLevelObjective » 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 { aws_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const monitoredRequestCountMetricProperty: applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty = {
badCountMetric: [{
id: 'id',
// the properties below are optional
accountId: 'accountId',
expression: 'expression',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
// the properties below are optional
unit: 'unit',
},
returnData: false,
}],
goodCountMetric: [{
id: 'id',
// the properties below are optional
accountId: 'accountId',
expression: 'expression',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
// the properties below are optional
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.