Class: DatadogAPIClient::V1::UsageCustomReportsAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb

Overview

The response containing attributes for custom reports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UsageCustomReportsAttributes

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 80

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsAttributes` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageCustomReportsAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'computed_on')
    self.computed_on = attributes[:'computed_on']
  end

  if attributes.key?(:'end_date')
    self.end_date = attributes[:'end_date']
  end

  if attributes.key?(:'size')
    self.size = attributes[:'size']
  end

  if attributes.key?(:'start_date')
    self.start_date = attributes[:'start_date']
  end

  if attributes.key?(:'tags')
    if (value = attributes[:'tags']).is_a?(Array)
      self.tags = value
    end
  end
end

Instance Attribute Details

#computed_onObject

The date the specified custom report was computed.



27
28
29
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 27

def computed_on
  @computed_on
end

#end_dateObject

The ending date of custom report.



30
31
32
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 30

def end_date
  @end_date
end

#sizeObject

size



33
34
35
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 33

def size
  @size
end

#start_dateObject

The starting date of custom report.



36
37
38
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 36

def start_date
  @start_date
end

#tagsObject

A list of tags to apply to custom reports.



39
40
41
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 39

def tags
  @tags
end