Skip to content

Commit 92fae32

Browse files
api-clients-generation-pipeline[bot]jirikuncarci.datadog-api-spec
authored
Add endpoints for the public API of Logs2Metrics (#203)
* cassettes * Regenerate client from commit 3de6697 of spec repo Co-authored-by: Jiri Kuncar <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d32adee commit 92fae32

File tree

79 files changed

+6740
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+6740
-4
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.0",
7-
"regenerated": "2020-12-21 14:42:12.655409",
8-
"spec_repo_commit": "b40b323"
7+
"regenerated": "2020-12-22 15:42:40.512467",
8+
"spec_repo_commit": "3de6697"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.0",
12-
"regenerated": "2020-12-21 14:42:23.421350",
13-
"spec_repo_commit": "b40b323"
12+
"regenerated": "2020-12-22 15:42:51.499686",
13+
"spec_repo_commit": "3de6697"
1414
}
1515
}
1616
}

.openapi-generator/FILES

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ datadog_api_client/v2/api/incidents_api.py
99
datadog_api_client/v2/api/key_management_api.py
1010
datadog_api_client/v2/api/logs_api.py
1111
datadog_api_client/v2/api/logs_archives_api.py
12+
datadog_api_client/v2/api/logs_metrics_api.py
1213
datadog_api_client/v2/api/processes_api.py
1314
datadog_api_client/v2/api/roles_api.py
1415
datadog_api_client/v2/api/security_monitoring_api.py
@@ -145,6 +146,25 @@ datadog_api_client/v2/model/logs_list_request.py
145146
datadog_api_client/v2/model/logs_list_request_page.py
146147
datadog_api_client/v2/model/logs_list_response.py
147148
datadog_api_client/v2/model/logs_list_response_links.py
149+
datadog_api_client/v2/model/logs_metric_compute.py
150+
datadog_api_client/v2/model/logs_metric_compute_aggregation_type.py
151+
datadog_api_client/v2/model/logs_metric_create_attributes.py
152+
datadog_api_client/v2/model/logs_metric_create_data.py
153+
datadog_api_client/v2/model/logs_metric_create_request.py
154+
datadog_api_client/v2/model/logs_metric_filter.py
155+
datadog_api_client/v2/model/logs_metric_group_by.py
156+
datadog_api_client/v2/model/logs_metric_response.py
157+
datadog_api_client/v2/model/logs_metric_response_attributes.py
158+
datadog_api_client/v2/model/logs_metric_response_compute.py
159+
datadog_api_client/v2/model/logs_metric_response_compute_aggregation_type.py
160+
datadog_api_client/v2/model/logs_metric_response_data.py
161+
datadog_api_client/v2/model/logs_metric_response_filter.py
162+
datadog_api_client/v2/model/logs_metric_response_group_by.py
163+
datadog_api_client/v2/model/logs_metric_type.py
164+
datadog_api_client/v2/model/logs_metric_update_attributes.py
165+
datadog_api_client/v2/model/logs_metric_update_data.py
166+
datadog_api_client/v2/model/logs_metric_update_request.py
167+
datadog_api_client/v2/model/logs_metrics_response.py
148168
datadog_api_client/v2/model/logs_query_filter.py
149169
datadog_api_client/v2/model/logs_query_options.py
150170
datadog_api_client/v2/model/logs_response_metadata.py
@@ -390,6 +410,26 @@ docs/LogsListRequest.md
390410
docs/LogsListRequestPage.md
391411
docs/LogsListResponse.md
392412
docs/LogsListResponseLinks.md
413+
docs/LogsMetricCompute.md
414+
docs/LogsMetricComputeAggregationType.md
415+
docs/LogsMetricCreateAttributes.md
416+
docs/LogsMetricCreateData.md
417+
docs/LogsMetricCreateRequest.md
418+
docs/LogsMetricFilter.md
419+
docs/LogsMetricGroupBy.md
420+
docs/LogsMetricResponse.md
421+
docs/LogsMetricResponseAttributes.md
422+
docs/LogsMetricResponseCompute.md
423+
docs/LogsMetricResponseComputeAggregationType.md
424+
docs/LogsMetricResponseData.md
425+
docs/LogsMetricResponseFilter.md
426+
docs/LogsMetricResponseGroupBy.md
427+
docs/LogsMetricType.md
428+
docs/LogsMetricUpdateAttributes.md
429+
docs/LogsMetricUpdateData.md
430+
docs/LogsMetricUpdateRequest.md
431+
docs/LogsMetricsApi.md
432+
docs/LogsMetricsResponse.md
393433
docs/LogsQueryFilter.md
394434
docs/LogsQueryOptions.md
395435
docs/LogsResponseMetadata.md
@@ -636,6 +676,26 @@ test/test_logs_list_request.py
636676
test/test_logs_list_request_page.py
637677
test/test_logs_list_response.py
638678
test/test_logs_list_response_links.py
679+
test/test_logs_metric_compute.py
680+
test/test_logs_metric_compute_aggregation_type.py
681+
test/test_logs_metric_create_attributes.py
682+
test/test_logs_metric_create_data.py
683+
test/test_logs_metric_create_request.py
684+
test/test_logs_metric_filter.py
685+
test/test_logs_metric_group_by.py
686+
test/test_logs_metric_response.py
687+
test/test_logs_metric_response_attributes.py
688+
test/test_logs_metric_response_compute.py
689+
test/test_logs_metric_response_compute_aggregation_type.py
690+
test/test_logs_metric_response_data.py
691+
test/test_logs_metric_response_filter.py
692+
test/test_logs_metric_response_group_by.py
693+
test/test_logs_metric_type.py
694+
test/test_logs_metric_update_attributes.py
695+
test/test_logs_metric_update_data.py
696+
test/test_logs_metric_update_request.py
697+
test/test_logs_metrics_api.py
698+
test/test_logs_metrics_response.py
639699
test/test_logs_query_filter.py
640700
test/test_logs_query_options.py
641701
test/test_logs_response_metadata.py

