Skip to content

Commit ccd05c2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9fb897ad of spec repo
1 parent 206cab2 commit ccd05c2

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-01-03 13:40:24.146387",
8-
"spec_repo_commit": "89fd9735"
7+
"regenerated": "2023-01-03 15:11:11.851207",
8+
"spec_repo_commit": "9fb897ad"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-01-03 13:40:24.161938",
13-
"spec_repo_commit": "89fd9735"
12+
"regenerated": "2023-01-03 15:11:11.862265",
13+
"spec_repo_commit": "9fb897ad"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,11 +1434,6 @@ components:
14341434
by:
14351435
additionalProperties:
14361436
description: The values for each group-by.
1437-
oneOf:
1438-
- type: string
1439-
- format: double
1440-
type: number
1441-
- type: boolean
14421437
description: The key-value pairs for each group-by.
14431438
example:
14441439
'@ci.provider.name': gitlab
@@ -1691,11 +1686,6 @@ components:
16911686
by:
16921687
additionalProperties:
16931688
description: The values for each group-by.
1694-
oneOf:
1695-
- type: string
1696-
- format: double
1697-
type: number
1698-
- type: boolean
16991689
description: The key-value pairs for each group-by.
17001690
example:
17011691
'@test.service': web-ui-tests
@@ -4680,7 +4670,6 @@ components:
46804670
by:
46814671
additionalProperties:
46824672
description: The values for each group by
4683-
type: string
46844673
description: The key, value pairs for each group by
46854674
example:
46864675
'@state': success

api/datadogV2/model_logs_aggregate_bucket.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// LogsAggregateBucket A bucket values
1212
type LogsAggregateBucket struct {
1313
// The key, value pairs for each group by
14-
By map[string]string `json:"by,omitempty"`
14+
By map[string]interface{} `json:"by,omitempty"`
1515
// A map of the metric name -> value for regular compute or list of values for a timeseries
1616
Computes map[string]LogsAggregateBucketValue `json:"computes,omitempty"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -37,17 +37,17 @@ func NewLogsAggregateBucketWithDefaults() *LogsAggregateBucket {
3737
}
3838

3939
// GetBy returns the By field value if set, zero value otherwise.
40-
func (o *LogsAggregateBucket) GetBy() map[string]string {
40+
func (o *LogsAggregateBucket) GetBy() map[string]interface{} {
4141
if o == nil || o.By == nil {
42-
var ret map[string]string
42+
var ret map[string]interface{}
4343
return ret
4444
}
4545
return o.By
4646
}
4747

4848
// GetByOk returns a tuple with the By field value if set, nil otherwise
4949
// and a boolean to check if the value has been set.
50-
func (o *LogsAggregateBucket) GetByOk() (*map[string]string, bool) {
50+
func (o *LogsAggregateBucket) GetByOk() (*map[string]interface{}, bool) {
5151
if o == nil || o.By == nil {
5252
return nil, false
5353
}
@@ -59,8 +59,8 @@ func (o *LogsAggregateBucket) HasBy() bool {
5959
return o != nil && o.By != nil
6060
}
6161

62-
// SetBy gets a reference to the given map[string]string and assigns it to the By field.
63-
func (o *LogsAggregateBucket) SetBy(v map[string]string) {
62+
// SetBy gets a reference to the given map[string]interface{} and assigns it to the By field.
63+
func (o *LogsAggregateBucket) SetBy(v map[string]interface{}) {
6464
o.By = v
6565
}
6666

@@ -115,7 +115,7 @@ func (o LogsAggregateBucket) MarshalJSON() ([]byte, error) {
115115
func (o *LogsAggregateBucket) UnmarshalJSON(bytes []byte) (err error) {
116116
raw := map[string]interface{}{}
117117
all := struct {
118-
By map[string]string `json:"by,omitempty"`
118+
By map[string]interface{} `json:"by,omitempty"`
119119
Computes map[string]LogsAggregateBucketValue `json:"computes,omitempty"`
120120
}{}
121121
err = json.Unmarshal(bytes, &all)

0 commit comments

Comments
 (0)