Related queries and mutations in AI features. Each has its own section.
Queries
getAlertIssue (query)
getAlertIssue is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
One alert issue with its alerts and agent actions. An issue merged into another returns the issue it was merged into. Null when the caller may not read any of that issue's alerts.
Arguments
| Argument | Type | Description |
|---|---|---|
issueId | UUID! | The issue. |
Returns
Example
query GetAlertIssue($issueId: UUID!) {
getAlertIssue(issueId: $issueId) {
issueId
cause
status
disposition
dispositionReason
dispositionNote
mcons
monitorUuids
owner
fixConfirmedTime
fixSource
fixUrl
createdTime
lastAlertTime
alertCount
}
}Related types
getAlertIssues (query)
getAlertIssues is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Alert issues: root causes that alerts share, newest alert first. The filters combine with OR; with none, every issue in the status group is listed. Only issues with an alert the caller may read are listed.
Arguments
| Argument | Type | Description |
|---|---|---|
status | AlertIssueStatusGroup | Which issues to list. OPEN by default. Default: "OPEN". |
mcons | [String] | Keep issues with an alert on one of these assets. |
monitorUuids | [UUID] | Keep issues with an alert raised by one of these monitors. |
alertId | UUID | Keep the issue of this alert, or of the alert it was merged into. |
first | Int | Issues on this page, from 1 to 100. 25 by default. Default: 25. |
after | String | endCursor of the previous page. |
Returns
AlertIssueConnection!
Example
query GetAlertIssues {
getAlertIssues {
nodes {
issueId
cause
status
disposition
dispositionReason
dispositionNote
mcons
monitorUuids
owner
fixConfirmedTime
fixSource
fixUrl
createdTime
lastAlertTime
alertCount
}
}
}Types used only by getAlertIssues
getAlertIssuesAlertIssueConnection
AlertIssueConnectionObject type. One page of alert issues.
| Field | Type | Description |
|---|---|---|
nodes | [AlertIssue!]! | This page's issues, newest lastAlertTime first. |
pageInfo | AlertIssuePageInfo! |
AlertIssuePageInfo
AlertIssuePageInfoObject type. Forward-only pagination info for getAlertIssues.
| Field | Type | Description |
|---|---|---|
hasNextPage | Boolean! | Whether more issues follow this page. |
endCursor | String | Cursor resuming after this page's last node; null on an empty page. |
AlertIssueStatusGroup
AlertIssueStatusGroupEnum type. Which alert issues to list. OPEN: open or in progress, and not ignored. PAST: fixed or ignored. ALL: every issue.
| Value | Description |
|---|---|
OPEN | |
PAST | |
ALL |
Related types
Mutations
confirmAlertIssueFix (mutation)
confirmAlertIssueFix is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Confirm that an alert issue is fixed. The issue is in progress until no alert follows the fix for 7 days, then fixed. A confirmation while an earlier fix still holds keeps that fix's time. Needs permission to edit at least one of the issue's alerts.
Arguments
| Argument | Type | Description |
|---|---|---|
fixUrl | String | An https link to the fix, such as a pull request or a ticket, at most 512 characters. When omitted, a new fix has no link and a fix that still holds keeps its link. |
issueId | UUID! | The issue. |
Returns
ConfirmAlertIssueFix
Example
mutation ConfirmAlertIssueFix($issueId: UUID!) {
confirmAlertIssueFix(issueId: $issueId) {
issue {
issueId
cause
status
disposition
dispositionReason
dispositionNote
mcons
monitorUuids
owner
fixConfirmedTime
fixSource
fixUrl
createdTime
lastAlertTime
alertCount
}
}
}Types used only by confirmAlertIssueFix
confirmAlertIssueFixConfirmAlertIssueFix
ConfirmAlertIssueFixObject type. Record that a person confirmed an alert issue's fix.
| Field | Type | Description |
|---|---|---|
issue | AlertIssue | The issue changed: the issue it was merged into, if any. |
Related types
setAlertIssueDisposition (mutation)
setAlertIssueDisposition is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Ignore an alert issue for a reason, or restore it. Ignoring an ignored issue replaces its reason and note. Needs permission to edit at least one of the issue's alerts.
Arguments
| Argument | Type | Description |
|---|---|---|
disposition | AlertIssueDisposition! | IGNORED to ignore the issue, NONE to restore it. |
dispositionNote | String | The person's own words on why, at most 500 characters. Only for IGNORED. |
issueId | UUID! | The issue. |
reason | AlertIssueDispositionReason | Why. Required for IGNORED; refused for NONE. |
Returns
SetAlertIssueDisposition
Example
mutation SetAlertIssueDisposition($disposition: AlertIssueDisposition!, $issueId: UUID!) {
setAlertIssueDisposition(disposition: $disposition, issueId: $issueId) {
issue {
issueId
cause
status
disposition
dispositionReason
dispositionNote
mcons
monitorUuids
owner
fixConfirmedTime
fixSource
fixUrl
createdTime
lastAlertTime
alertCount
}
}
}Types used only by setAlertIssueDisposition
setAlertIssueDispositionSetAlertIssueDisposition
SetAlertIssueDispositionObject type. Ignore an alert issue for a reason, or restore it.
| Field | Type | Description |
|---|---|---|
issue | AlertIssue | The issue changed: the issue it was merged into, if any. |
Related types
AlertIssue, AlertIssueDisposition, AlertIssueDispositionReason, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
