Troubleshooting agent (GraphQL)

Related queries and mutations in AI features. Each has its own section.

Queries

getTsaAnalysisResult (query)

getTsaAnalysisResult 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

Get TSA analysis result for an alert

Arguments

ArgumentTypeDescription
alertIdUUID!UUID of the alert to get TSA analysis result for

Returns

TsaAnalysisResultType

Example

query GetTsaAnalysisResult($alertId: UUID!) {
  getTsaAnalysisResult(alertId: $alertId) {
    status
    conversationData
    threadId
    runId
    analysisRunId
    rootCauseTldr
    suggestedFixTldr
    missingConnectors
  }
}

Types used only by getTsaAnalysisResult

TsaAnalysisResultType

Object type. Result of a TSA analysis query.

FieldTypeDescription
statusTsaAnalysisStatus!Status of the TSA analysis: NOT_STARTED, IN_PROGRESS, or COMPLETED
conversationDataGenericScalarComplete conversation state values from the thread history
threadIdStringLangGraph thread ID if one exists
runIdStringLangGraph run ID for feedback submission. Available when status is COMPLETED.
analysisRunIdStringRun ID of the alert's latest completed analysis. Unlike runId, it doesn't change when a follow-up question is asked; compare remediation results' tsaRunId against it. Null until an analysis has completed.
rootCauseTldrStringOne-sentence root cause for the alert-page banner, from the latest available completed analysis. Retained while a follow-up is running or after it fails. Null when no banner text is available or access policy withholds the content.
suggestedFixTldrStringOne-sentence suggested next action for the alert-page banner, from the latest available completed analysis. Retained while a follow-up is running or after it fails. Null when no banner text is available or access policy withholds the content.
missingConnectors[RemediationConnector!]The integrations the latest available completed analysis says would have let it check more, each once, in the order its report names them. Empty when the report names none. Retained while a follow-up is running or after it fails. Null when no completed analysis is available, the analysis predates this field, the alert is an agent-monitor alert, or access policy withholds the content.
TsaAnalysisStatus

Enum type. Status of TSA analysis for an alert.

ValueDescription
NOT_STARTED
IN_PROGRESS
COMPLETED
FAILED

Related types

GenericScalar, RemediationConnector, UUID

Mutations

markTsaAnalysisWatched (mutation)

markTsaAnalysisWatched 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

Record that the caller has an alert open while its Troubleshooting Agent analysis runs. A run that finishes while the alert is open sends no Slack message. Call it every 15 seconds; it lapses after 45 seconds.

Arguments

ArgumentTypeDescription
alertIdUUID!UUID of the open alert

Returns

MarkTsaAnalysisWatched

Example

mutation MarkTsaAnalysisWatched($alertId: UUID!) {
  markTsaAnalysisWatched(alertId: $alertId) {
    success
  }
}

Types used only by markTsaAnalysisWatched

MarkTsaAnalysisWatched

Object type. Record that the caller has an alert open while its Troubleshooting Agent run streams.

FieldTypeDescription
successBoolean!Always true

Related types

UUID

startTsaAnalysis (mutation)

startTsaAnalysis 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

Start a TSA analysis for an alert

Arguments

ArgumentTypeDescription
alertIdUUID!UUID of the alert to start TSA analysis for

Returns

StartTsaAnalysis

Example

mutation StartTsaAnalysis($alertId: UUID!) {
  startTsaAnalysis(alertId: $alertId) {
    success
  }
}

Types used only by startTsaAnalysis

StartTsaAnalysis

Object type. Start a Troubleshooting Agent analysis for an alert. Equivalent to clicking the Troubleshoot button in a Slack alert. Returns immediately after the analysis is kicked off; poll getTsaAnalysisResult for status, thread_id, and run_id.

FieldTypeDescription
successBoolean!Whether the TSA analysis was successfully started

Related types

UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.