Skip to content

Commit

Permalink
Regenerate client from commit aa99d44 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jul 15, 2021
1 parent 8110807 commit 9dc767b
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 7 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.dev11",
"regenerated": "2021-07-14 09:06:55.275340",
"spec_repo_commit": "f0a4221"
"regenerated": "2021-07-15 15:13:33.504423",
"spec_repo_commit": "aa99d44"
},
"v2": {
"apigentools_version": "1.4.1.dev11",
"regenerated": "2021-07-14 09:07:22.355067",
"spec_repo_commit": "f0a4221"
"regenerated": "2021-07-15 15:13:55.648041",
"spec_repo_commit": "aa99d44"
}
}
}
2 changes: 1 addition & 1 deletion docs/v1/FormulaAndFunctionEventsDataSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Data source for event platform-based queries.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **str** | Data source for event platform-based queries. | must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", ]
**value** | **str** | Data source for event platform-based queries. | must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", "audit", ]

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

Expand Down
1 change: 1 addition & 0 deletions docs/v1/QueryValueWidgetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**aggregator** | [**WidgetAggregator**](WidgetAggregator.md) | | [optional]
**apm_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**audit_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**conditional_formats** | [**[WidgetConditionalFormat]**](WidgetConditionalFormat.md) | List of conditional formats. | [optional]
**event_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**formulas** | [**[WidgetFormula]**](WidgetFormula.md) | List of formulas that operate on queries. **This feature is currently in beta.** | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/v1/TimeseriesWidgetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Updated timeseries widget.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**apm_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**audit_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**display_type** | [**WidgetDisplayType**](WidgetDisplayType.md) | | [optional]
**event_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**formulas** | [**[WidgetFormula]**](WidgetFormula.md) | List of formulas that operate on queries. **This feature is currently in beta.** | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/v1/ToplistWidgetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Updated top list widget.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**apm_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**audit_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**conditional_formats** | [**[WidgetConditionalFormat]**](WidgetConditionalFormat.md) | List of conditional formats. | [optional]
**event_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
**formulas** | [**[WidgetFormula]**](WidgetFormula.md) | List of formulas that operate on queries. **This feature is currently in beta.** | [optional]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class FormulaAndFunctionEventsDataSource(ModelSimple):
"RUM": "rum",
"SECURITY_SIGNALS": "security_signals",
"PROFILES": "profiles",
"AUDIT": "audit",
},
}

