class Amazonite::CloudWatch::Metric

Overview

Represents a specific metric.

Included Modules

Defined in:

cloudwatch/metric.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(namespace : String | Nil = nil, metric_name : String | Nil = nil, dimensions : Array(Dimension) | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def dimensions : Array(Dimension) | Nil #

The dimensions for the metric.


[View source]
def dimensions=(dimensions : Array(Dimension) | Nil) #

The dimensions for the metric.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def metric_name : String | Nil #

The name of the metric. This is a required field.


[View source]
def metric_name=(metric_name : String | Nil) #

The name of the metric. This is a required field.


[View source]
def namespace : String | Nil #

The namespace of the metric.


[View source]
def namespace=(namespace : String | Nil) #

The namespace of the metric.


[View source]
def validate! : Nil #

[View source]