RequestBasedSliProperty Struct
This structure contains information about the performance metric that a request-based SLO monitors.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 requestBasedSliProperty: applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty = {
requestBasedSliMetric: {
compositeSliConfig: {
selectionConfig: {
type: 'type',
// the properties below are optional
pattern: 'pattern',
},
// the properties below are optional
compositeSliComponents: [{
operationName: 'operationName',
}],
},
dependencyConfig: {
dependencyKeyAttributes: {
dependencyKeyAttributesKey: 'dependencyKeyAttributes',
},
dependencyOperationName: 'dependencyOperationName',
},
keyAttributes: {
keyAttributesKey: 'keyAttributes',
},
metricName: 'metricName',
metricSource: {
metricSourceKeyAttributes: {
metricSourceKeyAttributesKey: 'metricSourceKeyAttributes',
},
// the properties below are optional
metricSourceAttributes: {
metricSourceAttributesKey: 'metricSourceAttributes',
},
},
metricType: 'metricType',
monitoredRequestCountMetric: {
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,
}],
},
operationName: 'operationName',
totalRequestCountMetric: [{
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,
}],
},
// the properties below are optional
comparisonOperator: 'comparisonOperator',
metricThreshold: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationsignals as applicationsignals
request_based_sli_property = applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty(
request_based_sli_metric=applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty(
composite_sli_config=applicationsignals.CfnServiceLevelObjective.CompositeSliConfigProperty(
selection_config=applicationsignals.CfnServiceLevelObjective.SelectionConfigProperty(
type="type",
# the properties below are optional
pattern="pattern"
),
# the properties below are optional
composite_sli_components=[applicationsignals.CfnServiceLevelObjective.CompositeSliComponentProperty(
operation_name="operationName"
)]
),
dependency_config=applicationsignals.CfnServiceLevelObjective.DependencyConfigProperty(
dependency_key_attributes={
"dependency_key_attributes_key": "dependencyKeyAttributes"
},
dependency_operation_name="dependencyOperationName"
),
key_attributes={
"key_attributes_key": "keyAttributes"
},
metric_name="metricName",
metric_source=applicationsignals.CfnServiceLevelObjective.MetricSourceProperty(
metric_source_key_attributes={
"metric_source_key_attributes_key": "metricSourceKeyAttributes"
},
# the properties below are optional
metric_source_attributes={
"metric_source_attributes_key": "metricSourceAttributes"
}
),
metric_type="metricType",
monitored_request_count_metric=applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty(
bad_count_metric=[applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty(
id="id",
# the properties below are optional
account_id="accountId",
expression="expression",
metric_stat=applicationsignals.CfnServiceLevelObjective.MetricStatProperty(
metric=applicationsignals.CfnServiceLevelObjective.MetricProperty(
dimensions=[applicationsignals.CfnServiceLevelObjective.DimensionProperty(
name="name",
value="value"
)],
metric_name="metricName",
namespace="namespace"
),
period=123,
stat="stat",
# the properties below are optional
unit="unit"
),
return_data=False
)],
good_count_metric=[applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty(
id="id",
# the properties below are optional
account_id="accountId",
expression="expression",
metric_stat=applicationsignals.CfnServiceLevelObjective.MetricStatProperty(
metric=applicationsignals.CfnServiceLevelObjective.MetricProperty(
dimensions=[applicationsignals.CfnServiceLevelObjective.DimensionProperty(
name="name",
value="value"
)],
metric_name="metricName",
namespace="namespace"
),
period=123,
stat="stat",
# the properties below are optional
unit="unit"
),
return_data=False
)]
),
operation_name="operationName",
total_request_count_metric=[applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty(
id="id",
# the properties below are optional
account_id="accountId",
expression="expression",
metric_stat=applicationsignals.CfnServiceLevelObjective.MetricStatProperty(
metric=applicationsignals.CfnServiceLevelObjective.MetricProperty(
dimensions=[applicationsignals.CfnServiceLevelObjective.DimensionProperty(
name="name",
value="value"
)],
metric_name="metricName",
namespace="namespace"
),
period=123,
stat="stat",
# the properties below are optional
unit="unit"
),
return_data=False
)]
),
# the properties below are optional
comparison_operator="comparisonOperator",
metric_threshold=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationsignals.*;
RequestBasedSliProperty requestBasedSliProperty = RequestBasedSliProperty.builder()
.requestBasedSliMetric(RequestBasedSliMetricProperty.builder()
.compositeSliConfig(CompositeSliConfigProperty.builder()
.selectionConfig(SelectionConfigProperty.builder()
.type("type")
// the properties below are optional
.pattern("pattern")
.build())
// the properties below are optional
.compositeSliComponents(List.of(CompositeSliComponentProperty.builder()
.operationName("operationName")
.build()))
.build())
.dependencyConfig(DependencyConfigProperty.builder()
.dependencyKeyAttributes(Map.of(
"dependencyKeyAttributesKey", "dependencyKeyAttributes"))
.dependencyOperationName("dependencyOperationName")
.build())
.keyAttributes(Map.of(
"keyAttributesKey", "keyAttributes"))
.metricName("metricName")
.metricSource(MetricSourceProperty.builder()
.metricSourceKeyAttributes(Map.of(
"metricSourceKeyAttributesKey", "metricSourceKeyAttributes"))
// the properties below are optional
.metricSourceAttributes(Map.of(
"metricSourceAttributesKey", "metricSourceAttributes"))
.build())
.metricType("metricType")
.monitoredRequestCountMetric(MonitoredRequestCountMetricProperty.builder()
.badCountMetric(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.returnData(false)
.build()))
.goodCountMetric(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.returnData(false)
.build()))
.build())
.operationName("operationName")
.totalRequestCountMetric(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.returnData(false)
.build()))
.build())
// the properties below are optional
.comparisonOperator("comparisonOperator")
.metricThreshold(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 requestBasedSliProperty = new RequestBasedSliProperty {
RequestBasedSliMetric = new RequestBasedSliMetricProperty {
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" }
},
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",
MonitoredRequestCountMetric = new MonitoredRequestCountMetricProperty {
BadCountMetric = 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
} },
GoodCountMetric = 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
} }
},
OperationName = "operationName",
TotalRequestCountMetric = 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
} }
},
// the properties below are optional
ComparisonOperator = "comparisonOperator",
MetricThreshold = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
requestBasedSliProperty := &RequestBasedSliProperty{
RequestBasedSliMetric: &RequestBasedSliMetricProperty{
CompositeSliConfig: &CompositeSliConfigProperty{
SelectionConfig: &SelectionConfigProperty{
Type: jsii.String("type"),
// the properties below are optional
Pattern: jsii.String("pattern"),
},
// the properties below are optional
CompositeSliComponents: []interface{}{
&CompositeSliComponentProperty{
OperationName: jsii.String("operationName"),
},
},
},
DependencyConfig: &DependencyConfigProperty{
DependencyKeyAttributes: map[string]*string{
"dependencyKeyAttributesKey": jsii.String("dependencyKeyAttributes"),
},
DependencyOperationName: jsii.String("dependencyOperationName"),
},
KeyAttributes: map[string]*string{
"keyAttributesKey": jsii.String("keyAttributes"),
},
MetricName: jsii.String("metricName"),
MetricSource: &MetricSourceProperty{
MetricSourceKeyAttributes: map[string]*string{
"metricSourceKeyAttributesKey": jsii.String("metricSourceKeyAttributes"),
},
// the properties below are optional
MetricSourceAttributes: map[string]*string{
"metricSourceAttributesKey": jsii.String("metricSourceAttributes"),
},
},
MetricType: jsii.String("metricType"),
MonitoredRequestCountMetric: &MonitoredRequestCountMetricProperty{
BadCountMetric: []interface{}{
&MetricDataQueryProperty{
Id: jsii.String("id"),
// the properties below are optional
AccountId: jsii.String("accountId"),
Expression: jsii.String("expression"),
MetricStat: &MetricStatProperty{
Metric: &MetricProperty{
Dimensions: []interface{}{
&DimensionProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
MetricName: jsii.String("metricName"),
Namespace: jsii.String("namespace"),
},
Period: jsii.Number(123),
Stat: jsii.String("stat"),
// the properties below are optional
Unit: jsii.String("unit"),
},
ReturnData: jsii.Boolean(false),
},
},
GoodCountMetric: []interface{}{
&MetricDataQueryProperty{
Id: jsii.String("id"),
// the properties below are optional
AccountId: jsii.String("accountId"),
Expression: jsii.String("expression"),
MetricStat: &MetricStatProperty{
Metric: &MetricProperty{
Dimensions: []interface{}{
&DimensionProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
MetricName: jsii.String("metricName"),
Namespace: jsii.String("namespace"),
},
Period: jsii.Number(123),
Stat: jsii.String("stat"),
// the properties below are optional
Unit: jsii.String("unit"),
},
ReturnData: jsii.Boolean(false),
},
},
},
OperationName: jsii.String("operationName"),
TotalRequestCountMetric: []interface{}{
&MetricDataQueryProperty{
Id: jsii.String("id"),
// the properties below are optional
AccountId: jsii.String("accountId"),
Expression: jsii.String("expression"),
MetricStat: &MetricStatProperty{
Metric: &MetricProperty{
Dimensions: []interface{}{
&DimensionProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
MetricName: jsii.String("metricName"),
Namespace: jsii.String("namespace"),
},
Period: jsii.Number(123),
Stat: jsii.String("stat"),
// the properties below are optional
Unit: jsii.String("unit"),
},
ReturnData: jsii.Boolean(false),
},
},
},
// the properties below are optional
ComparisonOperator: jsii.String("comparisonOperator"),
MetricThreshold: jsii.Number(123),
}
Properties
comparisonOperatoroptionalstringcomparison_operatoroptionalstrcomparisonOperatoroptionalStringComparisonOperatoroptionalstringComparisonOperatoroptional*string #The arithmetic operation used when comparing the specified metric to the threshold.
metricThresholdoptionalnumbermetric_thresholdoptionalint | floatmetricThresholdoptionalNumberMetricThresholdoptionaldoubleMetricThresholdoptional*float64 #This value is the threshold that the observed metric values of the SLI metric are compared to.
requestBasedSliMetricIResolvable | CfnServiceLevelObjective.request_based_sli_metrictyping.Union[IResolvable, RequestBasedSliMetricProperty]requestBasedSliMetricIResolvableRequestBasedSliMetricIResolvableRequestBasedSliMetricinterface{} required #A structure that contains information about the metric that the SLO monitors.