Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing properties query_index and tag_set to MetricsQueryMetadata #385

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4.1.dev8",
"regenerated": "2021-06-15 15:14:44.179604",
"spec_repo_commit": "67742c8"
"regenerated": "2021-06-17 07:15:17.983778",
"spec_repo_commit": "ccc57f4"
},
"v2": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-06-15 15:15:33.273265",
"spec_repo_commit": "67742c8"
"regenerated": "2021-06-17 07:16:11.303802",
"spec_repo_commit": "ccc57f4"
}
}
}
12 changes: 12 additions & 0 deletions data/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4727,6 +4727,11 @@ components:
$ref: '#/components/schemas/Point'
readOnly: true
type: array
query_index:
description: The index of the series' query within the request.
format: int64
readOnly: true
type: integer
scope:
description: Metric scope, comma separated list of tags.
example: host:foo,env:test
Expand All @@ -4737,6 +4742,13 @@ components:
format: int64
readOnly: true
type: integer
tag_set:
description: Unique tags identifying this series.
items:
description: Unique tags identifying this series.
type: string
readOnly: true
type: array
unit:
description: 'Detailed information about the metric unit.

Expand Down
4 changes: 4 additions & 0 deletions docs/v1/MetricsQueryMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
| **length** | **Integer** | Number of data samples. | [optional][readonly] |
| **metric** | **String** | Metric name. | [optional][readonly] |
| **pointlist** | **Array<Array>** | List of points of the time series. | [optional][readonly] |
| **query_index** | **Integer** | The index of the series' query within the request. | [optional][readonly] |
| **scope** | **String** | Metric scope, comma separated list of tags. | [optional][readonly] |
| **start** | **Integer** | Start of the time window, milliseconds since Unix epoch. | [optional][readonly] |
| **tag_set** | **Array<String>** | Unique tags identifying this series. | [optional][readonly] |
| **unit** | [**Array<MetricsQueryUnit>**](MetricsQueryUnit.md) | Detailed information about the metric unit. First element describes the \"primary unit\" (for example, `bytes` in `bytes per second`), second describes the \"per unit\" (for example, `second` in `bytes per second`). | [optional][readonly] |

## Example
Expand All @@ -30,8 +32,10 @@ instance = DatadogAPIClient::V1::MetricsQueryMetadata.new(
length: null,
metric: system.cpu.idle,
pointlist: null,
query_index: null,
scope: host:foo,env:test,
start: null,
tag_set: null,
unit: null
)
```
Expand Down
24 changes: 23 additions & 1 deletion lib/datadog_api_client/v1/models/metrics_query_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,18 @@ class MetricsQueryMetadata
# List of points of the time series.
attr_accessor :pointlist

# The index of the series' query within the request.
attr_accessor :query_index

# Metric scope, comma separated list of tags.
attr_accessor :scope

# Start of the time window, milliseconds since Unix epoch.
attr_accessor :start

# Unique tags identifying this series.
attr_accessor :tag_set

# Detailed information about the metric unit. First element describes the \"primary unit\" (for example, `bytes` in `bytes per second`), second describes the \"per unit\" (for example, `second` in `bytes per second`).
attr_accessor :unit

Expand All @@ -63,8 +69,10 @@ def self.attribute_map
:'length' => :'length',
:'metric' => :'metric',
:'pointlist' => :'pointlist',
:'query_index' => :'query_index',
:'scope' => :'scope',
:'start' => :'start',
:'tag_set' => :'tag_set',
:'unit' => :'unit'
}
end
Expand All @@ -85,8 +93,10 @@ def self.openapi_types
:'length' => :'Integer',
:'metric' => :'String',
:'pointlist' => :'Array<Array>',
:'query_index' => :'Integer',
:'scope' => :'String',
:'start' => :'Integer',
:'tag_set' => :'Array<String>',
:'unit' => :'Array<MetricsQueryUnit>'
}
end
Expand Down Expand Up @@ -146,6 +156,10 @@ def initialize(attributes = {})
end
end

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

if attributes.key?(:'scope')
self.scope = attributes[:'scope']
end
Expand All @@ -154,6 +168,12 @@ def initialize(attributes = {})
self.start = attributes[:'start']
end

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

if attributes.key?(:'unit')
if (value = attributes[:'unit']).is_a?(Array)
self.unit = value
Expand Down Expand Up @@ -211,8 +231,10 @@ def ==(o)
length == o.length &&
metric == o.metric &&
pointlist == o.pointlist &&
query_index == o.query_index &&
scope == o.scope &&
start == o.start &&
tag_set == o.tag_set &&
unit == o.unit
end

Expand All @@ -225,7 +247,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[aggr, display_name, _end, expression, interval, length, metric, pointlist, scope, start, unit].hash
[aggr, display_name, _end, expression, interval, length, metric, pointlist, query_index, scope, start, tag_set, unit].hash
end

# Builds the object from hash
Expand Down