class
Amazonite::CloudWatch::Metric
- Amazonite::CloudWatch::Metric
- Reference
- Object
Overview
Represents a specific metric.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch/metric.crConstructors
- .new(pull : JSON::PullParser)
- .new(namespace : String | Nil = nil, metric_name : String | Nil = nil, dimensions : Array(Dimension) | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#dimensions : Array(Dimension) | Nil
The dimensions for the metric.
-
#dimensions=(dimensions : Array(Dimension) | Nil)
The dimensions for the metric.
-
#hash(hasher)
See
Object#hash(hasher) -
#metric_name : String | Nil
The name of the metric.
-
#metric_name=(metric_name : String | Nil)
The name of the metric.
-
#namespace : String | Nil
The namespace of the metric.
-
#namespace=(namespace : String | Nil)
The namespace of the metric.
- #validate! : Nil
Constructor Detail
def self.new(namespace : String | Nil = nil, metric_name : String | Nil = nil, dimensions : Array(Dimension) | Nil = nil)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.