docs/v2/LogsMetricCompute.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# LogsMetricCompute
2+
3+
The compute rule to compute the log-based metric.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**aggregation_type** | [**LogsMetricComputeAggregationType**](LogsMetricComputeAggregationType.md) | |
8+
**path** | **str** | The path to the value the log-based metric will aggregate on (only used if the aggregation type is a \&quot;distribution\&quot;). | [optional]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# LogsMetricComputeAggregationType
2+
3+
The type of aggregation to use.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | The type of aggregation to use. | must be one of ["count", "distribution", ]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/LogsMetricCreateAttributes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# LogsMetricCreateAttributes
2+
3+
The object describing the Datadog log-based metric to create.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**compute** | [**LogsMetricCompute**](LogsMetricCompute.md) | |
8+
**filter** | [**LogsMetricFilter**](LogsMetricFilter.md) | | [optional]
9+
**group_by** | [**[LogsMetricGroupBy]**](LogsMetricGroupBy.md) | The rules for the group by. | [optional]
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
12+
13+

docs/v2/LogsMetricCreateData.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# LogsMetricCreateData
2+
3+
The new log-based metric properties.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**attributes** | [**LogsMetricCreateAttributes**](LogsMetricCreateAttributes.md) | |
8+
**id** | **str** | The name of the log-based metric. |
9+
**type** | [**LogsMetricType**](LogsMetricType.md) | |
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
12+
13+

docs/v2/LogsMetricCreateRequest.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# LogsMetricCreateRequest
2+
3+
The new log-based metric body.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**data** | [**LogsMetricCreateData**](LogsMetricCreateData.md) | |
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/LogsMetricFilter.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# LogsMetricFilter
2+
3+
The log-based metric filter. Logs matching this filter will be aggregated in this metric.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**query** | **str** | The search query - following the log search syntax. | [optional] if omitted the server will use the default value of "*"
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/LogsMetricGroupBy.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# LogsMetricGroupBy
2+
3+
A group by rule.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**path** | **str** | The path to the value the log-based metric will be aggregated over. |
8+
**tag_name** | **str** | Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. | [optional]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v2/LogsMetricResponse.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# LogsMetricResponse
2+
3+
The log-based metric object.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**data** | [**LogsMetricResponseData**](LogsMetricResponseData.md) | | [optional]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

0 commit comments

Comments
 (0)