Skip to content

Commit

Permalink
Regenerate client from commit 8cb3faac of spec repo (#1968)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: amaskara-dd <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent a5cac89 commit ff7b247
Show file tree
Hide file tree
Showing 14 changed files with 131 additions and 93 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.6.6",
"regenerated": "2024-12-18 16:21:36.811067",
"spec_repo_commit": "e12aeab9"
"regenerated": "2024-12-18 17:18:37.759145",
"spec_repo_commit": "8cb3faac"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-18 16:21:36.828243",
"spec_repo_commit": "e12aeab9"
"regenerated": "2024-12-18 17:18:37.774123",
"spec_repo_commit": "8cb3faac"
}
}
}
55 changes: 32 additions & 23 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,15 @@ components:
Only hosts that match one of the defined tags are imported into Datadog.'
example: key:value,filter:example
type: string
metrics_config:
$ref: '#/components/schemas/AzureAccountMetricsConfig'
metrics_enabled:
description: Enable Azure metrics for your organization.
example: true
type: boolean
metrics_enabled_default:
description: Enable Azure metrics for your organization for resource providers
where no resource provider config is specified.
example: true
type: boolean
new_client_id:
description: Your New Azure web application ID.
example: new1c7f6-1234-5678-9101-3fcbf464test
Expand All @@ -860,37 +867,26 @@ components:
monitored by this app registration.
example: true
type: boolean
resource_provider_configs:
description: Configuration settings applied to resources from the specified
Azure resource providers.
items:
$ref: '#/components/schemas/ResourceProviderConfig'
type: array
tenant_name:
description: Your Azure Active Directory ID.
example: testc44-1234-5678-9101-cc00736ftest
type: string
usage_metrics_enabled:
description: Enable azure.usage metrics for your organization.
example: true
type: boolean
type: object
AzureAccountListResponse:
description: Accounts configured for your organization.
items:
$ref: '#/components/schemas/AzureAccount'
type: array
AzureAccountMetricsConfig:
description: 'Dictionary containing the key `excluded_resource_providers` which
has to be a list of Microsoft Azure Resource Provider names.

This feature is currently being beta tested.

In order to enable all resource providers for metric collection, pass:

