Class: Aws::CloudWatch::Types::ListMetricsInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatch::Types::ListMetricsInput
- Defined in:
- gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb
Overview
When making an API call, you may pass ListMetricsInput data as a hash:
{
namespace: "Namespace",
metric_name: "MetricName",
dimensions: [
{
name: "DimensionName", # required
value: "DimensionValue",
},
],
next_token: "NextToken",
recently_active: "PT3H", # accepts PT3H
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#dimensions ⇒ Array<Types::DimensionFilter>
The dimensions to filter against.
-
#metric_name ⇒ String
The name of the metric to filter against.
-
#namespace ⇒ String
The metric namespace to filter against.
-
#next_token ⇒ String
The token returned by a previous call to indicate that there is more data available.
-
#recently_active ⇒ String
To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value of
PT3H
.
Instance Attribute Details
#dimensions ⇒ Array<Types::DimensionFilter>
The dimensions to filter against. Only the dimensions that match exactly will be returned.
2371 2372 2373 2374 2375 2376 2377 2378 2379 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 2371 class ListMetricsInput < Struct.new( :namespace, :metric_name, :dimensions, :next_token, :recently_active) SENSITIVE = [] include Aws::Structure end |
#metric_name ⇒ String
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
2371 2372 2373 2374 2375 2376 2377 2378 2379 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 2371 class ListMetricsInput < Struct.new( :namespace, :metric_name, :dimensions, :next_token, :recently_active) SENSITIVE = [] include Aws::Structure end |
#namespace ⇒ String
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
2371 2372 2373 2374 2375 2376 2377 2378 2379 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 2371 class ListMetricsInput < Struct.new( :namespace, :metric_name, :dimensions, :next_token, :recently_active) SENSITIVE = [] include Aws::Structure end |
#next_token ⇒ String
The token returned by a previous call to indicate that there is more data available.
2371 2372 2373 2374 2375 2376 2377 2378 2379 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 2371 class ListMetricsInput < Struct.new( :namespace, :metric_name, :dimensions, :next_token, :recently_active) SENSITIVE = [] include Aws::Structure end |
#recently_active ⇒ String
To filter the results to show only metrics that have had data points
published in the past three hours, specify this parameter with a
value of PT3H
. This is the only valid value for this parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
2371 2372 2373 2374 2375 2376 2377 2378 2379 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 2371 class ListMetricsInput < Struct.new( :namespace, :metric_name, :dimensions, :next_token, :recently_active) SENSITIVE = [] include Aws::Structure end |