class Amazonite::CloudWatch::MessageData

Overview

A message returned by the GetMetricDataAPI, including a code and a description.

If a cross-Region GetMetricData operation fails with a code of Forbidden and a value of Authentication too complex to retrieve cross region data, you can correct the problem by running the GetMetricData operation in the same Region where the metric data is.

Included Modules

Defined in:

cloudwatch/message_data.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(code : String | Nil = nil, value : String | Nil = nil) #

[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 code : String | Nil #

The error code or status code associated with the message.


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

The error code or status code associated with the message.


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

See Object#hash(hasher)


def validate! : Nil #

[View source]
def value : String | Nil #

The message text.


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

The message text.


[View source]