Skip to content

Commit 4e4a30c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d394b63 of spec repo
1 parent fe484d2 commit 4e4a30c

File tree

6 files changed

+24
-12
lines changed

6 files changed

+24
-12
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "8001cbb",
3-
"generated": "2025-08-13 20:27:09.207"
2+
"spec_repo_commit": "d394b63",
3+
"generated": "2025-08-14 13:57:42.325"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7649,12 +7649,12 @@ components:
76497649
description: The type of the changed resource.
76507650
enum:
76517651
- feature_flag
7652-
- configuration
7652+
- metric_configuration
76537653
example: feature_flag
76547654
type: string
76557655
x-enum-varnames:
76567656
- FEATURE_FLAG
7657-
- CONFIGURATION
7657+
- METRIC_CONFIGURATION
76587658
ChangeEventAttributesImpactedResourcesItem:
76597659
description: A uniquely identified resource.
76607660
properties:
@@ -7780,12 +7780,12 @@ components:
77807780
description: The type of the resource that was changed.
77817781
enum:
77827782
- feature_flag
7783-
- configuration
7783+
- metric_configuration
77847784
example: feature_flag
77857785
type: string
77867786
x-enum-varnames:
77877787
- FEATURE_FLAG
7788-
- CONFIGURATION
7788+
- METRIC_CONFIGURATION
77897789
ChangeEventCustomAttributesImpactedResourcesItems:
77907790
additionalProperties: false
77917791
description: Object representing a uniquely identified resource.

features/v2/events.feature

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ Feature: Events
8787
And the response "data.type" is equal to "event"
8888
And the response "data.attributes.attributes.evt" has field "uid"
8989

90+
@skip-validation @team:DataDog/event-management
91+
Scenario: Post an event with metric_configuration resource type returns "OK" response
92+
Given new "CreateEvent" request
93+
And body with value {"data": {"attributes": {"aggregation_key": "aggregation_key_123", "attributes": {"author": {"name": "[email protected]", "type": "user"}, "change_metadata": {"dd": {"team": "datadog_team", "user_email": "[email protected]", "user_id": "datadog_user_id", "user_name": "datadog_username"}, "resource_link": "datadog.com/metric/config_test"}, "changed_resource": {"name": "config_test", "type": "metric_configuration"}, "impacted_resources": [{"name": "system.cpu.usage", "type": "service"}], "new_value": {"aggregation": "avg", "tags": ["env:prod", "service:web"], "unit": "percent"}, "prev_value": {"aggregation": "sum", "tags": ["env:prod"], "unit": "percent"}}, "category": "change", "integration_id": "custom-events", "message": "metric configuration has been updated", "tags": ["env:api_client_test"], "title": "metric configuration updated"}, "type": "event"}}
94+
When the request is sent
95+
Then the response status is 202 OK
96+
And the response "data.type" is equal to "event"
97+
And the response "data.attributes.attributes.evt" has field "uid"
98+
9099
@team:DataDog/event-management
91100
Scenario: Search events returns "Bad Request" response
92101
Given new "SearchEvents" request

services/events/src/v2/models/ChangeEventAttributesChangedResourceType.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { UnparsedObject } from "@datadog/datadog-api-client";
55
*/
66
export type ChangeEventAttributesChangedResourceType =
77
| typeof FEATURE_FLAG
8-
| typeof CONFIGURATION
8+
| typeof METRIC_CONFIGURATION
99
| UnparsedObject;
1010
export const FEATURE_FLAG = "feature_flag";
11-
export const CONFIGURATION = "configuration";
11+
export const METRIC_CONFIGURATION = "metric_configuration";

services/events/src/v2/models/ChangeEventCustomAttributesChangedResourceType.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { UnparsedObject } from "@datadog/datadog-api-client";
55
*/
66
export type ChangeEventCustomAttributesChangedResourceType =
77
| typeof FEATURE_FLAG
8-
| typeof CONFIGURATION
8+
| typeof METRIC_CONFIGURATION
99
| UnparsedObject;
1010
export const FEATURE_FLAG = "feature_flag";
11-
export const CONFIGURATION = "configuration";
11+
export const METRIC_CONFIGURATION = "metric_configuration";

services/events/src/v2/models/TypingInfo.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ export const TypingInfo: ModelTypingInfo = {
6161
AlertEventCustomAttributesPriority: ["1", "2", "3", "4", "5"],
6262
AlertEventCustomAttributesStatus: ["warn", "error", "ok"],
6363
ChangeEventAttributesAuthorType: ["user", "system", "api", "automation"],
64-
ChangeEventAttributesChangedResourceType: ["feature_flag", "configuration"],
64+
ChangeEventAttributesChangedResourceType: [
65+
"feature_flag",
66+
"metric_configuration",
67+
],
6568
ChangeEventAttributesImpactedResourcesItemType: ["service"],
6669
ChangeEventCustomAttributesAuthorType: [
6770
"user",
@@ -71,7 +74,7 @@ export const TypingInfo: ModelTypingInfo = {
7174
],
7275
ChangeEventCustomAttributesChangedResourceType: [
7376
"feature_flag",
74-
"configuration",
77+
"metric_configuration",
7578
],
7679
ChangeEventCustomAttributesImpactedResourcesItemsType: ["service"],
7780
EventCategory: ["change", "alert"],

0 commit comments

Comments
 (0)