MetricProperty Struct
A calculation made by contrasting a measure and a dimension from your source data.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lookoutmetrics as lookoutmetrics } from 'aws-cdk-lib';
const metricProperty: lookoutmetrics.CfnAnomalyDetector.MetricProperty = {
aggregationFunction: 'aggregationFunction',
metricName: 'metricName',
// the properties below are optional
namespace: 'namespace',
};
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_lookoutmetrics as lookoutmetrics
metric_property = lookoutmetrics.CfnAnomalyDetector.MetricProperty(
aggregation_function="aggregationFunction",
metric_name="metricName",
# the properties below are optional
namespace="namespace"
)
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.lookoutmetrics.*;
MetricProperty metricProperty = MetricProperty.builder()
.aggregationFunction("aggregationFunction")
.metricName("metricName")
// the properties below are optional
.namespace("namespace")
.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.LookoutMetrics;
var metricProperty = new MetricProperty {
AggregationFunction = "aggregationFunction",
MetricName = "metricName",
// the properties below are optional
Namespace = "namespace"
};
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"
metricProperty := &MetricProperty{
AggregationFunction: jsii.String("aggregationFunction"),
MetricName: jsii.String("metricName"),
// the properties below are optional
Namespace: jsii.String("namespace"),
}
Properties
aggregationFunctionstringaggregation_functionstraggregationFunctionStringAggregationFunctionstringAggregationFunction*stringrequired#The function with which the metric is calculated.
The name of the metric.
namespaceoptionalstringnamespaceoptionalstrnamespaceoptionalStringNamespaceoptionalstringNamespaceoptional*string#The namespace for the metric.