Related queries and mutations in AI features. Each has its own section.
Queries
getAgentActionPolicies (query)
getAgentActionPolicies 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
Which actions agents take on their own and which they only suggest: the account-level entries, then one entry per action for each metadata domain the caller can access.
Arguments
| Argument | Type | Description |
|---|---|---|
domainIds | [UUID!] | Only return these metadata domains. Other ids are ignored, and an empty list returns all of them. The account-level entries are always returned. |
Returns
Example
query GetAgentActionPolicies {
getAgentActionPolicies {
domainId
domainName
actionType
mode
source
overrideMode
}
}Related types
getAgentActionPolicyForAlert (query)
getAgentActionPolicyForAlert 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 mode agents follow for each action on one alert. An alert in several domains gets the strictest mode across all of them.
Arguments
| Argument | Type | Description |
|---|---|---|
alertId | UUID! | ID of the alert |
Returns
[AgentActionModeForAlert!]!
Example
query GetAgentActionPolicyForAlert($alertId: UUID!) {
getAgentActionPolicyForAlert(alertId: $alertId) {
actionType
mode
}
}Types used only by getAgentActionPolicyForAlert
getAgentActionPolicyForAlertAgentActionModeForAlert
AgentActionModeForAlertObject type. The mode agents follow for one action on one alert.
| Field | Type | Description |
|---|---|---|
actionType | AgentActionType! | The action. |
mode | AgentActionMode! | The mode. |
Related types
AgentActionMode, AgentActionType, UUID
Mutations
resetAgentActionPolicy (mutation)
resetAgentActionPolicy 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
Remove an action's mode for a domain or for the account, so the next level applies. Needs a person. Agents, account service API keys and agent runs acting for a person are refused.
Arguments
| Argument | Type | Description |
|---|---|---|
actionType | AgentActionType! | The action. |
domainId | UUID | The metadata domain to reset. Omit to reset the account-level mode. |
Returns
ResetAgentActionPolicy
Example
mutation ResetAgentActionPolicy($actionType: AgentActionType!) {
resetAgentActionPolicy(actionType: $actionType) {
entries {
domainId
domainName
actionType
mode
source
overrideMode
}
}
}Types used only by resetAgentActionPolicy
resetAgentActionPolicyResetAgentActionPolicy
ResetAgentActionPolicyObject type. Remove an action's mode for a domain or the account, so the next level applies.
| Field | Type | Description |
|---|---|---|
entries | [AgentActionPolicyEntry!]! | The scope's entries after the change. |
Related types
AgentActionPolicyEntry, AgentActionType, UUID
setAgentActionPolicy (mutation)
setAgentActionPolicy 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
Set whether agents take an action themselves or only suggest it, for a domain or for the account. Needs a person. Agents, account service API keys and agent runs acting for a person are refused.
Arguments
| Argument | Type | Description |
|---|---|---|
actionType | AgentActionType! | The action. |
domainId | UUID | The metadata domain to set the mode for. Omit to set it for the account; domains without their own mode follow the account. |
mode | AgentActionMode! | The mode. |
Returns
SetAgentActionPolicy
Example
mutation SetAgentActionPolicy($actionType: AgentActionType!, $mode: AgentActionMode!) {
setAgentActionPolicy(actionType: $actionType, mode: $mode) {
entries {
domainId
domainName
actionType
mode
source
overrideMode
}
}
}Types used only by setAgentActionPolicy
setAgentActionPolicySetAgentActionPolicy
SetAgentActionPolicyObject type. Set whether agents take an action themselves or only suggest it.
| Field | Type | Description |
|---|---|---|
entries | [AgentActionPolicyEntry!]! | The scope's entries after the change. |
Related types
AgentActionMode, AgentActionPolicyEntry, AgentActionType, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
