Alert issues (GraphQL)

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

ArgumentTypeDescription
issueIdUUID!The issue.

Returns

AlertIssue

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

AlertIssue, UUID

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

ArgumentTypeDescription
statusAlertIssueStatusGroupWhich 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.
alertIdUUIDKeep the issue of this alert, or of the alert it was merged into.
firstIntIssues on this page, from 1 to 100. 25 by default. Default: 25.
afterStringendCursor 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

AlertIssueConnection

Object type. One page of alert issues.

FieldTypeDescription
nodes[AlertIssue!]!This page's issues, newest lastAlertTime first.
pageInfoAlertIssuePageInfo!
AlertIssuePageInfo

Object type. Forward-only pagination info for getAlertIssues.

FieldTypeDescription
hasNextPageBoolean!Whether more issues follow this page.
endCursorStringCursor resuming after this page's last node; null on an empty page.
AlertIssueStatusGroup

Enum type. Which alert issues to list. OPEN: open or in progress, and not ignored. PAST: fixed or ignored. ALL: every issue.

ValueDescription
OPEN
PAST
ALL

Related types

AlertIssue, UUID

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

ArgumentTypeDescription
fixUrlStringAn 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.
issueIdUUID!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

ConfirmAlertIssueFix

Object type. Record that a person confirmed an alert issue's fix.

FieldTypeDescription
issueAlertIssueThe issue changed: the issue it was merged into, if any.

Related types

AlertIssue, UUID

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

ArgumentTypeDescription
dispositionAlertIssueDisposition!IGNORED to ignore the issue, NONE to restore it.
dispositionNoteStringThe person's own words on why, at most 500 characters. Only for IGNORED.
issueIdUUID!The issue.
reasonAlertIssueDispositionReasonWhy. 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

SetAlertIssueDisposition

Object type. Ignore an alert issue for a reason, or restore it.

FieldTypeDescription
issueAlertIssueThe 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.