Class: DatadogAPIClient::V1::UsageSpecifiedCustomReportsAttributes

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

Overview

The response containing attributes for specified custom reports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UsageSpecifiedCustomReportsAttributes

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



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
115
116
117
118
119
120
121
122
123
# File 'lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb', line 85

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsAttributes` 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::UsageSpecifiedCustomReportsAttributes`. 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?(:'location')
    self.location = attributes[:'location']
  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_specified_custom_reports_attributes.rb', line 27

def computed_on
  @computed_on
end

#end_dateObject

The ending date of specified custom report.



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

def end_date
  @end_date
end

#locationObject

A downloadable file for the specified custom reporting file.



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

def location
  @location
end

#sizeObject

size



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

def size
  @size
end

#start_dateObject

The starting date of specified custom report.



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

def start_date
  @start_date
end

#tagsObject

A list of tags to apply to specified custom reports.



42
43
44
# File 'lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb', line 42

def tags
  @tags
end