Skip to content

Commit 51eefad

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 18eae8f of spec repo
1 parent 8110807 commit 51eefad

13 files changed

+135
-7
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.4.1.dev11",
7-
"regenerated": "2021-07-14 09:06:55.275340",
8-
"spec_repo_commit": "f0a4221"
7+
"regenerated": "2021-07-15 15:54:38.956828",
8+
"spec_repo_commit": "18eae8f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev11",
12-
"regenerated": "2021-07-14 09:07:22.355067",
13-
"spec_repo_commit": "f0a4221"
12+
"regenerated": "2021-07-15 15:55:05.776227",
13+
"spec_repo_commit": "18eae8f"
1414
}
1515
}
1616
}

docs/v1/FormulaAndFunctionEventsDataSource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Data source for event platform-based queries.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**value** | **str** | Data source for event platform-based queries. | must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", ]
8+
**value** | **str** | Data source for event platform-based queries. | must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", "audit", ]
99

1010
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
1111

docs/v1/QueryValueWidgetRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**aggregator** | [**WidgetAggregator**](WidgetAggregator.md) | | [optional]
99
**apm_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
10+
**audit_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
1011
**conditional_formats** | [**[WidgetConditionalFormat]**](WidgetConditionalFormat.md) | List of conditional formats. | [optional]
1112
**event_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
1213
**formulas** | [**[WidgetFormula]**](WidgetFormula.md) | List of formulas that operate on queries. **This feature is currently in beta.** | [optional]

docs/v1/TimeseriesWidgetRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Updated timeseries widget.
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**apm_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
9+
**audit_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
910
**display_type** | [**WidgetDisplayType**](WidgetDisplayType.md) | | [optional]
1011
**event_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
1112
**formulas** | [**[WidgetFormula]**](WidgetFormula.md) | List of formulas that operate on queries. **This feature is currently in beta.** | [optional]

docs/v1/ToplistWidgetRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Updated top list widget.
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**apm_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
9+
**audit_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
910
**conditional_formats** | [**[WidgetConditionalFormat]**](WidgetConditionalFormat.md) | List of conditional formats. | [optional]
1011
**event_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
1112
**formulas** | [**[WidgetFormula]**](WidgetFormula.md) | List of formulas that operate on queries. **This feature is currently in beta.** | [optional]

src/datadog_api_client/v1/model/formula_and_function_events_data_source.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class FormulaAndFunctionEventsDataSource(ModelSimple):
5050
"RUM": "rum",
5151
"SECURITY_SIGNALS": "security_signals",
5252
"PROFILES": "profiles",
53+
"AUDIT": "audit",
5354
},
5455
}
5556

@@ -99,10 +100,10 @@ def __init__(self, *args, **kwargs):
99100
Note that value can be passed either in args or in kwargs, but not in both.
100101
101102
Args:
102-
args[0] (str): Data source for event platform-based queries.., must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", ] # noqa: E501
103+
args[0] (str): Data source for event platform-based queries.., must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", "audit", ] # noqa: E501
103104
104105
Keyword Args:
105-
value (str): Data source for event platform-based queries.., must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", ] # noqa: E501
106+
value (str): Data source for event platform-based queries.., must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", "audit", ] # noqa: E501
106107
_check_type (bool): if True, values for parameters in openapi_types
107108
will be type checked and a TypeError will be
108109
raised if the wrong type is input.

