public static interface AnomalySubscription.Builder extends SdkPojo, CopyableBuilder<AnomalySubscription.Builder,AnomalySubscription>
| Modifier and Type | Method and Description |
|---|---|
AnomalySubscription.Builder |
accountId(String accountId)
Your unique account identifier.
|
AnomalySubscription.Builder |
frequency(AnomalySubscriptionFrequency frequency)
The frequency that anomaly reports are sent over email.
|
AnomalySubscription.Builder |
frequency(String frequency)
The frequency that anomaly reports are sent over email.
|
AnomalySubscription.Builder |
monitorArnList(Collection<String> monitorArnList)
A list of cost anomaly monitors.
|
AnomalySubscription.Builder |
monitorArnList(String... monitorArnList)
A list of cost anomaly monitors.
|
AnomalySubscription.Builder |
subscribers(Collection<Subscriber> subscribers)
A list of subscribers to notify.
|
AnomalySubscription.Builder |
subscribers(Consumer<Subscriber.Builder>... subscribers)
A list of subscribers to notify.
|
AnomalySubscription.Builder |
subscribers(Subscriber... subscribers)
A list of subscribers to notify.
|
AnomalySubscription.Builder |
subscriptionArn(String subscriptionArn)
The
AnomalySubscription Amazon Resource Name (ARN). |
AnomalySubscription.Builder |
subscriptionName(String subscriptionName)
The name for the subscription.
|
AnomalySubscription.Builder |
threshold(Double threshold)
Deprecated.
Threshold has been deprecated in favor of ThresholdExpression
|
default AnomalySubscription.Builder |
thresholdExpression(Consumer<Expression.Builder> thresholdExpression)
An Expression
object used to specify the anomalies that you want to generate alerts for.
|
AnomalySubscription.Builder |
thresholdExpression(Expression thresholdExpression)
An Expression
object used to specify the anomalies that you want to generate alerts for.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAnomalySubscription.Builder subscriptionArn(String subscriptionArn)
The AnomalySubscription Amazon Resource Name (ARN).
subscriptionArn - The AnomalySubscription Amazon Resource Name (ARN).AnomalySubscription.Builder accountId(String accountId)
Your unique account identifier.
accountId - Your unique account identifier.AnomalySubscription.Builder monitorArnList(Collection<String> monitorArnList)
A list of cost anomaly monitors.
monitorArnList - A list of cost anomaly monitors.AnomalySubscription.Builder monitorArnList(String... monitorArnList)
A list of cost anomaly monitors.
monitorArnList - A list of cost anomaly monitors.AnomalySubscription.Builder subscribers(Collection<Subscriber> subscribers)
A list of subscribers to notify.
subscribers - A list of subscribers to notify.AnomalySubscription.Builder subscribers(Subscriber... subscribers)
A list of subscribers to notify.
subscribers - A list of subscribers to notify.AnomalySubscription.Builder subscribers(Consumer<Subscriber.Builder>... subscribers)
A list of subscribers to notify.
This is a convenience method that creates an instance of theSubscriber.Builder avoiding the need to create one
manually via Subscriber.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #subscribers(List.
subscribers - a consumer that will call methods on
Subscriber.Builder#subscribers(java.util.Collection) @Deprecated AnomalySubscription.Builder threshold(Double threshold)
(deprecated)
The dollar value that triggers a notification if the threshold is exceeded.
This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.
One of Threshold or ThresholdExpression is required for this resource.
threshold - (deprecated)
The dollar value that triggers a notification if the threshold is exceeded.
This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.
One of Threshold or ThresholdExpression is required for this resource.
AnomalySubscription.Builder frequency(String frequency)
The frequency that anomaly reports are sent over email.
frequency - The frequency that anomaly reports are sent over email.AnomalySubscriptionFrequency,
AnomalySubscriptionFrequencyAnomalySubscription.Builder frequency(AnomalySubscriptionFrequency frequency)
The frequency that anomaly reports are sent over email.
frequency - The frequency that anomaly reports are sent over email.AnomalySubscriptionFrequency,
AnomalySubscriptionFrequencyAnomalySubscription.Builder subscriptionName(String subscriptionName)
The name for the subscription.
subscriptionName - The name for the subscription.AnomalySubscription.Builder thresholdExpression(Expression thresholdExpression)
An Expression
object used to specify the anomalies that you want to generate alerts for. This supports dimensions and
nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and
ANOMALY_TOTAL_IMPACT_PERCENTAGE. The supported nested expression types are AND and
OR. The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers
between 0 and 10,000,000,000.
One of Threshold or ThresholdExpression is required for this resource.
The following are examples of valid ThresholdExpressions:
Absolute threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
Percentage threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
AND two thresholds together:
{ "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
OR two thresholds together:
{ "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
thresholdExpression - An
Expression object used to specify the anomalies that you want to generate alerts for. This
supports dimensions and nested expressions. The supported dimensions are
ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE. The
supported nested expression types are AND and OR. The match option
GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and
10,000,000,000.
One of Threshold or ThresholdExpression is required for this resource.
The following are examples of valid ThresholdExpressions:
Absolute threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
Percentage threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
AND two thresholds together:
{ "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
OR two thresholds together:
{ "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
default AnomalySubscription.Builder thresholdExpression(Consumer<Expression.Builder> thresholdExpression)
An Expression
object used to specify the anomalies that you want to generate alerts for. This supports dimensions and
nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and
ANOMALY_TOTAL_IMPACT_PERCENTAGE. The supported nested expression types are AND and
OR. The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers
between 0 and 10,000,000,000.
One of Threshold or ThresholdExpression is required for this resource.
The following are examples of valid ThresholdExpressions:
Absolute threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
Percentage threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
AND two thresholds together:
{ "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
OR two thresholds together:
{ "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
Expression.Builder avoiding the need to
create one manually via Expression.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to thresholdExpression(Expression).
thresholdExpression - a consumer that will call methods on Expression.BuilderthresholdExpression(Expression)Copyright © 2023. All rights reserved.