Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130840,13 +130840,15 @@ components:
$ref: "#/components/schemas/TagRuleScoreRelationship"
type: object
TagRuleResourceType:
description: JSON:API resource type for a tag rule.
description: JSON:API resource type for a tag rule. Responses use the legacy `tag_policy` value.
enum:
- tag_rule
- tag_policy
example: "tag_rule"
type: string
x-enum-varnames:
- TAG_RULE
- TAG_POLICY
TagRuleResponse:
description: A single tag rule.
properties:
Expand Down Expand Up @@ -130927,13 +130929,15 @@ components:
- id
type: object
TagRuleScoreResourceType:
description: JSON:API resource type for a tag rule compliance score.
description: JSON:API resource type for a tag rule compliance score. Responses use the legacy `tag_policy_score` value.
enum:
- tag_rule_score
- tag_policy_score
example: "tag_rule_score"
type: string
x-enum-varnames:
- TAG_RULE_SCORE
- TAG_POLICY_SCORE
TagRuleScoreResponse:
description: A tag rule compliance score.
properties:
Expand Down Expand Up @@ -177253,16 +177257,16 @@ paths:
score:
data:
id: "123-v1-1779315066097-1779401466097"
type: "tag_rule_score"
type: "tag_rule"
type: "tag_policy_score"
type: "tag_policy"
included:
- attributes:
score: 80
ts_end: 1779401466097
ts_start: 1779315066097
version: 1
id: "123-v1-1779315066097-1779401466097"
type: "tag_rule_score"
type: "tag_policy_score"
schema:
$ref: "#/components/schemas/TagRulesListResponse"
description: OK
Expand Down Expand Up @@ -177356,7 +177360,7 @@ paths:
- "web"
version: 1
id: "123"
type: "tag_rule"
type: "tag_policy"
schema:
$ref: "#/components/schemas/TagRuleResponse"
description: Created
Expand Down Expand Up @@ -177532,16 +177536,16 @@ paths:
score:
data:
id: "123-v1-1779315066097-1779401466097"
type: "tag_rule_score"
type: "tag_rule"
type: "tag_policy_score"
type: "tag_policy"
included:
- attributes:
score: 80
ts_end: 1779401466097
ts_start: 1779315066097
version: 1
id: "123-v1-1779315066097-1779401466097"
type: "tag_rule_score"
type: "tag_policy_score"
schema:
$ref: "#/components/schemas/TagRuleResponse"
description: OK
Expand Down Expand Up @@ -177641,7 +177645,7 @@ paths:
- "web"
version: 2
id: "123"
type: "tag_rule"
type: "tag_policy"
schema:
$ref: "#/components/schemas/TagRuleResponse"
description: OK
Expand Down Expand Up @@ -177731,7 +177735,7 @@ paths:
ts_start: 1779315066097
version: 1
id: "123-v1-1779315066097-1779401466097"
type: "tag_rule_score"
type: "tag_policy_score"
schema:
$ref: "#/components/schemas/TagRuleScoreResponse"
description: OK
Expand Down
4 changes: 2 additions & 2 deletions packages/datadog-api-client-v2/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9962,8 +9962,8 @@ const enumsMap: { [key: string]: any[] } = {
TagIndexingRuleType: ["tag_indexing_rules"],
TagRuleCreateType: ["surfacing"],
TagRuleInclude: ["score"],
TagRuleResourceType: ["tag_rule"],
TagRuleScoreResourceType: ["tag_rule_score"],
TagRuleResourceType: ["tag_rule", "tag_policy"],
TagRuleScoreResourceType: ["tag_rule_score", "tag_policy_score"],
TagRuleSource: ["logs", "spans", "metrics", "rum", "feed"],
TagRuleType: ["blocking", "surfacing"],
TeamConnectionType: ["team_connection"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class TagRuleCreateData {
*/
"attributes": TagRuleCreateAttributes;
/**
* JSON:API resource type for a tag rule.
* JSON:API resource type for a tag rule. Responses use the legacy `tag_policy` value.
*/
"type": TagRuleResourceType;

Expand Down
2 changes: 1 addition & 1 deletion packages/datadog-api-client-v2/models/TagRuleData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class TagRuleData {
*/
"relationships"?: TagRuleRelationships;
/**
* JSON:API resource type for a tag rule.
* JSON:API resource type for a tag rule. Responses use the legacy `tag_policy` value.
*/
"type": TagRuleResourceType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* JSON:API resource type for a tag rule.
* JSON:API resource type for a tag rule. Responses use the legacy `tag_policy` value.
*/

export type TagRuleResourceType = typeof TAG_RULE | UnparsedObject;
export type TagRuleResourceType =
| typeof TAG_RULE
| typeof TAG_POLICY
| UnparsedObject;
export const TAG_RULE = "tag_rule";
export const TAG_POLICY = "tag_policy";
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class TagRuleScoreData {
*/
"id": string;
/**
* JSON:API resource type for a tag rule compliance score.
* JSON:API resource type for a tag rule compliance score. Responses use the legacy `tag_policy_score` value.
*/
"type": TagRuleScoreResourceType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class TagRuleScoreRelationshipData {
*/
"id": string;
/**
* JSON:API resource type for a tag rule compliance score.
* JSON:API resource type for a tag rule compliance score. Responses use the legacy `tag_policy_score` value.
*/
"type": TagRuleScoreResourceType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* JSON:API resource type for a tag rule compliance score.
* JSON:API resource type for a tag rule compliance score. Responses use the legacy `tag_policy_score` value.
*/

export type TagRuleScoreResourceType = typeof TAG_RULE_SCORE | UnparsedObject;
export type TagRuleScoreResourceType =
| typeof TAG_RULE_SCORE
| typeof TAG_POLICY_SCORE
| UnparsedObject;
export const TAG_RULE_SCORE = "tag_rule_score";
export const TAG_POLICY_SCORE = "tag_policy_score";
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class TagRuleUpdateData {
*/
"id": string;
/**
* JSON:API resource type for a tag rule.
* JSON:API resource type for a tag rule. Responses use the legacy `tag_policy` value.
*/
"type": TagRuleResourceType;

Expand Down
Loading