Skip to content
Merged
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
124 changes: 110 additions & 14 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37239,7 +37239,7 @@ components:
- data
type: object
DueDateRuleDataCreate:
description: The data object for a due date rule create or update request.
description: The data object for a due date rule create request.
properties:
attributes:
$ref: "#/components/schemas/DueDateRuleAttributesCreate"
Expand All @@ -37266,6 +37266,23 @@ components:
- type
- attributes
type: object
DueDateRuleDataUpdate:
description: The data object for a due date rule update request. The `id` must match the `rule_id` path parameter.
properties:
attributes:
$ref: "#/components/schemas/DueDateRuleAttributesCreate"
id:
description: The ID of the due date rule to update.
example: "00000000-0000-0000-0000-000000000000"
format: uuid
type: string
type:
$ref: "#/components/schemas/DueDateRuleType"
required:
- id
- type
- attributes
type: object
DueDateRuleReorderData:
description: The ordered list of all due date rules. Every rule must be included.
items:
Expand All @@ -37286,7 +37303,15 @@ components:
- id
type: object
DueDateRuleReorderRequest:
description: The body of the due date rule reorder request.
description: The body of a due date rule reorder request.
properties:
data:
$ref: "#/components/schemas/DueDateRuleReorderData"
required:
- data
type: object
DueDateRuleReorderResponse:
description: The response of a due date rule reorder request.
properties:
data:
$ref: "#/components/schemas/DueDateRuleReorderData"
Expand All @@ -37313,7 +37338,7 @@ components:
description: The body of a due date rule update request.
properties:
data:
$ref: "#/components/schemas/DueDateRuleDataCreate"
$ref: "#/components/schemas/DueDateRuleDataUpdate"
required:
- data
type: object
Expand Down Expand Up @@ -73704,7 +73729,7 @@ components:
- data
type: object
MuteRuleDataCreate:
description: The data object for a mute rule create or update request.
description: The data object for a mute rule create request.
properties:
attributes:
$ref: "#/components/schemas/MuteRuleAttributesCreate"
Expand All @@ -73731,6 +73756,23 @@ components:
- type
- attributes
type: object
MuteRuleDataUpdate:
description: The data object for a mute rule update request. The `id` must match the `rule_id` path parameter.
properties:
attributes:
$ref: "#/components/schemas/MuteRuleAttributesCreate"
id:
description: The ID of the mute rule to update.
example: "00000000-0000-0000-0000-000000000000"
format: uuid
type: string
type:
$ref: "#/components/schemas/MuteRuleType"
required:
- id
- type
- attributes
type: object
MuteRuleReorderData:
description: The ordered list of all mute rules. Every rule must be included.
items:
Expand All @@ -73751,7 +73793,15 @@ components:
- id
type: object
MuteRuleReorderRequest:
description: The body of the mute rule reorder request.
description: The body of a mute rule reorder request.
properties:
data:
$ref: "#/components/schemas/MuteRuleReorderData"
required:
- data
type: object
MuteRuleReorderResponse:
description: The response of a mute rule reorder request.
properties:
data:
$ref: "#/components/schemas/MuteRuleReorderData"
Expand All @@ -73778,7 +73828,7 @@ components:
description: The body of a mute rule update request.
properties:
data:
$ref: "#/components/schemas/MuteRuleDataCreate"
$ref: "#/components/schemas/MuteRuleDataUpdate"
required:
- data
type: object
Expand Down Expand Up @@ -110641,7 +110691,7 @@ components:
- data
type: object
SeverityModifierRuleDataCreate:
description: The data object for a severity modifier rule create or update request.
description: The data object for a severity modifier rule create request.
properties:
attributes:
$ref: "#/components/schemas/SeverityModifierRuleAttributesCreate"
Expand All @@ -110668,6 +110718,23 @@ components:
- type
- attributes
type: object
SeverityModifierRuleDataUpdate:
description: The data object for a severity modifier rule update request. The `id` must match the `rule_id` path parameter.
properties:
attributes:
$ref: "#/components/schemas/SeverityModifierRuleAttributesCreate"
id:
description: The ID of the severity modifier rule to update.
example: "00000000-0000-0000-0000-000000000000"
format: uuid
type: string
type:
$ref: "#/components/schemas/SeverityModifierRuleType"
required:
- id
- type
- attributes
type: object
SeverityModifierRuleReorderData:
description: The ordered list of all severity modifier rules. Every rule must be included.
items:
Expand Down Expand Up @@ -110771,7 +110838,7 @@ components:
description: The body of a severity modifier rule update request.
properties:
data:
$ref: "#/components/schemas/SeverityModifierRuleDataCreate"
$ref: "#/components/schemas/SeverityModifierRuleDataUpdate"
required:
- data
type: object
Expand Down Expand Up @@ -123805,7 +123872,7 @@ components:
- data
type: object
TicketCreationRuleDataCreate:
description: The data object for a ticket creation rule create or update request.
description: The data object for a ticket creation rule create request.
properties:
attributes:
$ref: "#/components/schemas/TicketCreationRuleAttributesCreate"
Expand All @@ -123832,6 +123899,23 @@ components:
- type
- attributes
type: object
TicketCreationRuleDataUpdate:
description: The data object for a ticket creation rule update request. The `id` must match the `rule_id` path parameter.
properties:
attributes:
$ref: "#/components/schemas/TicketCreationRuleAttributesCreate"
id:
description: The ID of the ticket creation rule to update.
example: "00000000-0000-0000-0000-000000000000"
format: uuid
type: string
type:
$ref: "#/components/schemas/TicketCreationRuleType"
required:
- id
- type
- attributes
type: object
TicketCreationRuleReorderData:
description: The ordered list of all ticket creation rules. Every rule must be included.
items:
Expand All @@ -123852,7 +123936,15 @@ components:
- id
type: object
TicketCreationRuleReorderRequest:
description: The body of the ticket creation rule reorder request.
description: The body of a ticket creation rule reorder request.
properties:
data:
$ref: "#/components/schemas/TicketCreationRuleReorderData"
required:
- data
type: object
TicketCreationRuleReorderResponse:
description: The response of a ticket creation rule reorder request.
properties:
data:
$ref: "#/components/schemas/TicketCreationRuleReorderData"
Expand All @@ -123879,7 +123971,7 @@ components:
description: The body of a ticket creation rule update request.
properties:
data:
$ref: "#/components/schemas/TicketCreationRuleDataCreate"
$ref: "#/components/schemas/TicketCreationRuleDataUpdate"
required:
- data
type: object
Expand Down Expand Up @@ -205416,7 +205508,7 @@ paths:
- id: "11111111-1111-1111-1111-111111111111"
type: due_date_rules
schema:
$ref: "#/components/schemas/DueDateRuleReorderRequest"
$ref: "#/components/schemas/DueDateRuleReorderResponse"
description: Successfully reordered the due date rules
"400":
content:
Expand Down Expand Up @@ -205589,6 +205681,7 @@ paths:
finding_types:
- misconfiguration
query: "env:prod"
id: "00000000-0000-0000-0000-000000000000"
type: due_date_rules
schema:
$ref: "#/components/schemas/DueDateRuleUpdateRequest"
Expand Down Expand Up @@ -206300,7 +206393,7 @@ paths:
- id: "11111111-1111-1111-1111-111111111111"
type: mute_rules
schema:
$ref: "#/components/schemas/MuteRuleReorderRequest"
$ref: "#/components/schemas/MuteRuleReorderResponse"
description: Successfully reordered the mute rules
"400":
content:
Expand Down Expand Up @@ -206463,6 +206556,7 @@ paths:
finding_types:
- misconfiguration
query: "env:dev"
id: "00000000-0000-0000-0000-000000000000"
type: mute_rules
schema:
$ref: "#/components/schemas/MuteRuleUpdateRequest"
Expand Down Expand Up @@ -206915,6 +207009,7 @@ paths:
finding_types:
- misconfiguration
query: "env:dev"
id: "00000000-0000-0000-0000-000000000000"
type: severity_modifier_rules
schema:
$ref: "#/components/schemas/SeverityModifierRuleUpdateRequest"
Expand Down Expand Up @@ -207190,7 +207285,7 @@ paths:
- id: "11111111-1111-1111-1111-111111111111"
type: ticket_creation_rules
schema:
$ref: "#/components/schemas/TicketCreationRuleReorderRequest"
$ref: "#/components/schemas/TicketCreationRuleReorderResponse"
description: Successfully reordered the ticket creation rules
"400":
content:
Expand Down Expand Up @@ -207355,6 +207450,7 @@ paths:
finding_types:
- misconfiguration
query: "env:prod"
id: "00000000-0000-0000-0000-000000000000"
type: ticket_creation_rules
schema:
$ref: "#/components/schemas/TicketCreationRuleUpdateRequest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
VALID_DUE_DATE_RULE_DATA_ID = ENV["VALID_DUE_DATE_RULE_DATA_ID"]

