Skip to content

Commit

Permalink
Regenerate client from commit 2ca4f3d of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 27, 2022
1 parent 633e1db commit 888a57b
Show file tree
Hide file tree
Showing 23 changed files with 329 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-27 15:08:07.166102",
"spec_repo_commit": "caffcc6"
"regenerated": "2022-01-27 20:05:13.343463",
"spec_repo_commit": "2ca4f3d"
},
"v2": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-27 15:08:07.185036",
"spec_repo_commit": "caffcc6"
"regenerated": "2022-01-27 20:05:13.362899",
"spec_repo_commit": "2ca4f3d"
}
}
}
42 changes: 42 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12428,6 +12428,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageAnalyzedLogsResponse:
description: A response containing the number of analyzed logs for each hour
Expand Down Expand Up @@ -13347,6 +13353,12 @@ components:
of the given hour's month until the given hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIncidentManagementResponse:
description: Response containing the incident management usage for each hour
Expand All @@ -13369,6 +13381,12 @@ components:
description: Contains the number of spans indexed.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIndexedSpansResponse:
description: A response containing indexed spans usage.
Expand All @@ -13392,6 +13410,12 @@ components:
hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIngestedSpansResponse:
description: Response containing the ingested spans usage for each hour for
Expand All @@ -13414,6 +13438,12 @@ components:
description: The total number of IoT devices during a given hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIoTResponse:
description: Response containing the IoT usage for each hour for a given organization.
Expand Down Expand Up @@ -13641,6 +13671,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageProfilingResponse:
description: Response containing the number of profiled hosts for each hour
Expand Down Expand Up @@ -13782,6 +13818,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
snmp_devices:
description: Contains the number of SNMP devices.
format: int64
Expand Down
6 changes: 5 additions & 1 deletion docs/v1/UsageAnalyzedLogsHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ----------------- | ----------- | ------------------------------------- | ---------- |
| **analyzed_logs** | **Integer** | Contains the number of analyzed logs. | [optional] |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -14,6 +16,8 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::UsageAnalyzedLogsHour.new(
analyzed_logs: null,
hour: null
hour: null,
org_name: null,
public_id: null
)
```
6 changes: 5 additions & 1 deletion docs/v1/UsageIncidentManagementHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ------------------------ | ----------- | ----------------------------------------------------------------------------------------------------------------- | ---------- |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **monthly_active_users** | **Integer** | Contains the total number monthly active users from the start of the given hour's month until the given hour. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -14,6 +16,8 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::UsageIncidentManagementHour.new(
hour: null,
monthly_active_users: null
monthly_active_users: null,
org_name: null,
public_id: null
)
```
6 changes: 5 additions & 1 deletion docs/v1/UsageIndexedSpansHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ------------------------ | ----------- | ------------------------------------- | ---------- |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **indexed_events_count** | **Integer** | Contains the number of spans indexed. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -14,6 +16,8 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::UsageIndexedSpansHour.new(
hour: null,
indexed_events_count: null
indexed_events_count: null,
org_name: null,
public_id: null
)
```
6 changes: 5 additions & 1 deletion docs/v1/UsageIngestedSpansHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ------------------------- | ----------- | ---------------------------------------------------------------- | ---------- |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **ingested_events_bytes** | **Integer** | Contains the total number of bytes ingested during a given hour. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -14,6 +16,8 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::UsageIngestedSpansHour.new(
hour: null,
ingested_events_bytes: null
ingested_events_bytes: null,
org_name: null,
public_id: null
)
```
6 changes: 5 additions & 1 deletion docs/v1/UsageIoTHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| -------------------- | ----------- | ---------------------------------------------------- | ---------- |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **iot_device_count** | **Integer** | The total number of IoT devices during a given hour. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -14,6 +16,8 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::UsageIoTHour.new(
hour: null,
iot_device_count: null
iot_device_count: null,
org_name: null,
public_id: null
)
```
6 changes: 5 additions & 1 deletion docs/v1/UsageProfilingHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
| **avg_container_agent_count** | **Integer** | Get average number of container agents for that hour. | [optional] |
| **host_count** | **Integer** | Contains the total number of profiled hosts reporting during a given hour. | [optional] |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -16,6 +18,8 @@ require 'datadog_api_client/v1'
instance = DatadogAPIClient::V1::UsageProfilingHour.new(
avg_container_agent_count: null,
host_count: null,
hour: null
hour: null,
org_name: null,
public_id: null
)
```
4 changes: 4 additions & 0 deletions docs/v1/UsageSNMPHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
| Name | Type | Description | Notes |
| ---------------- | ----------- | ------------------------------------ | ---------- |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |
| **snmp_devices** | **Integer** | Contains the number of SNMP devices. | [optional] |