`metrics_config: {"excluded_resource_providers": []}` (i.e., an empty list
for `excluded_resource_providers`).'
properties:
excluded_resource_providers:
description: List of Microsoft Azure Resource Providers to exclude from
metric collection.
example:
- Microsoft.Sql
- Microsoft.Cdn
items:
type: string
type: array
type: object
CancelDowntimesByScopeRequest:
description: Cancel downtimes according to scope.
properties:
Expand Down Expand Up @@ -10209,6 +10205,19 @@ components:
- lookup_enrichment_table
- type
type: object
ResourceProviderConfig:
description: Configuration settings applied to resources from the specified
Azure resource provider.
properties:
metrics_enabled:
description: Collect metrics for resources from this provider.
example: true
type: boolean
namespace:
description: The provider namespace to apply this configuration to.
example: Microsoft.Compute
type: string
type: object
ResponseMetaAttributes:
description: Object describing meta attributes of response.
properties:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2024-07-25T18:47:35.517Z"
"2024-12-17T21:43:00.678Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "a4786fba223ec55e474f89e7ba3e291f",
"_id": "4e2e023bb6c56332096971d544522742",
"_order": 0,
"cache": {},
"request": {
"bodySize": 614,
"bodySize": 756,
"cookies": [],
"headers": [
{
Expand All @@ -26,13 +26,13 @@
"value": "application/json"
}
],
"headersSize": 574,
"headersSize": 573,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"app_service_plan_filters\":\"key:value,filter:example\",\"automute\":true,\"client_id\":\"17219332-0000-0000-0000-172193325500\",\"client_secret\":\"TestingRh2nx664kUy5dIApvM54T4AtO\",\"container_app_filters\":\"key:value,filter:example\",\"cspm_enabled\":true,\"custom_metrics_enabled\":true,\"errors\":[\"*\"],\"host_filters\":\"key:value,filter:example\",\"metrics_config\":{\"excluded_resource_providers\":[\"Microsoft.Sql\",\"Microsoft.Cdn\"]},\"new_client_id\":\"17219332-0000-0000-0000-172193325500\",\"new_tenant_name\":\"17219332-0000-0000-0000-172193325500\",\"resource_collection_enabled\":true,\"tenant_name\":\"17219332-0000-0000-0000-172193325500\"}"
"text": "{\"app_service_plan_filters\":\"key:value,filter:example\",\"automute\":true,\"client_id\":\"17344717-0000-0000-0000-173447178000\",\"client_secret\":\"TestingRh2nx664kUy5dIApvM54T4AtO\",\"container_app_filters\":\"key:value,filter:example\",\"cspm_enabled\":true,\"custom_metrics_enabled\":true,\"errors\":[\"*\"],\"host_filters\":\"key:value,filter:example\",\"metrics_enabled\":true,\"metrics_enabled_default\":true,\"new_client_id\":\"17344717-0000-0000-0000-173447178000\",\"new_tenant_name\":\"17344717-0000-0000-0000-173447178000\",\"resource_collection_enabled\":true,\"resource_provider_configs\":[{\"metrics_enabled\":false,\"namespace\":\"Microsoft.Compute\"},{\"metrics_enabled\":false,\"namespace\":\"Microsoft.Web\"}],\"tenant_name\":\"17344717-0000-0000-0000-173447178000\",\"usage_metrics_enabled\":true}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/integration/azure"
Expand All @@ -57,11 +57,11 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-07-25T18:47:35.525Z",
"time": 162
"startedDateTime": "2024-12-17T21:43:00.686Z",
"time": 164
},
{
"_id": "92cc025e6a5dac9ca6af65450cdedad1",
"_id": "18bf59b15d582ef71a8b79afe390d743",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -85,7 +85,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"client_id\":\"17219332-0000-0000-0000-172193325500\",\"tenant_name\":\"17219332-0000-0000-0000-172193325500\"}"
"text": "{\"client_id\":\"17344717-0000-0000-0000-173447178000\",\"tenant_name\":\"17344717-0000-0000-0000-173447178000\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/integration/azure"
Expand All @@ -110,11 +110,11 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-07-25T18:47:35.696Z",
"time": 130
"startedDateTime": "2024-12-17T21:43:00.855Z",
"time": 138
},
{
"_id": "92cc025e6a5dac9ca6af65450cdedad1",
"_id": "18bf59b15d582ef71a8b79afe390d743",
"_order": 1,
"cache": {},
"request": {
Expand All @@ -138,7 +138,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"client_id\":\"17219332-0000-0000-0000-172193325500\",\"tenant_name\":\"17219332-0000-0000-0000-172193325500\"}"
"text": "{\"client_id\":\"17344717-0000-0000-0000-173447178000\",\"tenant_name\":\"17344717-0000-0000-0000-173447178000\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/integration/azure"
Expand All @@ -163,8 +163,8 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-07-25T18:47:35.835Z",
"time": 123
"startedDateTime": "2024-12-17T21:43:00.999Z",
"time": 112
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2024-07-25T18:47:35.975Z"
"2024-12-17T21:43:01.129Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "a4786fba223ec55e474f89e7ba3e291f",
"_id": "6ba1c834178d7fbd05a98c57c5b3a59c",
"_order": 0,
"cache": {},
"request": {
"bodySize": 614,
"bodySize": 756,
"cookies": [],
"headers": [
{
Expand All @@ -32,7 +32,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"app_service_plan_filters\":\"key:value,filter:example\",\"automute\":true,\"client_id\":\"17219332-0000-0000-0000-172193325500\",\"client_secret\":\"TestingRh2nx664kUy5dIApvM54T4AtO\",\"container_app_filters\":\"key:value,filter:example\",\"cspm_enabled\":true,\"custom_metrics_enabled\":true,\"errors\":[\"*\"],\"host_filters\":\"key:value,filter:example\",\"metrics_config\":{\"excluded_resource_providers\":[\"Microsoft.Sql\",\"Microsoft.Cdn\"]},\"new_client_id\":\"17219332-0000-0000-0000-172193325500\",\"new_tenant_name\":\"17219332-0000-0000-0000-172193325500\",\"resource_collection_enabled\":true,\"tenant_name\":\"17219332-0000-0000-0000-172193325500\"}"
"text": "{\"app_service_plan_filters\":\"key:value,filter:example\",\"automute\":true,\"client_id\":\"17344717-0000-0000-0000-173447178100\",\"client_secret\":\"TestingRh2nx664kUy5dIApvM54T4AtO\",\"container_app_filters\":\"key:value,filter:example\",\"cspm_enabled\":true,\"custom_metrics_enabled\":true,\"errors\":[\"*\"],\"host_filters\":\"key:value,filter:example\",\"metrics_enabled\":true,\"metrics_enabled_default\":true,\"new_client_id\":\"17344717-0000-0000-0000-173447178100\",\"new_tenant_name\":\"17344717-0000-0000-0000-173447178100\",\"resource_collection_enabled\":true,\"resource_provider_configs\":[{\"metrics_enabled\":false,\"namespace\":\"Microsoft.Compute\"},{\"metrics_enabled\":false,\"namespace\":\"Microsoft.Web\"}],\"tenant_name\":\"17344717-0000-0000-0000-173447178100\",\"usage_metrics_enabled\":true}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/integration/azure"
Expand All @@ -57,15 +57,15 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-07-25T18:47:35.979Z",
"time": 132
"startedDateTime": "2024-12-17T21:43:01.132Z",
"time": 161
},
{
"_id": "4b7878a346702d19bc5fb0a28b21768c",
"_id": "d21774b07473079b4c57d1a122d1c43a",
"_order": 0,
"cache": {},
"request": {
"bodySize": 614,
"bodySize": 531,
"cookies": [],
"headers": [
{
Expand All @@ -85,7 +85,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"app_service_plan_filters\":\"key:value,filter:example\",\"automute\":true,\"client_id\":\"17219332-0000-0000-0000-172193325500\",\"client_secret\":\"TestingRh2nx664kUy5dIApvM54T4AtO\",\"container_app_filters\":\"key:value,filter:example\",\"cspm_enabled\":true,\"custom_metrics_enabled\":true,\"errors\":[\"*\"],\"host_filters\":\"key:value,filter:example\",\"metrics_config\":{\"excluded_resource_providers\":[\"Microsoft.Sql\",\"Microsoft.Cdn\"]},\"new_client_id\":\"17219332-0000-0000-0000-172193325500\",\"new_tenant_name\":\"17219332-0000-0000-0000-172193325500\",\"resource_collection_enabled\":true,\"tenant_name\":\"17219332-0000-0000-0000-172193325500\"}"
"text": "{\"app_service_plan_filters\":\"key:value,filter:example\",\"automute\":true,\"client_id\":\"17344717-0000-0000-0000-173447178100\",\"client_secret\":\"TestingRh2nx664kUy5dIApvM54T4AtO\",\"container_app_filters\":\"key:value,filter:example\",\"cspm_enabled\":true,\"custom_metrics_enabled\":true,\"errors\":[\"*\"],\"host_filters\":\"key:value,filter:example\",\"new_client_id\":\"17344717-0000-0000-0000-173447178100\",\"new_tenant_name\":\"17344717-0000-0000-0000-173447178100\",\"resource_collection_enabled\":true,\"tenant_name\":\"17344717-0000-0000-0000-173447178100\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/integration/azure"
Expand All @@ -110,11 +110,11 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-07-25T18:47:36.121Z",
"time": 129
"startedDateTime": "2024-12-17T21:43:01.298Z",
"time": 158
},
{
"_id": "92cc025e6a5dac9ca6af65450cdedad1",
"_id": "5f728266903295f35a6347b82c4cbe45",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -138,7 +138,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"client_id\":\"17219332-0000-0000-0000-172193325500\",\"tenant_name\":\"17219332-0000-0000-0000-172193325500\"}"
"text": "{\"client_id\":\"17344717-0000-0000-0000-173447178100\",\"tenant_name\":\"17344717-0000-0000-0000-173447178100\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/integration/azure"
Expand All @@ -163,8 +163,8 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-07-25T18:47:36.259Z",
"time": 118
"startedDateTime": "2024-12-17T21:43:01.461Z",
"time": 121
}
],
"pages": [],
Expand Down
12 changes: 9 additions & 3 deletions examples/v1/azure-integration/UpdateAzureHostFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ const params: v1.AzureIntegrationApiUpdateAzureHostFiltersRequest = {
customMetricsEnabled: true,
errors: ["*"],
hostFilters: "key:value,filter:example",
metricsConfig: {
excludedResourceProviders: ["Microsoft.Sql", "Microsoft.Cdn"],
},
metricsEnabled: true,
metricsEnabledDefault: true,
newClientId: "new1c7f6-1234-5678-9101-3fcbf464test",
newTenantName: "new1c44-1234-5678-9101-cc00736ftest",
resourceCollectionEnabled: true,
resourceProviderConfigs: [
{
metricsEnabled: true,
namespace: "Microsoft.Compute",
},
],
tenantName: "testc44-1234-5678-9101-cc00736ftest",
usageMetricsEnabled: true,
},
};

Expand Down
3 changes: 0 additions & 3 deletions examples/v1/azure-integration/UpdateAzureIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ const params: v1.AzureIntegrationApiUpdateAzureIntegrationRequest = {
newClientId: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
newTenantName: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
resourceCollectionEnabled: true,
metricsConfig: {
excludedResourceProviders: ["Microsoft.Sql", "Microsoft.Cdn"],
},
tenantName: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
},
};
Expand Down
Loading

0 comments on commit ff7b247

Please sign in to comment.