-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OAS] Add closeIncident subaction for run connector API (#175267)
- Loading branch information
Showing
4 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...lugins/actions/docs/openapi/components/schemas/run_connector_subaction_closeincident.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
title: The closeIncident subaction | ||
type: object | ||
required: | ||
- subAction | ||
- subActionParams | ||
description: The `closeIncident` subaction for ServiceNow ITSM connectors. | ||
properties: | ||
subAction: | ||
type: string | ||
description: The action to test. | ||
enum: | ||
- closeIncident | ||
subActionParams: | ||
type: object | ||
required: | ||
- incident | ||
properties: | ||
incident: | ||
type: object | ||
anyOf: | ||
- required: [correlation_id] | ||
- required: [externalId] | ||
properties: | ||
correlation_id: | ||
type: ['null', string] | ||
description: > | ||
An identifier that is assigned to the incident when it is created by the connector. | ||
NOTE: If you use the default value and the rule generates multiple alerts that use the same alert IDs, the latest open incident for this correlation ID is closed unless you specify the external ID. | ||
maxLength: 100 | ||
default: '{{rule.id}}:{{alert.id}}' | ||
externalId: | ||
type: ['null', string] | ||
description: The unique identifier (`incidentId`) for the incident in ServiceNow. | ||
|