## Example
Expand All @@ -14,6 +16,8 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::UsageSNMPHour.new(
hour: null,
org_name: null,
public_id: null,
snmp_devices: null
)
```
28 changes: 24 additions & 4 deletions lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,19 @@ class UsageAnalyzedLogsHour
# The hour for the usage.
attr_accessor :hour

# The organization name.
attr_accessor :org_name

# The organization public ID.
attr_accessor :public_id

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'analyzed_logs' => :'analyzed_logs',
:'hour' => :'hour'
:'hour' => :'hour',
:'org_name' => :'org_name',
:'public_id' => :'public_id'
}
end

Expand All @@ -45,7 +53,9 @@ def self.acceptable_attributes
def self.openapi_types
{
:'analyzed_logs' => :'Integer',
:'hour' => :'Time'
:'hour' => :'Time',
:'org_name' => :'String',
:'public_id' => :'String'
}
end

Expand Down Expand Up @@ -77,6 +87,14 @@ def initialize(attributes = {})
if attributes.key?(:'hour')
self.hour = attributes[:'hour']
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

# Show invalid properties with the reasons. Usually used together with valid?
Expand All @@ -98,7 +116,9 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
analyzed_logs == o.analyzed_logs &&
hour == o.hour
hour == o.hour &&
org_name == o.org_name &&
public_id == o.public_id
end

# @see the `==` method
Expand All @@ -110,7 +130,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[analyzed_logs, hour].hash
[analyzed_logs, hour, org_name, public_id].hash
end

# Builds the object from hash
Expand Down
28 changes: 24 additions & 4 deletions lib/datadog_api_client/v1/models/usage_incident_management_hour.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,19 @@ class UsageIncidentManagementHour
# Contains the total number monthly active users from the start of the given hour's month until the given hour.
attr_accessor :monthly_active_users

# The organization name.
attr_accessor :org_name

# The organization public ID.
attr_accessor :public_id

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'hour' => :'hour',
:'monthly_active_users' => :'monthly_active_users'
:'monthly_active_users' => :'monthly_active_users',
:'org_name' => :'org_name',
:'public_id' => :'public_id'
}
end

Expand All @@ -45,7 +53,9 @@ def self.acceptable_attributes
def self.openapi_types
{
:'hour' => :'Time',
:'monthly_active_users' => :'Integer'
:'monthly_active_users' => :'Integer',
:'org_name' => :'String',
:'public_id' => :'String'
}
end

Expand Down Expand Up @@ -77,6 +87,14 @@ def initialize(attributes = {})
if attributes.key?(:'monthly_active_users')
self.monthly_active_users = attributes[:'monthly_active_users']
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

# Show invalid properties with the reasons. Usually used together with valid?
Expand All @@ -98,7 +116,9 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
hour == o.hour &&
monthly_active_users == o.monthly_active_users
monthly_active_users == o.monthly_active_users &&
org_name == o.org_name &&
public_id == o.public_id
end

# @see the `==` method
Expand All @@ -110,7 +130,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[hour, monthly_active_users].hash
[hour, monthly_active_users, org_name, public_id].hash
end

# Builds the object from hash
Expand Down
Loading

0 comments on commit 888a57b

Please sign in to comment.