Expand Down Expand Up @@ -99,10 +100,10 @@ def __init__(self, *args, **kwargs):
Note that value can be passed either in args or in kwargs, but not in both.
Args:
args[0] (str): Data source for event platform-based queries.., must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", ] # noqa: E501
args[0] (str): Data source for event platform-based queries.., must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", "audit", ] # noqa: E501
Keyword Args:
value (str): Data source for event platform-based queries.., must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", ] # noqa: E501
value (str): Data source for event platform-based queries.., must be one of ["logs", "spans", "network", "rum", "security_signals", "profiles", "audit", ] # noqa: E501
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
Expand Down
3 changes: 3 additions & 0 deletions src/datadog_api_client/v1/model/query_value_widget_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def openapi_types():
return {
"aggregator": (WidgetAggregator,), # noqa: E501
"apm_query": (LogQueryDefinition,), # noqa: E501
"audit_query": (LogQueryDefinition,), # noqa: E501
"conditional_formats": ([WidgetConditionalFormat],), # noqa: E501
"event_query": (LogQueryDefinition,), # noqa: E501
"formulas": ([WidgetFormula],), # noqa: E501
Expand All @@ -107,6 +108,7 @@ def discriminator():
attribute_map = {
"aggregator": "aggregator", # noqa: E501
"apm_query": "apm_query", # noqa: E501
"audit_query": "audit_query", # noqa: E501
"conditional_formats": "conditional_formats", # noqa: E501
"event_query": "event_query", # noqa: E501
"formulas": "formulas", # noqa: E501
Expand Down Expand Up @@ -171,6 +173,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
aggregator (WidgetAggregator): [optional] # noqa: E501
apm_query (LogQueryDefinition): [optional] # noqa: E501
audit_query (LogQueryDefinition): [optional] # noqa: E501
conditional_formats ([WidgetConditionalFormat]): List of conditional formats.. [optional] # noqa: E501
event_query (LogQueryDefinition): [optional] # noqa: E501
formulas ([WidgetFormula]): List of formulas that operate on queries. **This feature is currently in beta.**. [optional] # noqa: E501
Expand Down
3 changes: 3 additions & 0 deletions src/datadog_api_client/v1/model/timeseries_widget_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def openapi_types():
lazy_import()
return {
"apm_query": (LogQueryDefinition,), # noqa: E501
"audit_query": (LogQueryDefinition,), # noqa: E501
"display_type": (WidgetDisplayType,), # noqa: E501
"event_query": (LogQueryDefinition,), # noqa: E501
"formulas": ([WidgetFormula],), # noqa: E501
Expand All @@ -110,6 +111,7 @@ def discriminator():

attribute_map = {
"apm_query": "apm_query", # noqa: E501
"audit_query": "audit_query", # noqa: E501
"display_type": "display_type", # noqa: E501
"event_query": "event_query", # noqa: E501
"formulas": "formulas", # noqa: E501
Expand Down Expand Up @@ -176,6 +178,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
apm_query (LogQueryDefinition): [optional] # noqa: E501
audit_query (LogQueryDefinition): [optional] # noqa: E501
display_type (WidgetDisplayType): [optional] # noqa: E501
event_query (LogQueryDefinition): [optional] # noqa: E501
formulas ([WidgetFormula]): List of formulas that operate on queries. **This feature is currently in beta.**. [optional] # noqa: E501
Expand Down
3 changes: 3 additions & 0 deletions src/datadog_api_client/v1/model/toplist_widget_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def openapi_types():
lazy_import()
return {
"apm_query": (LogQueryDefinition,), # noqa: E501
"audit_query": (LogQueryDefinition,), # noqa: E501
"conditional_formats": ([WidgetConditionalFormat],), # noqa: E501
"event_query": (LogQueryDefinition,), # noqa: E501
"formulas": ([WidgetFormula],), # noqa: E501
Expand All @@ -110,6 +111,7 @@ def discriminator():

attribute_map = {
"apm_query": "apm_query", # noqa: E501
"audit_query": "audit_query", # noqa: E501
"conditional_formats": "conditional_formats", # noqa: E501
"event_query": "event_query", # noqa: E501
"formulas": "formulas", # noqa: E501
Expand Down Expand Up @@ -174,6 +176,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
apm_query (LogQueryDefinition): [optional] # noqa: E501
audit_query (LogQueryDefinition): [optional] # noqa: E501
conditional_formats ([WidgetConditionalFormat]): List of conditional formats.. [optional] # noqa: E501
event_query (LogQueryDefinition): [optional] # noqa: E501
formulas ([WidgetFormula]): List of formulas that operate on queries. **This feature is currently in beta.**. [optional] # noqa: E501
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,7 @@ components:
- rum
- security_signals
- profiles
- audit
example: logs
type: string
x-enum-varnames:
Expand All @@ -2106,6 +2107,7 @@ components:
- RUM
- SECURITY_SIGNALS
- PROFILES
- AUDIT
FormulaAndFunctionMetricAggregation:
description: The aggregation methods available for metrics queries.
enum:
Expand Down Expand Up @@ -6754,6 +6756,8 @@ components:
$ref: '#/components/schemas/WidgetAggregator'
apm_query:
$ref: '#/components/schemas/LogQueryDefinition'
audit_query:
$ref: '#/components/schemas/LogQueryDefinition'
conditional_formats:
description: List of conditional formats.
items:
Expand Down Expand Up @@ -10379,6 +10383,8 @@ components:
properties:
apm_query:
$ref: '#/components/schemas/LogQueryDefinition'
audit_query:
$ref: '#/components/schemas/LogQueryDefinition'
display_type:
$ref: '#/components/schemas/WidgetDisplayType'
event_query:
Expand Down Expand Up @@ -10470,6 +10476,8 @@ components:
properties:
apm_query:
$ref: '#/components/schemas/LogQueryDefinition'
audit_query:
$ref: '#/components/schemas/LogQueryDefinition'
conditional_formats:
description: List of conditional formats.
example:
Expand Down
6 changes: 6 additions & 0 deletions tests/v1/features/dashboards.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ Feature: Dashboards
When the request is sent
Then the response status is 200 OK

Scenario: Create a new dashboard with an audit logs query
Given new "CreateDashboard" request
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}}]}
When the request is sent
Then the response status is 200 OK

Scenario: Create a new dashboard with timeseries widget containing style attributes
Given new "CreateDashboard" request
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"}]}}]}
Expand Down

0 comments on commit 9dc767b

Please sign in to comment.