body = DatadogAPIClient::V2::DueDateRuleUpdateRequest.new({
data: DatadogAPIClient::V2::DueDateRuleDataCreate.new({
data: DatadogAPIClient::V2::DueDateRuleDataUpdate.new({
attributes: DatadogAPIClient::V2::DueDateRuleAttributesCreate.new({
action: DatadogAPIClient::V2::DueDateRuleAction.new({
due_days_per_severity: [
Expand All @@ -31,6 +31,7 @@
query: "env:staging",
}),
}),
id: VALID_DUE_DATE_RULE_DATA_ID,
type: DatadogAPIClient::V2::DueDateRuleType::DUE_DATE_RULES,
}),
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
VALID_MUTE_RULE_DATA_ID = ENV["VALID_MUTE_RULE_DATA_ID"]

body = DatadogAPIClient::V2::MuteRuleUpdateRequest.new({
data: DatadogAPIClient::V2::MuteRuleDataCreate.new({
data: DatadogAPIClient::V2::MuteRuleDataUpdate.new({
attributes: DatadogAPIClient::V2::MuteRuleAttributesCreate.new({
action: DatadogAPIClient::V2::MuteRuleAction.new({
reason: DatadogAPIClient::V2::MuteReason::FALSE_POSITIVE,
Expand All @@ -25,6 +25,7 @@
query: "env:staging",
}),
}),
id: VALID_MUTE_RULE_DATA_ID,
type: DatadogAPIClient::V2::MuteRuleType::MUTE_RULES,
}),
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
VALID_SEVERITY_MODIFIER_RULE_DATA_ID = ENV["VALID_SEVERITY_MODIFIER_RULE_DATA_ID"]

body = DatadogAPIClient::V2::SeverityModifierRuleUpdateRequest.new({
data: DatadogAPIClient::V2::SeverityModifierRuleDataCreate.new({
data: DatadogAPIClient::V2::SeverityModifierRuleDataUpdate.new({
attributes: DatadogAPIClient::V2::SeverityModifierRuleAttributesCreate.new({
action: DatadogAPIClient::V2::SeverityModifierRuleSetAction.new({
description: "Lower severity for dev environment noise",
Expand All @@ -27,6 +27,7 @@
query: "env:prod team:platform",
}),
}),
id: VALID_SEVERITY_MODIFIER_RULE_DATA_ID,
type: DatadogAPIClient::V2::SeverityModifierRuleType::SEVERITY_MODIFIER_RULES,
}),
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
VALID_TICKET_CREATION_RULE_DATA_ID = ENV["VALID_TICKET_CREATION_RULE_DATA_ID"]

body = DatadogAPIClient::V2::TicketCreationRuleUpdateRequest.new({
data: DatadogAPIClient::V2::TicketCreationRuleDataCreate.new({
data: DatadogAPIClient::V2::TicketCreationRuleDataUpdate.new({
attributes: DatadogAPIClient::V2::TicketCreationRuleAttributesCreate.new({
action: DatadogAPIClient::V2::TicketCreationRuleAction.new({
max_tickets_per_day: 5,
Expand All @@ -27,6 +27,7 @@
query: "env:staging",
}),
}),
id: VALID_TICKET_CREATION_RULE_DATA_ID,
type: DatadogAPIClient::V2::TicketCreationRuleType::TICKET_CREATION_RULES,
}),
})
Expand Down
Loading
Loading