Skip to content

Commit 3ce7dfc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 06d5b3d of spec repo
1 parent 0f90098 commit 3ce7dfc

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4202,6 +4202,10 @@ components:
42024202
description: Enable custom metrics collection. Defaults to `false`.
42034203
example: false
42044204
type: boolean
4205+
collect_service_quotas:
4206+
description: Enable Service Quotas collection. Defaults to `false`.
4207+
example: false
4208+
type: boolean
42054209
enabled:
42064210
description: Enable AWS metrics collection. Defaults to `true`.
42074211
example: true
@@ -184828,6 +184832,7 @@ paths:
184828184832
automute_enabled: true
184829184833
collect_cloudwatch_alarms: false
184830184834
collect_custom_metrics: false
184835+
collect_service_quotas: false
184831184836
enabled: true
184832184837
metric_name_filters:
184833184838
- include_only:
@@ -184970,6 +184975,7 @@ paths:
184970184975
automute_enabled: true
184971184976
collect_cloudwatch_alarms: false
184972184977
collect_custom_metrics: false
184978+
collect_service_quotas: false
184973184979
enabled: true
184974184980
metric_name_filters:
184975184981
- include_only:

‎src/datadog_api_client/v2/model/aws_metrics_config.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def openapi_types(_):
3434
"automute_enabled": (bool,),
3535
"collect_cloudwatch_alarms": (bool,),
3636
"collect_custom_metrics": (bool,),
37+
"collect_service_quotas": (bool,),
3738
"enabled": (bool,),
3839
"metric_name_filters": ([AWSMetricNameFilters],),
3940
"namespace_filters": (AWSNamespaceFilters,),
@@ -44,6 +45,7 @@ def openapi_types(_):
4445
"automute_enabled": "automute_enabled",
4546
"collect_cloudwatch_alarms": "collect_cloudwatch_alarms",
4647
"collect_custom_metrics": "collect_custom_metrics",
48+
"collect_service_quotas": "collect_service_quotas",
4749
"enabled": "enabled",
4850
"metric_name_filters": "metric_name_filters",
4951
"namespace_filters": "namespace_filters",
@@ -55,6 +57,7 @@ def __init__(
5557
automute_enabled: Union[bool, UnsetType] = unset,
5658
collect_cloudwatch_alarms: Union[bool, UnsetType] = unset,
5759
collect_custom_metrics: Union[bool, UnsetType] = unset,
60+
collect_service_quotas: Union[bool, UnsetType] = unset,
5861
enabled: Union[bool, UnsetType] = unset,
5962
metric_name_filters: Union[
6063
List[Union[AWSMetricNameFilters, AWSMetricNameFiltersIncludeOnly, AWSMetricNameFiltersExcludeOnly]],
@@ -78,6 +81,9 @@ def __init__(
7881
:param collect_custom_metrics: Enable custom metrics collection. Defaults to ``false``.
7982
:type collect_custom_metrics: bool, optional
8083
84+
:param collect_service_quotas: Enable Service Quotas collection. Defaults to ``false``.
85+
:type collect_service_quotas: bool, optional
86+
8187
:param enabled: Enable AWS metrics collection. Defaults to ``true``.
8288
:type enabled: bool, optional
8389
@@ -97,6 +103,8 @@ def __init__(
97103
kwargs["collect_cloudwatch_alarms"] = collect_cloudwatch_alarms
98104
if collect_custom_metrics is not unset:
99105
kwargs["collect_custom_metrics"] = collect_custom_metrics
106+
if collect_service_quotas is not unset:
107+
kwargs["collect_service_quotas"] = collect_service_quotas
100108
if enabled is not unset:
101109
kwargs["enabled"] = enabled
102110
if metric_name_filters is not unset:

‎tests/v2/features/given.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@
802802
"parameters": [
803803
{
804804
"name": "body",
805-
"value": "{\n \"data\": {\n \"type\": \"account\",\n \"attributes\": {\n \"account_tags\": [\n \"key:value\"\n ],\n \"auth_config\": {\n \"role_name\": \"DatadogIntegrationRole\"\n },\n \"aws_account_id\": \"123456789012\",\n \"aws_partition\": \"aws\",\n \"aws_regions\": {\n \"include_only\": [\n \"us-east-1\"\n ]\n },\n \"logs_config\": {\n \"lambda_forwarder\": {\n \"lambdas\": [\n \"arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder\"\n ],\n \"sources\": [\n \"s3\"\n ],\n \"log_source_config\": {\n \"tag_filters\": [\n {\n \"source\": \"s3\",\n \"tags\": [\"test:test\"]\n }\n ]\n }\n }\n },\n \"metrics_config\": {\n \"enabled\": true,\n \"automute_enabled\": true,\n \"collect_custom_metrics\": false,\n \"collect_cloudwatch_alarms\": false,\n \"tag_filters\": [\n {\n \"namespace\": \"AWS/EC2\",\n \"tags\": [\n \"key:value\"\n ]\n }\n ],\n \"namespace_filters\": {\n \"include_only\": [\n \"AWS/EC2\"\n ]\n }\n },\n \"resources_config\": {\n \"cloud_security_posture_management_collection\": false,\n \"extended_collection\": false\n },\n \"traces_config\": {\n \"xray_services\": {\n \"include_only\": [\n \"AWS/AppSync\"\n ]\n }\n }\n }\n }\n}"
805+
"value": "{\n \"data\": {\n \"type\": \"account\",\n \"attributes\": {\n \"account_tags\": [\n \"key:value\"\n ],\n \"auth_config\": {\n \"role_name\": \"DatadogIntegrationRole\"\n },\n \"aws_account_id\": \"123456789012\",\n \"aws_partition\": \"aws\",\n \"aws_regions\": {\n \"include_only\": [\n \"us-east-1\"\n ]\n },\n \"logs_config\": {\n \"lambda_forwarder\": {\n \"lambdas\": [\n \"arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder\"\n ],\n \"sources\": [\n \"s3\"\n ],\n \"log_source_config\": {\n \"tag_filters\": [\n {\n \"source\": \"s3\",\n \"tags\": [\"test:test\"]\n }\n ]\n }\n }\n },\n \"metrics_config\": {\n \"enabled\": true,\n \"automute_enabled\": true,\n \"collect_custom_metrics\": false,\n \"collect_service_quotas\": false,\n \"collect_cloudwatch_alarms\": false,\n \"tag_filters\": [\n {\n \"namespace\": \"AWS/EC2\",\n \"tags\": [\n \"key:value\"\n ]\n }\n ],\n \"namespace_filters\": {\n \"include_only\": [\n \"AWS/EC2\"\n ]\n }\n },\n \"resources_config\": {\n \"cloud_security_posture_management_collection\": false,\n \"extended_collection\": false\n },\n \"traces_config\": {\n \"xray_services\": {\n \"include_only\": [\n \"AWS/AppSync\"\n ]\n }\n }\n }\n }\n}"
806806
}
807807
],
808808
"step": "there is a valid \"aws_account_v2\" in the system",

0 commit comments

Comments
 (0)