class
Amazonite::CloudWatch::MetricStreamFilter
- Amazonite::CloudWatch::MetricStreamFilter
- Reference
- Object
Overview
This structure contains a metric namespace and optionally, a list of metric names, to either include in a metric stream or exclude from a metric stream.
A metric stream's filters can include up to 1000 total names. This limit applies to the sum of namespace names and metric names in the filters. For example, this could include 10 metric namespace filters with 99 metrics each, or 20 namespace filters with 49 metrics specified in each filter.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch/metric_stream_filter.crConstructors
- .new(pull : JSON::PullParser)
- .new(namespace : String | Nil = nil, metric_names : Array(String) | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#metric_names : Array(String) | Nil
The names of the metrics to either include or exclude from the metric stream.
-
#metric_names=(metric_names : Array(String) | Nil)
The names of the metrics to either include or exclude from the metric stream.
-
#namespace : String | Nil
The name of the metric namespace for this filter.
-
#namespace=(namespace : String | Nil)
The name of the metric namespace for this filter.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
The name of the metric namespace for this filter.
The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.
The name of the metric namespace for this filter.
The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.