View a markdown version of this page

GetMetricStream - Amazon CloudWatch

GetMetricStream

Returns information about the metric stream that you specify.

Request Syntax

{ "Name": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Name

The name of the metric stream to retrieve information about.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: Yes

Response Syntax

{ "Arn": "string", "CreationDate": number, "ExcludeFilters": [ { "MetricNames": [ "string" ], "Namespace": "string" } ], "FirehoseArn": "string", "IncludeFilters": [ { "MetricNames": [ "string" ], "Namespace": "string" } ], "IncludeLinkedAccountsMetrics": boolean, "LastUpdateDate": number, "Name": "string", "OutputFormat": "string", "RoleArn": "string", "State": "string", "StatisticsConfigurations": [ { "AdditionalStatistics": [ "string" ], "IncludeMetrics": [ { "MetricName": "string", "Namespace": "string" } ] } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Arn

The ARN of the metric stream.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

CreationDate

The date that the metric stream was created.

Type: Timestamp

ExcludeFilters

If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.

Type: Array of MetricStreamFilter objects

FirehoseArn

The ARN of the Amazon Kinesis Data Firehose delivery stream that is used by this metric stream.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

IncludeFilters

If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.

Type: Array of MetricStreamFilter objects

IncludeLinkedAccountsMetrics

If this is true and this metric stream is in a monitoring account, then the stream includes metrics from source accounts that the monitoring account is linked to.

Type: Boolean

LastUpdateDate

The date of the most recent update to the metric stream's configuration.

Type: Timestamp

Name

The name of the metric stream.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

OutputFormat

The output format for the stream. Valid values are json, opentelemetry1.0, and opentelemetry0.7. For more information about metric stream output formats, see Metric streams output formats.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Valid Values: json | opentelemetry0.7 | opentelemetry1.0

RoleArn

The ARN of the IAM role that is used by this metric stream.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

State

The state of the metric stream. The possible values are running and stopped.

Type: String

StatisticsConfigurations

Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream. For more information about the additional statistics, see CloudWatch statistics definitions.

Type: Array of MetricStreamStatisticsConfiguration objects

Errors

For information about the errors that are common to all actions, see Common Error Types.

InternalServiceError

Request processing has failed due to some unknown error, exception, or failure.

Message

HTTP Status Code: 500

InvalidParameterCombination

Parameters were used together that cannot be used together.

message

HTTP Status Code: 400

InvalidParameterValue

The value of an input parameter is bad or out-of-range.

message

HTTP Status Code: 400

MissingParameter

An input parameter that is required is missing.

message

HTTP Status Code: 400

ResourceNotFoundException

The named resource does not exist.

HTTP Status Code: 404

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: