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
19 changes: 19 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120947,6 +120947,8 @@ components:
$ref: "#/components/schemas/TeamNotificationRuleAttributesMsTeams"
pagerduty:
$ref: "#/components/schemas/TeamNotificationRuleAttributesPagerduty"
servicenow:
$ref: "#/components/schemas/TeamNotificationRuleAttributesServiceNow"
slack:
$ref: "#/components/schemas/TeamNotificationRuleAttributesSlack"
type: object
Expand All @@ -120956,6 +120958,10 @@ components:
enabled:
description: Flag indicating email notification
type: boolean
recipient_email:
description: >-
Email address to notify. When omitted and email notifications are enabled, notifications are sent to all team members.
type: string
type: object
TeamNotificationRuleAttributesMsTeams:
description: MS Teams notification settings for the team
Expand All @@ -120971,6 +120977,15 @@ components:
description: Service name for PagerDuty
type: string
type: object
TeamNotificationRuleAttributesServiceNow:
description: ServiceNow notification settings for the team.
properties:
templates:
description: ServiceNow template handle names to use for notifications.
items:
type: string
type: array
type: object
TeamNotificationRuleAttributesSlack:
description: Slack notification settings for the team
properties:
Expand Down Expand Up @@ -227286,6 +227301,10 @@ paths:
- attributes:
email:
enabled: true
recipient_email: alerts@example.com
servicenow:
templates:
- incident-template
slack:
channel: test-channel
workspace: Datadog
Expand Down
1 change: 1 addition & 0 deletions packages/datadog-api-client-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9384,6 +9384,7 @@ export { TeamNotificationRuleAttributes } from "./models/TeamNotificationRuleAtt
export { TeamNotificationRuleAttributesEmail } from "./models/TeamNotificationRuleAttributesEmail";
export { TeamNotificationRuleAttributesMsTeams } from "./models/TeamNotificationRuleAttributesMsTeams";
export { TeamNotificationRuleAttributesPagerduty } from "./models/TeamNotificationRuleAttributesPagerduty";
export { TeamNotificationRuleAttributesServiceNow } from "./models/TeamNotificationRuleAttributesServiceNow";
export { TeamNotificationRuleAttributesSlack } from "./models/TeamNotificationRuleAttributesSlack";
export { TeamNotificationRuleRequest } from "./models/TeamNotificationRuleRequest";
export { TeamNotificationRuleResponse } from "./models/TeamNotificationRuleResponse";
Expand Down
3 changes: 3 additions & 0 deletions packages/datadog-api-client-v2/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5675,6 +5675,7 @@ import { TeamNotificationRuleAttributes } from "./TeamNotificationRuleAttributes
import { TeamNotificationRuleAttributesEmail } from "./TeamNotificationRuleAttributesEmail";
import { TeamNotificationRuleAttributesMsTeams } from "./TeamNotificationRuleAttributesMsTeams";
import { TeamNotificationRuleAttributesPagerduty } from "./TeamNotificationRuleAttributesPagerduty";
import { TeamNotificationRuleAttributesServiceNow } from "./TeamNotificationRuleAttributesServiceNow";
import { TeamNotificationRuleAttributesSlack } from "./TeamNotificationRuleAttributesSlack";
import { TeamNotificationRuleRequest } from "./TeamNotificationRuleRequest";
import { TeamNotificationRuleResponse } from "./TeamNotificationRuleResponse";
Expand Down Expand Up @@ -16549,6 +16550,8 @@ const typeMap: { [index: string]: any } = {
TeamNotificationRuleAttributesMsTeams: TeamNotificationRuleAttributesMsTeams,
TeamNotificationRuleAttributesPagerduty:
TeamNotificationRuleAttributesPagerduty,
TeamNotificationRuleAttributesServiceNow:
TeamNotificationRuleAttributesServiceNow,
TeamNotificationRuleAttributesSlack: TeamNotificationRuleAttributesSlack,
TeamNotificationRuleRequest: TeamNotificationRuleRequest,
TeamNotificationRuleResponse: TeamNotificationRuleResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { TeamNotificationRuleAttributesEmail } from "./TeamNotificationRuleAttributesEmail";
import { TeamNotificationRuleAttributesMsTeams } from "./TeamNotificationRuleAttributesMsTeams";
import { TeamNotificationRuleAttributesPagerduty } from "./TeamNotificationRuleAttributesPagerduty";
import { TeamNotificationRuleAttributesServiceNow } from "./TeamNotificationRuleAttributesServiceNow";
import { TeamNotificationRuleAttributesSlack } from "./TeamNotificationRuleAttributesSlack";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";
Expand All @@ -26,6 +27,10 @@ export class TeamNotificationRuleAttributes {
* PagerDuty notification settings for the team
*/
"pagerduty"?: TeamNotificationRuleAttributesPagerduty;
/**
* ServiceNow notification settings for the team.
*/
"servicenow"?: TeamNotificationRuleAttributesServiceNow;
/**
* Slack notification settings for the team
*/
Expand Down Expand Up @@ -59,6 +64,10 @@ export class TeamNotificationRuleAttributes {
baseName: "pagerduty",
type: "TeamNotificationRuleAttributesPagerduty",
},
servicenow: {
baseName: "servicenow",
type: "TeamNotificationRuleAttributesServiceNow",
},
slack: {
baseName: "slack",
type: "TeamNotificationRuleAttributesSlack",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export class TeamNotificationRuleAttributesEmail {
* Flag indicating email notification
*/
"enabled"?: boolean;
/**
* Email address to notify. When omitted and email notifications are enabled, notifications are sent to all team members.
*/
"recipientEmail"?: string;

/**
* A container for additional, undeclared properties.
Expand All @@ -35,6 +39,10 @@ export class TeamNotificationRuleAttributesEmail {
baseName: "enabled",
type: "boolean",
},
recipientEmail: {
baseName: "recipient_email",
type: "string",
},
additionalProperties: {
baseName: "additionalProperties",
type: "{ [key: string]: any; }",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/

import { AttributeTypeMap } from "../../datadog-api-client-common/util";

/**
* ServiceNow notification settings for the team.
*/
export class TeamNotificationRuleAttributesServiceNow {
/**
* ServiceNow template handle names to use for notifications.
*/
"templates"?: Array<string>;

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: { [key: string]: any };

/**
* @ignore
*/
"_unparsed"?: boolean;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
templates: {
baseName: "templates",
type: "Array<string>",
},
additionalProperties: {
baseName: "additionalProperties",
type: "{ [key: string]: any; }",
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return TeamNotificationRuleAttributesServiceNow.attributeTypeMap;
}

public constructor() {}
}
Loading