@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
88 lines (87 loc) • 5.76 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
/**
* Represents a monitor, which defines the monitoring boundaries for measurements that Internet Monitor publishes information about for an application
*/
export declare function getMonitor(args: GetMonitorArgs, opts?: pulumi.InvokeOptions): Promise<GetMonitorResult>;
export interface GetMonitorArgs {
/**
* The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
*/
monitorName: string;
}
export interface GetMonitorResult {
/**
* The time when the monitor was created.
*/
readonly createdAt?: string;
/**
* A complex type with the configuration information that determines the threshold and other conditions for when Internet Monitor creates a health event for an overall performance or availability issue, across an application's geographies.
*
* Defines the percentages, for overall performance scores and availability scores for an application, that are the thresholds for when Internet Monitor creates a health event. You can override the defaults to set a custom threshold for overall performance or availability scores, or both.
*
* You can also set thresholds for local health scores,, where Internet Monitor creates a health event when scores cross a threshold for one or more city-networks, in addition to creating an event when an overall score crosses a threshold.
*
* If you don't set a health event threshold, the default value is 95%.
*
* For local thresholds, you also set a minimum percentage of overall traffic that is impacted by an issue before Internet Monitor creates an event. In addition, you can disable local thresholds, for performance scores, availability scores, or both.
*
* For more information, see [Change health event thresholds](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-IM-overview.html#IMUpdateThresholdFromOverview) in the Internet Monitor section of the *CloudWatch User Guide* .
*/
readonly healthEventsConfig?: outputs.internetmonitor.MonitorHealthEventsConfig;
/**
* Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket. Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
*/
readonly internetMeasurementsLogDelivery?: outputs.internetmonitor.MonitorInternetMeasurementsLogDelivery;
/**
* The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the network, such as an internet service provider, that clients access the resources through.
*
* For more information, see [Choosing a city-network maximum value](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html) in *Using Amazon CloudWatch Internet Monitor* .
*/
readonly maxCityNetworksToMonitor?: number;
/**
* The last time that the monitor was modified.
*/
readonly modifiedAt?: string;
/**
* The Amazon Resource Name (ARN) of the monitor.
*/
readonly monitorArn?: string;
/**
* The health of data processing for the monitor. For more information, see `ProcessingStatus` under [MonitorListMember](https://docs.aws.amazon.com/internet-monitor/latest/api/API_MonitorListMember.html) in the *Amazon CloudWatch Internet Monitor API Reference* .
*/
readonly processingStatus?: enums.internetmonitor.MonitorProcessingStatusCode;
/**
* Additional information about the health of the data processing for the monitor.
*/
readonly processingStatusInfo?: string;
/**
* The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs). Use this option to add or remove resources when making an update.
*
* > Be aware that if you include content in the `Resources` field when you update a monitor, the `ResourcesToAdd` and `ResourcesToRemove` fields must be empty.
*/
readonly resources?: string[];
/**
* The status of a monitor. The accepted values that you can specify for `Status` are `ACTIVE` and `INACTIVE` .
*/
readonly status?: enums.internetmonitor.MonitorConfigState;
/**
* The tags for a monitor, listed as a set of *key:value* pairs.
*/
readonly tags?: outputs.Tag[];
/**
* The percentage of the internet-facing traffic for your application that you want to monitor. You can also, optionally, set a limit for the number of city-networks (client locations and ASNs, typically internet service providers) that Internet Monitor will monitor traffic for. The city-networks maximum limit caps the number of city-networks that Internet Monitor monitors for your application, regardless of the percentage of traffic that you choose to monitor.
*/
readonly trafficPercentageToMonitor?: number;
}
/**
* Represents a monitor, which defines the monitoring boundaries for measurements that Internet Monitor publishes information about for an application
*/
export declare function getMonitorOutput(args: GetMonitorOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMonitorResult>;
export interface GetMonitorOutputArgs {
/**
* The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
*/
monitorName: pulumi.Input<string>;
}