Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AnomalySubscription

import type { AnomalySubscription } from "https://aws-api.deno.dev/v0.4/services/costexplorer.ts?docs=full";

The association between a monitor, threshold, and list of subscribers used to deliver notifications about anomalies detected by a monitor that exceeds a threshold. The content consists of the detailed metadata and the current status of the AnomalySubscription object.

interface AnomalySubscription {
AccountId?: string | null;
MonitorArnList: string[];
Subscribers: Subscriber[];
SubscriptionArn?: string | null;
SubscriptionName: string;
Threshold?: number | null;
ThresholdExpression?: Expression | null;
}

§Properties

§
AccountId?: string | null
[src]

Your unique account identifier.

§

The frequency that anomaly reports are sent over email.

§
MonitorArnList: string[]
[src]

A list of cost anomaly monitors.

§
Subscribers: Subscriber[]
[src]

A list of subscribers to notify.

§
SubscriptionArn?: string | null
[src]

The AnomalySubscription Amazon Resource Name (ARN).

§
SubscriptionName: string
[src]

The name for the subscription.

§
Threshold?: number | null
[src]

(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.

§
ThresholdExpression?: Expression | null
[src]

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" ] } } ] }