Class: DatadogAPIClient::V1::UsageLogsHour

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

Overview

Hour usage for logs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UsageLogsHour

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/datadog_api_client/v1/models/usage_logs_hour.rb', line 105

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#billable_ingested_bytesObject

Contains the number of billable log bytes ingested.



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

def billable_ingested_bytes
  @billable_ingested_bytes
end

#hourObject

The hour for the usage.



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

def hour
  @hour
end

#indexed_events_countObject

Contains the number of log events indexed.



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

def indexed_events_count
  @indexed_events_count
end

#ingested_events_bytesObject

Contains the number of log bytes ingested.



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

def ingested_events_bytes
  @ingested_events_bytes
end

#logs_live_indexed_countObject

Contains the number of live log events indexed (data available as of December 1, 2020).



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

def logs_live_indexed_count
  @logs_live_indexed_count
end

#logs_live_ingested_bytesObject

Contains the number of live log bytes ingested (data available as of December 1, 2020).



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

def logs_live_ingested_bytes
  @logs_live_ingested_bytes
end

#logs_rehydrated_indexed_countObject

Contains the number of rehydrated log events indexed (data available as of December 1, 2020).



45
46
47
# File 'lib/datadog_api_client/v1/models/usage_logs_hour.rb', line 45

def logs_rehydrated_indexed_count
  @logs_rehydrated_indexed_count
end

#logs_rehydrated_ingested_bytesObject

Contains the number of rehydrated log bytes ingested (data available as of December 1, 2020).



48
49
50
# File 'lib/datadog_api_client/v1/models/usage_logs_hour.rb', line 48

def logs_rehydrated_ingested_bytes
  @logs_rehydrated_ingested_bytes
end

#org_nameObject

The organization name.



51
52
53
# File 'lib/datadog_api_client/v1/models/usage_logs_hour.rb', line 51

def org_name
  @org_name
end

#public_idObject

The organization public ID.



54
55
56
# File 'lib/datadog_api_client/v1/models/usage_logs_hour.rb', line 54

def public_id
  @public_id
end