src/datadog_api_client/v1/model/query_value_widget_request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def openapi_types():
8686
return {
8787
"aggregator": (WidgetAggregator,), # noqa: E501
8888
"apm_query": (LogQueryDefinition,), # noqa: E501
89+
"audit_query": (LogQueryDefinition,), # noqa: E501
8990
"conditional_formats": ([WidgetConditionalFormat],), # noqa: E501
9091
"event_query": (LogQueryDefinition,), # noqa: E501
9192
"formulas": ([WidgetFormula],), # noqa: E501
@@ -107,6 +108,7 @@ def discriminator():
107108
attribute_map = {
108109
"aggregator": "aggregator", # noqa: E501
109110
"apm_query": "apm_query", # noqa: E501
111+
"audit_query": "audit_query", # noqa: E501
110112
"conditional_formats": "conditional_formats", # noqa: E501
111113
"event_query": "event_query", # noqa: E501
112114
"formulas": "formulas", # noqa: E501
@@ -171,6 +173,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
171173
_visited_composed_classes = (Animal,)
172174
aggregator (WidgetAggregator): [optional] # noqa: E501
173175
apm_query (LogQueryDefinition): [optional] # noqa: E501
176+
audit_query (LogQueryDefinition): [optional] # noqa: E501
174177
conditional_formats ([WidgetConditionalFormat]): List of conditional formats.. [optional] # noqa: E501
175178
event_query (LogQueryDefinition): [optional] # noqa: E501
176179
formulas ([WidgetFormula]): List of formulas that operate on queries. **This feature is currently in beta.**. [optional] # noqa: E501

src/datadog_api_client/v1/model/timeseries_widget_request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def openapi_types():
8787
lazy_import()
8888
return {
8989
"apm_query": (LogQueryDefinition,), # noqa: E501
90+
"audit_query": (LogQueryDefinition,), # noqa: E501
9091
"display_type": (WidgetDisplayType,), # noqa: E501
9192
"event_query": (LogQueryDefinition,), # noqa: E501
9293
"formulas": ([WidgetFormula],), # noqa: E501
@@ -110,6 +111,7 @@ def discriminator():
110111

111112
attribute_map = {
112113
"apm_query": "apm_query", # noqa: E501
114+
"audit_query": "audit_query", # noqa: E501
113115
"display_type": "display_type", # noqa: E501
114116
"event_query": "event_query", # noqa: E501
115117
"formulas": "formulas", # noqa: E501
@@ -176,6 +178,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
176178
through its discriminator because we passed in
177179
_visited_composed_classes = (Animal,)
178180
apm_query (LogQueryDefinition): [optional] # noqa: E501
181+
audit_query (LogQueryDefinition): [optional] # noqa: E501
179182
display_type (WidgetDisplayType): [optional] # noqa: E501
180183
event_query (LogQueryDefinition): [optional] # noqa: E501
181184
formulas ([WidgetFormula]): List of formulas that operate on queries. **This feature is currently in beta.**. [optional] # noqa: E501

src/datadog_api_client/v1/model/toplist_widget_request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def openapi_types():
8989
lazy_import()
9090
return {
9191
"apm_query": (LogQueryDefinition,), # noqa: E501
92+
"audit_query": (LogQueryDefinition,), # noqa: E501
9293
"conditional_formats": ([WidgetConditionalFormat],), # noqa: E501
9394
"event_query": (LogQueryDefinition,), # noqa: E501
9495
"formulas": ([WidgetFormula],), # noqa: E501
@@ -110,6 +111,7 @@ def discriminator():
110111

111112
attribute_map = {
112113
"apm_query": "apm_query", # noqa: E501
114+
"audit_query": "audit_query", # noqa: E501
113115
"conditional_formats": "conditional_formats", # noqa: E501
114116
"event_query": "event_query", # noqa: E501
115117
"formulas": "formulas", # noqa: E501
@@ -174,6 +176,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
174176
through its discriminator because we passed in
175177
_visited_composed_classes = (Animal,)
176178
apm_query (LogQueryDefinition): [optional] # noqa: E501
179+
audit_query (LogQueryDefinition): [optional] # noqa: E501
177180
conditional_formats ([WidgetConditionalFormat]): List of conditional formats.. [optional] # noqa: E501
178181
event_query (LogQueryDefinition): [optional] # noqa: E501
179182
formulas ([WidgetFormula]): List of formulas that operate on queries. **This feature is currently in beta.**. [optional] # noqa: E501

src/datadog_api_client/v1/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,7 @@ components:
20972097
- rum
20982098
- security_signals
20992099
- profiles
2100+
- audit
21002101
example: logs
21012102
type: string
21022103
x-enum-varnames:
@@ -2106,6 +2107,7 @@ components:
21062107
- RUM
21072108
- SECURITY_SIGNALS
21082109
- PROFILES
2110+
- AUDIT
21092111
FormulaAndFunctionMetricAggregation:
21102112
description: The aggregation methods available for metrics queries.
21112113
enum:
@@ -6754,6 +6756,8 @@ components:
67546756
$ref: '#/components/schemas/WidgetAggregator'
67556757
apm_query:
67566758
$ref: '#/components/schemas/LogQueryDefinition'
6759+
audit_query:
6760+
$ref: '#/components/schemas/LogQueryDefinition'
67576761
conditional_formats:
67586762
description: List of conditional formats.
67596763
items:
@@ -10379,6 +10383,8 @@ components:
1037910383
properties:
1038010384
apm_query:
1038110385
$ref: '#/components/schemas/LogQueryDefinition'
10386+
audit_query:
10387+
$ref: '#/components/schemas/LogQueryDefinition'
1038210388
display_type:
1038310389
$ref: '#/components/schemas/WidgetDisplayType'
1038410390
event_query:
@@ -10470,6 +10476,8 @@ components:
1047010476
properties:
1047110477
apm_query:
1047210478
$ref: '#/components/schemas/LogQueryDefinition'
10479+
audit_query:
10480+
$ref: '#/components/schemas/LogQueryDefinition'
1047310481
conditional_formats:
1047410482
description: List of conditional formats.
1047510483
example:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2021-07-15T15:24:01.025Z
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
interactions:
2+
- request:
3+
body: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_an_audit_logs_query-1626362641
4+
with Audit Logs Query","widgets":[{"definition":{"requests":[{"queries":[{"compute":{"aggregation":"count"},"data_source":"audit","group_by":[],"indexes":["*"],"name":"query1","search":{"query":""}}],"response_format":"timeseries"}],"type":"timeseries"},"layout":{"height":2,"width":4,"x":2,"y":0}}]}'
5+
headers:
6+
accept:
7+
- application/json, */*;q=0.8
8+
connection:
9+
- close
10+
content-length:
11+
- '398'
12+
content-type:
13+
- application/json
14+
host:
15+
- api.datadoghq.com
16+
user-agent:
17+
- datadog-api-client-typescript/1.0.0-beta.4 (node 14.17.3; os Linux; arch x64)
18+
x-datadog-parent-id:
19+
- '416849553464162765'
20+
x-datadog-trace-id:
21+
- '6183266674255130707'
22+
method: POST
23+
uri: https://api.datadoghq.com/api/v1/dashboard
24+
response:
25+
body:
26+
string: '{"notify_list":null,"description":null,"restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"p4g-d4h-n7v","title":"Test-Create_a_new_dashboard_with_an_audit_logs_query-1626362641
27+
with Audit Logs Query","url":"/dashboard/p4g-d4h-n7v/test-createanewdashboardwithanauditlogsquery-1626362641-with-audit-logs-query","created_at":"2021-07-15T15:24:01.201286+00:00","modified_at":"2021-07-15T15:24:01.201286+00:00","author_handle":"[email protected]","widgets":[{"definition":{"requests":[{"response_format":"timeseries","queries":[{"search":{"query":""},"data_source":"audit","compute":{"aggregation":"count"},"name":"query1","indexes":["*"],"group_by":[]}]}],"type":"timeseries"},"layout":{"y":0,"width":4,"x":2,"height":2},"id":2504710761419893}],"layout_type":"ordered"}'
28+
headers:
29+
cache-control:
30+
- no-cache
31+
connection:
32+
- close
33+
content-length:
34+
- '808'
35+
content-security-policy:
36+
- frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report
37+
content-type:
38+
- application/json
39+
date:
40+
- Thu, 15 Jul 2021 15:24:01 GMT
41+
pragma:
42+
- no-cache
43+
strict-transport-security:
44+
- max-age=15724800;
45+
vary:
46+
- Accept-Encoding
47+
x-content-type-options:
48+
- nosniff
49+
x-frame-options:
50+
- SAMEORIGIN
51+
status:
52+
code: 200
53+
message: OK
54+
- request:
55+
body: null
56+
headers:
57+
accept:
58+
- application/json, */*;q=0.8
59+
connection:
60+
- close
61+
host:
62+
- api.datadoghq.com
63+
user-agent:
64+
- datadog-api-client-typescript/1.0.0-beta.4 (node 14.17.3; os Linux; arch x64)
65+
x-datadog-parent-id:
66+
- '3221273726630624468'
67+
x-datadog-trace-id:
68+
- '6183266674255130707'
69+
method: DELETE
70+
uri: https://api.datadoghq.com/api/v1/dashboard/p4g-d4h-n7v
71+
response:
72+
body:
73+
string: '{"deleted_dashboard_id":"p4g-d4h-n7v"}'
74+
headers:
75+
cache-control:
76+
- no-cache
77+
connection:
78+
- close
79+
content-length:
80+
- '38'
81+
content-security-policy:
82+
- frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report
83+
content-type:
84+
- application/json
85+
date:
86+
- Thu, 15 Jul 2021 15:24:01 GMT
87+
pragma:
88+
- no-cache
89+
strict-transport-security:
90+
- max-age=15724800;
91+
vary:
92+
- Accept-Encoding
93+
x-content-type-options:
94+
- nosniff
95+
x-frame-options:
96+
- SAMEORIGIN
97+
status:
98+
code: 200
99+
message: OK
100+
version: 1

tests/v1/features/dashboards.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Feature: Dashboards
2929
When the request is sent
3030
Then the response status is 200 OK
3131

32+
Scenario: Create a new dashboard with an audit logs query
33+
Given new "CreateDashboard" request
34+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with Audit Logs Query", "widgets": [{"definition": {"type": "timeseries","requests": [{"response_format": "timeseries","queries": [{"search": {"query": ""},"data_source": "audit","compute": {"aggregation": "count"},"name": "query1","indexes": ["*"],"group_by": []}]}]},"layout": {"x": 2,"y": 0,"width": 4,"height": 2}}]}
35+
When the request is sent
36+
Then the response status is 200 OK
37+
3238
Scenario: Create a new dashboard with timeseries widget containing style attributes
3339
Given new "CreateDashboard" request
3440
And body with value {"layout_type": "ordered", "title": "{{ unique }} with timeseries widget","widgets": [{"definition": {"type": "timeseries","requests": [{"q": "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()","on_right_yaxis": false,"style": {"palette": "warm","line_type": "solid","line_width": "normal"},"display_type": "bars"}]}}]}

0 commit comments

Comments
 (0)