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
Example
query GetTroubleshootingAgentConfig {
getTroubleshootingAgentConfig {
maxRunsPerMonth
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
alertId | UUID | Alert 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
getTsaAvailabilityDenialReason
DenialReasonEnum type.
| Value | Description |
|---|---|
TROUBLESHOOTING_AGENT_OFF | |
TSA_FEATURE_FLAG_OFF | |
ENTITLEMENTS | |
INVALID_USER | |
MONTHLY_USAGE_LIMIT_REACHED | |
MONTHLY_RUN_LIMIT_REACHED | |
USER_NOT_PERMITTED | |
GUARDRAIL_REACHED |
TSAAvailability
TSAAvailabilityObject type.
| Field | Type | Description |
|---|---|---|
enabled | Boolean | If true, the Troubleshooting Agent is available to the user/account |
reasons | [DenialReason] | Reasons if Troubleshooting Agent not available |
spendGuardrailReachedNotice | SpendGuardrailReachedNotice | The 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 |
monthlyFreeLimit | Int! | Fixed number of free investigations per calendar month (UTC) enforced when the account is restricted to free usage. |
monthlyRunLimit | Int | Effective 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. |
monthlyRunCount | Int! | Investigations this calendar month (UTC) that count against the monthly limit. |
remainingMonthlyRuns | Int | Investigations left this month (UTC) against the effective limit (never negative); null when the account is unrestricted. |
autoTroubleshootThreshold | TsaAutomationThreshold! | The account-level auto-troubleshoot threshold. Domain and monitor overrides can differ. Unlike getTriageAutomationConfig, readable by anyone who can see alerts. |
autoTriageEnabled | Boolean! | 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
| Argument | Type | Description |
|---|---|---|
alertType | AlertType! | |
alertSubTypes | [AlertSubType]! |
Returns
Boolean
Example
query IsTsaAvailableForAlert($alertType: AlertType!, $alertSubTypes: [AlertSubType]!) {
isTsaAvailableForAlert(alertType: $alertType, alertSubTypes: $alertSubTypes)
}Related types
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
| Argument | Type | Description |
|---|---|---|
clearMaxRunsPerMonth | Boolean | When true, remove the monthly investigation cap (no limit). |
maxRunsPerMonth | Int | Set 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
updateTroubleshootingAgentConfigUpdateTroubleshootingAgentConfig
UpdateTroubleshootingAgentConfigObject 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.
| Field | Type | Description |
|---|---|---|
config | TroubleshootingAgentConfig! |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
