@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.389Z") @Stability(value=Stable) public class CfnAnomalyDetector extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
CfnAnomalyDetector cfnAnomalyDetector = CfnAnomalyDetector.Builder.create(this, "MyCfnAnomalyDetector")
.configuration(ConfigurationProperty.builder()
.excludedTimeRanges(List.of(RangeProperty.builder()
.endTime("endTime")
.startTime("startTime")
.build()))
.metricTimeZone("metricTimeZone")
.build())
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricMathAnomalyDetector(MetricMathAnomalyDetectorProperty.builder()
.metricDataQueries(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.label("label")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.metricName("metricName")
.namespace("namespace")
// the properties below are optional
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.period(123)
.returnData(false)
.build()))
.build())
.metricName("metricName")
.namespace("namespace")
.singleMetricAnomalyDetector(SingleMetricAnomalyDetectorProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.stat("stat")
.build())
.stat("stat")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAnomalyDetector.Builder
A fluent builder for
CfnAnomalyDetector. |
static interface |
CfnAnomalyDetector.ConfigurationProperty
Example:
|
static interface |
CfnAnomalyDetector.DimensionProperty
Example:
|
static interface |
CfnAnomalyDetector.MetricDataQueryProperty
Example:
|
static interface |
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty
Example:
|
static interface |
CfnAnomalyDetector.MetricProperty
Example:
|
static interface |
CfnAnomalyDetector.MetricStatProperty
Example:
|
static interface |
CfnAnomalyDetector.RangeProperty
Example:
|
static interface |
CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAnomalyDetector(software.constructs.Construct scope,
String id)
Create a new `AWS::CloudWatch::AnomalyDetector`.
|
|
CfnAnomalyDetector(software.constructs.Construct scope,
String id,
CfnAnomalyDetectorProps props)
Create a new `AWS::CloudWatch::AnomalyDetector`.
|
protected |
CfnAnomalyDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAnomalyDetector(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
Object |
getConfiguration()
`AWS::CloudWatch::AnomalyDetector.Configuration`.
|
Object |
getDimensions()
`AWS::CloudWatch::AnomalyDetector.Dimensions`.
|
Object |
getMetricMathAnomalyDetector()
`AWS::CloudWatch::AnomalyDetector.MetricMathAnomalyDetector`.
|
String |
getMetricName()
`AWS::CloudWatch::AnomalyDetector.MetricName`.
|
String |
getNamespace()
`AWS::CloudWatch::AnomalyDetector.Namespace`.
|
Object |
getSingleMetricAnomalyDetector()
`AWS::CloudWatch::AnomalyDetector.SingleMetricAnomalyDetector`.
|
String |
getStat()
`AWS::CloudWatch::AnomalyDetector.Stat`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setConfiguration(CfnAnomalyDetector.ConfigurationProperty value)
`AWS::CloudWatch::AnomalyDetector.Configuration`.
|
void |
setConfiguration(IResolvable value)
`AWS::CloudWatch::AnomalyDetector.Configuration`.
|
void |
setDimensions(IResolvable value)
`AWS::CloudWatch::AnomalyDetector.Dimensions`.
|
void |
setDimensions(List<Object> value)
`AWS::CloudWatch::AnomalyDetector.Dimensions`.
|
void |
setMetricMathAnomalyDetector(CfnAnomalyDetector.MetricMathAnomalyDetectorProperty value)
`AWS::CloudWatch::AnomalyDetector.MetricMathAnomalyDetector`.
|
void |
setMetricMathAnomalyDetector(IResolvable value)
`AWS::CloudWatch::AnomalyDetector.MetricMathAnomalyDetector`.
|
void |
setMetricName(String value)
`AWS::CloudWatch::AnomalyDetector.MetricName`.
|
void |
setNamespace(String value)
`AWS::CloudWatch::AnomalyDetector.Namespace`.
|
void |
setSingleMetricAnomalyDetector(CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty value)
`AWS::CloudWatch::AnomalyDetector.SingleMetricAnomalyDetector`.
|
void |
setSingleMetricAnomalyDetector(IResolvable value)
`AWS::CloudWatch::AnomalyDetector.SingleMetricAnomalyDetector`.
|
void |
setStat(String value)
`AWS::CloudWatch::AnomalyDetector.Stat`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAnomalyDetector(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAnomalyDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAnomalyDetector(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnAnomalyDetectorProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnAnomalyDetector(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getConfiguration()
@Stability(value=Stable)
public void setConfiguration(@Nullable
CfnAnomalyDetector.ConfigurationProperty value)
@Stability(value=Stable)
public void setConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getDimensions()
@Stability(value=Stable)
public void setDimensions(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setDimensions(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getMetricMathAnomalyDetector()
@Stability(value=Stable)
public void setMetricMathAnomalyDetector(@Nullable
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty value)
@Stability(value=Stable)
public void setMetricMathAnomalyDetector(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getMetricName()
@Stability(value=Stable)
public void setMetricName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getNamespace()
@Stability(value=Stable)
public void setNamespace(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getSingleMetricAnomalyDetector()
@Stability(value=Stable)
public void setSingleMetricAnomalyDetector(@Nullable
CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty value)
@Stability(value=Stable)
public void setSingleMetricAnomalyDetector(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getStat()
@Stability(value=Stable)
public void setStat(@Nullable
String value)
Copyright © 2021. All rights reserved.