Troubleshooting agent (GraphQL)

Related queries and mutations in Users, accounts and access. Each has its own section.

Queries

getTroubleshootingAgentConfig (query)

getTroubleshootingAgentConfig is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get the caller's account Troubleshooting Agent settings (the admin-set monthly investigation cap).

Returns

TroubleshootingAgentConfig!

Example

query GetTroubleshootingAgentConfig {
  getTroubleshootingAgentConfig {
    maxRunsPerMonth
  }
}

Related types

TroubleshootingAgentConfig

getTsaAvailability (query)

getTsaAvailability is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get Troubleshooting Agent availability

Arguments

ArgumentTypeDescription
alertIdUUIDAlert the run would troubleshoot. When set, a reached monthly limit is left out for an alert in a domain with an active teammate, which has no monthly limit.

Returns

TSAAvailability

Example

query GetTsaAvailability {
  getTsaAvailability {
    enabled
    reasons
    unsupportedAlertTypes
    supportedAlertSubTypes
    monthlyFreeLimit
    monthlyRunLimit
    monthlyRunCount
    remainingMonthlyRuns
    autoTroubleshootThreshold
    autoTriageEnabled
  }
}

Types used only by getTsaAvailability

DenialReason

Enum type.

ValueDescription
TROUBLESHOOTING_AGENT_OFF
TSA_FEATURE_FLAG_OFF
ENTITLEMENTS
INVALID_USER
MONTHLY_USAGE_LIMIT_REACHED
MONTHLY_RUN_LIMIT_REACHED
USER_NOT_PERMITTED
GUARDRAIL_REACHED
TSAAvailability

Object type.

FieldTypeDescription
enabledBooleanIf true, the Troubleshooting Agent is available to the user/account
reasons[DenialReason]Reasons if Troubleshooting Agent not available
spendGuardrailReachedNoticeSpendGuardrailReachedNoticeThe spend guardrail that blocks troubleshooting. Null when none does, or when it is on a domain whose alerts and monitors the caller can't see.
unsupportedAlertTypes[AlertType]Alert types supported by Troubleshooting Agent
supportedAlertSubTypes[AlertSubType]Alert sub types supported by Troubleshooting Agent
monthlyFreeLimitInt!Fixed number of free investigations per calendar month (UTC) enforced when the account is restricted to free usage.
monthlyRunLimitIntEffective monthly limit on investigations in force: the free-usage ceiling when restricted to free usage, the admin-set cap when one is configured, or null when the account is unrestricted. Automated and user-initiated investigations both count against it.
monthlyRunCountInt!Investigations this calendar month (UTC) that count against the monthly limit.
remainingMonthlyRunsIntInvestigations left this month (UTC) against the effective limit (never negative); null when the account is unrestricted.
autoTroubleshootThresholdTsaAutomationThreshold!The account-level auto-troubleshoot threshold. Domain and monitor overrides can differ. Unlike getTriageAutomationConfig, readable by anyone who can see alerts.
autoTriageEnabledBoolean!Whether automated triage is on account-wide. Auto-troubleshoot only runs on alerts triage has prioritized.

Related types

AlertSubType, AlertType, SpendGuardrailReachedNotice, TsaAutomationThreshold, UUID

isTsaAvailableForAlert (query)

isTsaAvailableForAlert is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Check if TSA is available for a specific alert type and subtypes

Arguments

ArgumentTypeDescription
alertTypeAlertType!
alertSubTypes[AlertSubType]!

Returns

Boolean

Example

query IsTsaAvailableForAlert($alertType: AlertType!, $alertSubTypes: [AlertSubType]!) {
  isTsaAvailableForAlert(alertType: $alertType, alertSubTypes: $alertSubTypes)
}

Related types

AlertSubType, AlertType

Mutations

updateTroubleshootingAgentConfig (mutation)

updateTroubleshootingAgentConfig is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set or clear the account's Troubleshooting Agent monthly investigation cap.

Arguments

ArgumentTypeDescription
clearMaxRunsPerMonthBooleanWhen true, remove the monthly investigation cap (no limit).
maxRunsPerMonthIntSet the monthly investigation cap (at least 1). Automated and user-initiated investigations both count against it.

Returns

UpdateTroubleshootingAgentConfig

Example

mutation UpdateTroubleshootingAgentConfig {
  updateTroubleshootingAgentConfig {
    config {
      maxRunsPerMonth
    }
  }
}

Types used only by updateTroubleshootingAgentConfig

UpdateTroubleshootingAgentConfig

Object type. Set or clear the account's Troubleshooting Agent monthly investigation cap.

Provide maxRunsPerMonth (at least 1) to set the cap, or
clearMaxRunsPerMonth to remove it. Requires permission to manage AI agent
usage, which the Account Owner role grants.

FieldTypeDescription
configTroubleshootingAgentConfig!

Related types

TroubleshootingAgentConfig

Source: The GraphQL API reference

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