Skip to content

Commit 802f3b0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix logs aggregate integer facets (#1285)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a767498 commit 802f3b0

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
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-05 14:33:34.976551",
8-
"spec_repo_commit": "024e9975"
7+
"regenerated": "2023-01-05 16:38:45.189125",
8+
"spec_repo_commit": "b786ccc6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-01-05 14:33:35.122587",
13-
"spec_repo_commit": "024e9975"
12+
"regenerated": "2023-01-05 16:38:45.203747",
13+
"spec_repo_commit": "b786ccc6"
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

src/datadog_api_client/v2/model/logs_aggregate_bucket.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Dict, Union, TYPE_CHECKING
6+
from typing import Any, Dict, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
12+
datetime,
13+
none_type,
1114
unset,
1215
UnsetType,
1316
)
@@ -24,7 +27,21 @@ def openapi_types(_):
2427
from datadog_api_client.v2.model.logs_aggregate_bucket_value import LogsAggregateBucketValue
2528

2629
return {
27-
"by": ({str: (str,)},),
30+
"by": (
31+
{
32+
str: (
33+
bool,
34+
date,
35+
datetime,
36+
dict,
37+
float,
38+
int,
39+
list,
40+
str,
41+
none_type,
42+
)
43+
},
44+
),
2845
"computes": ({str: (LogsAggregateBucketValue,)},),
2946
}
3047

@@ -35,7 +52,7 @@ def openapi_types(_):
3552

3653
def __init__(
3754
self_,
38-
by: Union[Dict[str, str], UnsetType] = unset,
55+
by: Union[Dict[str, Any], UnsetType] = unset,
3956
computes: Union[
4057
Dict[str, Union[LogsAggregateBucketValue, str, float, LogsAggregateBucketValueTimeseries]], UnsetType
4158
] = unset,
@@ -45,7 +62,7 @@ def __init__(
4562
A bucket values
4663
4764
:param by: The key, value pairs for each group by
48-
:type by: {str: (str,)}, optional
65+
:type by: {str: (bool, date, datetime, dict, float, int, list, str, none_type,)}, optional
4966
5067
:param computes: A map of the metric name -> value for regular compute or list of values for a timeseries
5168
:type computes: {str: (LogsAggregateBucketValue,)}, optional

0 commit comments

Comments
 (0)