Skip to content

Commit

Permalink
Regenerate client from commit ccc57f4 of spec repo (#979)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jun 17, 2021
1 parent e1eb335 commit 4cf85ef
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 31 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.4.1.dev8",
"regenerated": "2021-06-15 15:14:59.121472",
"spec_repo_commit": "67742c8"
"regenerated": "2021-06-17 07:15:34.245794",
"spec_repo_commit": "ccc57f4"
},
"v2": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-06-15 15:15:30.259602",
"spec_repo_commit": "67742c8"
"regenerated": "2021-06-17 07:16:06.508659",
"spec_repo_commit": "ccc57f4"
}
}
}
78 changes: 51 additions & 27 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15105,6 +15105,19 @@ components:
description: Object containing all metric names returned and their associated
metadata.
example:
expression: system.cpu.idle{host:foo,env:test}
pointlist:
- - 1575317847
- 0.5
- - 1575317847
- 0.5
length: 5
start: 2
query_index: 5
display_name: system.cpu.idle
tag_set:
- tag_set
- tag_set
unit:
- plural: minutes
name: minute
Expand All @@ -15116,20 +15129,11 @@ components:
short_name: min
family: time
scale_factor: 60.0
expression: system.cpu.idle{host:foo,env:test}
metric: system.cpu.idle
pointlist:
- - 1575317847
- 0.5
- - 1575317847
- 0.5
scope: host:foo,env:test
length: 5
start: 5
end: 6
interval: 1
aggr: avg
display_name: system.cpu.idle
properties:
aggr:
description: Aggregation type.
Expand Down Expand Up @@ -15172,6 +15176,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 @@ -15182,6 +15191,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 All @@ -15200,9 +15216,22 @@ components:
example:
res_type: time_series
from_date: 0
to_date: 2
to_date: 7
series:
- unit:
- expression: system.cpu.idle{host:foo,env:test}
pointlist:
- - 1575317847
- 0.5
- - 1575317847
- 0.5
length: 5
start: 2
query_index: 5
display_name: system.cpu.idle
tag_set:
- tag_set
- tag_set
unit:
- plural: minutes
name: minute
short_name: min
Expand All @@ -15213,21 +15242,25 @@ components:
short_name: min
family: time
scale_factor: 60.0
expression: system.cpu.idle{host:foo,env:test}
metric: system.cpu.idle
scope: host:foo,env:test
end: 6
interval: 1
aggr: avg
- expression: system.cpu.idle{host:foo,env:test}
pointlist:
- - 1575317847
- 0.5
- - 1575317847
- 0.5
scope: host:foo,env:test
length: 5
start: 5
end: 6
interval: 1
aggr: avg
start: 2
query_index: 5
display_name: system.cpu.idle
- unit:
tag_set:
- tag_set
- tag_set
unit:
- plural: minutes
name: minute
short_name: min
Expand All @@ -15238,20 +15271,11 @@ components:
short_name: min
family: time
scale_factor: 60.0
expression: system.cpu.idle{host:foo,env:test}
metric: system.cpu.idle
pointlist:
- - 1575317847
- 0.5
- - 1575317847
- 0.5
scope: host:foo,env:test
length: 5
start: 5
end: 6
interval: 1
aggr: avg
display_name: system.cpu.idle
query: query
group_by:
- group_by
Expand Down
52 changes: 52 additions & 0 deletions api/v1/datadog/docs/MetricsQueryMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ Name | Type | Description | Notes
**Length** | Pointer to **int64** | Number of data samples. | [optional] [readonly]
**Metric** | Pointer to **string** | Metric name. | [optional] [readonly]
**Pointlist** | Pointer to **[][]float64** | List of points of the time series. | [optional] [readonly]
**QueryIndex** | Pointer to **int64** | The index of the series&#39; query within the request. | [optional] [readonly]
**Scope** | Pointer to **string** | Metric scope, comma separated list of tags. | [optional] [readonly]
**Start** | Pointer to **int64** | Start of the time window, milliseconds since Unix epoch. | [optional] [readonly]
**TagSet** | Pointer to **[]string** | Unique tags identifying this series. | [optional] [readonly]
**Unit** | Pointer to [**[]MetricsQueryUnit**](MetricsQueryUnit.md) | Detailed information about the metric unit. First element describes the \&quot;primary unit\&quot; (for example, &#x60;bytes&#x60; in &#x60;bytes per second&#x60;), second describes the \&quot;per unit\&quot; (for example, &#x60;second&#x60; in &#x60;bytes per second&#x60;). | [optional] [readonly]

## Methods
Expand Down Expand Up @@ -235,6 +237,31 @@ SetPointlist sets Pointlist field to given value.

HasPointlist returns a boolean if a field has been set.

### GetQueryIndex

`func (o *MetricsQueryMetadata) GetQueryIndex() int64`

GetQueryIndex returns the QueryIndex field if non-nil, zero value otherwise.

### GetQueryIndexOk

`func (o *MetricsQueryMetadata) GetQueryIndexOk() (*int64, bool)`

GetQueryIndexOk returns a tuple with the QueryIndex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetQueryIndex

`func (o *MetricsQueryMetadata) SetQueryIndex(v int64)`

SetQueryIndex sets QueryIndex field to given value.

### HasQueryIndex

`func (o *MetricsQueryMetadata) HasQueryIndex() bool`

HasQueryIndex returns a boolean if a field has been set.

### GetScope

`func (o *MetricsQueryMetadata) GetScope() string`
Expand Down Expand Up @@ -285,6 +312,31 @@ SetStart sets Start field to given value.

HasStart returns a boolean if a field has been set.

### GetTagSet

`func (o *MetricsQueryMetadata) GetTagSet() []string`

GetTagSet returns the TagSet field if non-nil, zero value otherwise.

### GetTagSetOk

`func (o *MetricsQueryMetadata) GetTagSetOk() (*[]string, bool)`

GetTagSetOk returns a tuple with the TagSet field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetTagSet

`func (o *MetricsQueryMetadata) SetTagSet(v []string)`

SetTagSet sets TagSet field to given value.

### HasTagSet

`func (o *MetricsQueryMetadata) HasTagSet() bool`

HasTagSet returns a boolean if a field has been set.

### GetUnit

`func (o *MetricsQueryMetadata) GetUnit() []MetricsQueryUnit`
Expand Down
74 changes: 74 additions & 0 deletions api/v1/datadog/model_metrics_query_metadata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cf85ef

Please sign in to comment.