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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | 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
getTsaAnalysisResultTsaAnalysisResultType
TsaAnalysisResultTypeObject type. Result of a TSA analysis query.
| Field | Type | Description |
|---|---|---|
status | TsaAnalysisStatus! | Status of the TSA analysis: NOT_STARTED, IN_PROGRESS, or COMPLETED |
conversationData | GenericScalar | Complete conversation state values from the thread history |
threadId | String | LangGraph thread ID if one exists |
runId | String | LangGraph run ID for feedback submission. Available when status is COMPLETED. |
analysisRunId | String | Run 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. |
rootCauseTldr | String | One-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. |
suggestedFixTldr | String | One-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
TsaAnalysisStatusEnum type. Status of TSA analysis for an alert.
| Value | Description |
|---|---|
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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | UUID of the open alert |
Returns
MarkTsaAnalysisWatched
Example
mutation MarkTsaAnalysisWatched($alertId: UUID!) {
markTsaAnalysisWatched(alertId: $alertId) {
success
}
}Types used only by markTsaAnalysisWatched
markTsaAnalysisWatchedMarkTsaAnalysisWatched
MarkTsaAnalysisWatchedObject type. Record that the caller has an alert open while its Troubleshooting Agent run streams.
| Field | Type | Description |
|---|---|---|
success | Boolean! | Always true |
Related types
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
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | 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
startTsaAnalysisStartTsaAnalysis
StartTsaAnalysisObject 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.
| Field | Type | Description |
|---|---|---|
success | Boolean! | Whether the TSA analysis was successfully started |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
