/** * Dynatrace Configuration API * Documentation of the Dynatrace Configuration API. Refer to the [help page](https://www.dynatrace.com/support/help/shortlink/config-api) to read about use-cases and examples. Notes about compatibility: * Operations marked as early adopter or preview may be changed in non-compatible ways, although we try to avoid this. * We may add new enum constants without incrementing the API version; thus, clients need to handle unknown enum constants gracefully. * * The version of the OpenAPI document: 1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { RequestFile } from '../api'; import { NotificationConfig } from './notificationConfig'; import { ServiceNowNotificationConfigAllOf } from './serviceNowNotificationConfigAllOf'; /** * Configuration of the ServiceNow notification. */ export class ServiceNowNotificationConfig extends NotificationConfig { /** * The ServiceNow instance identifier. It refers to the first part of your own ServiceNow URL. This field is mutually exclusive with the **url** field. You can only use one of them. */ 'instanceName'?: string; /** * The URL of the on-premise ServiceNow installation. This field is mutually exclusive with the **instanceName** field. You can only use one of them. */ 'url'?: string; /** * The username of the ServiceNow account. Make sure that your user account has the `rest_service`, `web_request_admin`, and `x_dynat_ruxit.Integration` roles. */ 'username': string; /** * The username to the ServiceNow account */ 'password'?: string; /** * The content of the ServiceNow description. You can use the following placeholders: * `{ImpactedEntity}`: The entity impacted by the problem or *X* impacted entities. * `{PID}`: The ID of the reported problem. * `{ProblemDetailsHTML}`: All problem event details, including root cause, as an HTML-formatted string. * `{ProblemID}`: The display number of the reported problem. * `{ProblemImpact}`: The [impact level](https://www.dynatrace.com/support/help/shortlink/impact-analysis) of the problem. Possible values are `APPLICATION`, `SERVICE`, and `INFRASTRUCTURE`. * `{ProblemSeverity}`: The [severity level](https://www.dynatrace.com/support/help/shortlink/event-types) of the problem. Possible values are `AVAILABILITY`, `ERROR`, `PERFORMANCE`, `RESOURCE_CONTENTION`, and `CUSTOM_ALERT`. * `{ProblemTitle}`: A short description of the problem. * `{ProblemURL}`: The URL of the problem within Dynatrace. * `{State}`: The state of the problem. Possible values are `OPEN` and `RESOLVED`. If the problem has been merged into another problem, it has the `MERGED` value. * `{Tags}`: The list of tags that are defined for all impacted entities, separated by commas. */ 'message': string; /** * Send incidents into ServiceNow ITSM (`true`). */ 'sendIncidents': boolean; /** * Send events into ServiceNow ITOM (`true`). */ 'sendEvents': boolean; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "instanceName", "baseName": "instanceName", "type": "string" }, { "name": "url", "baseName": "url", "type": "string" }, { "name": "username", "baseName": "username", "type": "string" }, { "name": "password", "baseName": "password", "type": "string" }, { "name": "message", "baseName": "message", "type": "string" }, { "name": "sendIncidents", "baseName": "sendIncidents", "type": "boolean" }, { "name": "sendEvents", "baseName": "sendEvents", "type": "boolean" } ]; static getAttributeTypeMap() { return super.getAttributeTypeMap().concat(ServiceNowNotificationConfig.attributeTypeMap); } } export namespace ServiceNowNotificationConfig { }