Related queries and mutations in AI features. Each has its own section.
Queries
getAgentActionLog (query)
getAgentActionLog 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
The action decisions AI agents made on an alert (allowed or blocked), newest first. Actions a person took in the UI are not included.
Arguments
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | UUID of the alert. |
Returns
[AgentActionLogEntry!]!
Example
query GetAgentActionLog($alertId: UUID!) {
getAgentActionLog(alertId: $alertId) {
id
agent
action
decision
reason
result
executed
targetStatus
actingFor
runReference
createdTime
updatedTime
}
}Types used only by getAgentActionLog
getAgentActionLogAgentActionLogEntry
AgentActionLogEntryObject type. One action decision an agent made on an alert.
| Field | Type | Description |
|---|---|---|
id | UUID! | The agent's id for this action. |
agent | String! | The agent that decided, e.g. triage. |
action | String! | The action, e.g. close_alert. |
decision | AgentActionDecision! | |
reason | String | Why the action was allowed or blocked. Null when this request may not read it under its sampling policy. It can hold customer text. |
result | GenericScalar | The outcome and its proof. Null when this request may not read it under its sampling policy. It can hold customer text. |
executed | Boolean! | Whether the agent carried the action out. Served under every sampling policy. |
targetStatus | String | The alert status the action set or would set, such as expected or no_action_needed. Served under every sampling policy. Null when unknown. |
actingFor | String | Display label for the user the agent acted for; null when the agent acted on its own. Returns the user's email for human users; for agent users, returns a derived display label (e.g. Bayes on <domain>) — never the agent's internal address. |
runReference | UUID | The agent run the action came from, e.g. a remediation plan's referenceUuid. |
createdTime | DateTime! | |
updatedTime | DateTime! | When the agent last wrote this action. A retry or an outcome update moves it. |
Related types
AgentActionDecision, DateTime, GenericScalar, UUID
Mutations
requestAgentBudgetIncrease (mutation)
requestAgentBudgetIncrease 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
Email the account's admins asking them to raise the given agent's monthly run limit.
Arguments
| Argument | Type | Description |
|---|---|---|
agent | BudgetLimitedAgentType! | The agent whose monthly limit the requester wants raised. |
Returns
RequestAgentBudgetIncrease
Example
mutation RequestAgentBudgetIncrease($agent: BudgetLimitedAgentType!) {
requestAgentBudgetIncrease(agent: $agent) {
success
}
}Types used only by requestAgentBudgetIncrease
requestAgentBudgetIncreaseBudgetLimitedAgentType
BudgetLimitedAgentTypeEnum type. An agent whose monthly run budget account admins can raise in the AI agents settings. TROUBLESHOOTING: the troubleshooting agent, which investigates alerts on demand. TRIAGE: the triage agent, which scores and prioritizes alerts.
| Value | Description |
|---|---|
TROUBLESHOOTING | |
TRIAGE |
RequestAgentBudgetIncrease
RequestAgentBudgetIncreaseObject type. Email the account's admins asking them to raise an agent's monthly limit.
Succeeds only when the account is currently blocked by that agent's monthly
limit. Fails with AGENT_NOT_LIMITED when the account is unrestricted or
under its limit, and with NO_ADMINS when the account has no admins to
notify.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
requestAutoTroubleshoot (mutation)
requestAutoTroubleshoot 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
Email the account's admins asking them to turn on auto-troubleshoot.
Arguments
| Argument | Type | Description |
|---|---|---|
threshold | AutoTroubleshootRequestThreshold! | The alerts the requester wants troubleshot automatically. |
Returns
RequestAutoTroubleshoot
Example
mutation RequestAutoTroubleshoot($threshold: AutoTroubleshootRequestThreshold!) {
requestAutoTroubleshoot(threshold: $threshold) {
success
}
}Types used only by requestAutoTroubleshoot
requestAutoTroubleshootAutoTroubleshootRequestThreshold
AutoTroubleshootRequestThresholdEnum type. The auto-troubleshoot threshold a user may ask admins to turn on. HIGH: troubleshoot alerts triaged High. HIGH_MEDIUM: troubleshoot alerts triaged High or Medium.
| Value | Description |
|---|---|
HIGH | |
HIGH_MEDIUM |
RequestAutoTroubleshoot
RequestAutoTroubleshootObject type. Email the account's admins asking them to turn on auto-troubleshoot.
Any account member may call it. Fails with AUTO_TROUBLESHOOT_ALREADY_ON when the
account-level threshold is not OFF, and with NO_ADMINS when nobody on the account can
change it. A repeat within 24 hours succeeds but sends nothing new.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
