Related queries and mutations in AI features. Each has its own section.
Queries
getMonitorTuningAutoApplies (query)
getMonitorTuningAutoApplies 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
Tuning suggestions applied automatically, newest first — what changed, on which monitor, and the configuration to revert to. Account-wide unless monitorUuid is given. Entries whose monitor has been deleted are not listed.
Arguments
| Argument | Type | Description |
|---|---|---|
first | Int! | Number of items to return (page size) |
monitorUuid | UUID | When set, narrow to a single monitor. Omit for the account-wide history. |
status | MonitorTuningAutoApplyStatus | When set, filter to entries with this status. |
createdAfter | DateTime | Inclusive lower bound on the entry's creation timestamp. |
createdBefore | DateTime | Exclusive upper bound on the entry's creation timestamp. |
before | String | |
after | String | |
last | Int |
Returns
MonitorTuningAutoApplyConnection
Example
query GetMonitorTuningAutoApplies($first: Int!) {
getMonitorTuningAutoApplies(first: $first) {
totalCount
}
}Types used only by getMonitorTuningAutoApplies
getMonitorTuningAutoAppliesMonitorTuningAutoApplyConnection
MonitorTuningAutoApplyConnectionObject type.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [MonitorTuningAutoApplyEdge]! | Contains the nodes in this connection. |
totalCount | Int! | Total number of entries matching the query. |
MonitorTuningAutoApplyEdge
MonitorTuningAutoApplyEdgeObject type. A Relay edge containing a MonitorTuningAutoApply and its cursor.
| Field | Type | Description |
|---|---|---|
node | MonitorTuningAutoApply | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
Related types
DateTime, MonitorTuningAutoApply, MonitorTuningAutoApplyStatus, PageInfo, UUID
getMonitorTuningAutoApplyConfig (query)
getMonitorTuningAutoApplyConfig 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
Returns the auto-apply configuration for the caller's account: the account-level setting, the raw per-domain overrides, and the effective per-domain outcome.
Returns
MonitorTuningAutoApplyConfigOutput!
Example
query GetMonitorTuningAutoApplyConfig {
getMonitorTuningAutoApplyConfig {
autoApplyEnabledDefault
}
}Related types
MonitorTuningAutoApplyConfigOutput
getMonitorTuningRuns (query)
getMonitorTuningRuns 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
List monitor tuning runs for a single monitor, newest first.
Arguments
| Argument | Type | Description |
|---|---|---|
first | Int! | Number of items to return (page size) |
monitorUuid | UUID! | Monitor to list tuning runs for. |
monitorTuningRunUuid | UUID | When set, narrow to a single tuning row by its UUID. |
dryRun | Boolean | When set, filter to dry-run rows (true) or apply rows (false). |
source | MonitorTuningAgentRunSource | When set, filter to rows with this origin. |
createdAfter | DateTime | Inclusive lower bound on the row's creation timestamp. |
createdBefore | DateTime | Exclusive upper bound on the row's creation timestamp. |
before | String | |
after | String | |
last | Int |
Returns
MonitorTuningRunConnection
Example
query GetMonitorTuningRuns($first: Int!, $monitorUuid: UUID!) {
getMonitorTuningRuns(first: $first, monitorUuid: $monitorUuid) {
totalCount
}
}Types used only by getMonitorTuningRuns
getMonitorTuningRunsMonitorTuningRunConnection
MonitorTuningRunConnectionObject type.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [MonitorTuningRunEdge]! | Contains the nodes in this connection. |
totalCount | Int! | Total number of tuning rows matching the query. |
MonitorTuningRunEdge
MonitorTuningRunEdgeObject type. A Relay edge containing a MonitorTuningRun and its cursor.
| Field | Type | Description |
|---|---|---|
node | MonitorTuningRunResult | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
Related types
DateTime, MonitorTuningAgentRunSource, MonitorTuningRunResult, PageInfo, UUID
getMonitorTuningSuggestions (query)
getMonitorTuningSuggestions 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
Account-wide monitors with a pending tuning suggestion, newest first.
Returns
[MonitorTuningSuggestion!]
Example
query GetMonitorTuningSuggestions {
getMonitorTuningSuggestions {
monitorUuid
monitorName
monitorType
monitorUrl
isTemplateManaged
runUuid
createdTime
recommendationCount
recommendationTitles
recommendationTypes
breachCount7d
autoApplyEnabled
createdByMe
}
}Types used only by getMonitorTuningSuggestions
getMonitorTuningSuggestionsMonitorTuningSuggestion
MonitorTuningSuggestionObject type. A monitor with a pending, not-yet-applied tuning suggestion.
| Field | Type | Description |
|---|---|---|
monitorUuid | UUID! | |
monitorName | String | The monitor's display title. Null when the monitor has neither a description nor a name set. |
monitorType | String! | |
monitorUrl | String! | Deep link to the monitor's details page in the web app. |
isTemplateManaged | Boolean! | True when the monitor is deployed via Monitors-as-Code. Its recommendations are read-only — applyMonitorTuningRun rejects them, and the user applies them by editing their Monitors-as-Code configuration. |
runUuid | UUID! | UUID of the underlying tuning run backing this suggestion. |
createdTime | DateTime! | |
recommendationCount | Int! | |
recommendationTitles | [String!]! | |
recommendationTypes | [String]! | Which tuning lever each recommendation pulls, positionally aligned with recommendationTitles. Entries are null for recommendations stored before the field existed; unrecognized values pass through verbatim (and are logged), so a lever the monolith has not learned yet still surfaces. |
breachCount7d | Int! | Distinct incidents for this monitor in the trailing 7 days. |
autoApplyEnabled | Boolean! | True when Monte Carlo applies this monitor's tuning suggestions automatically, so the recommendations shown here may already be on their way in without the user acting. Applied entries and their revert are in getMonitorTuningAutoApplies. |
createdByMe | Boolean! | True when the requesting user created the monitor. False when anyone else did, and for monitors created by an agent, with no recorded creator, or whose creator has left the account. A Monitors-as-Code monitor applied with a human's API key records that human as the creator. |
Related types
Mutations
applyMonitorTuningRun (mutation)
applyMonitorTuningRun 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
Apply selected recommendations to a monitor.
Arguments
| Argument | Type | Description |
|---|---|---|
input | ApplyMonitorTuningRunInput! |
Returns
Example
mutation ApplyMonitorTuningRun($input: ApplyMonitorTuningRunInput!) {
applyMonitorTuningRun(input: $input) {
uuid
monitorUuid
status
dryRun
source
monitorType
errorMessage
triggeredAt
triggeredByExecutionId
reused
}
}Types used only by applyMonitorTuningRun
applyMonitorTuningRunApplyMonitorTuningRunInput
ApplyMonitorTuningRunInputInput object type.
| Field | Type | Description |
|---|---|---|
monitorUuid | UUID! | UUID of the monitor to apply recommendations to. |
recommendations | [MonitorTuningRecInput!]! | User-selected subset of recommendations to apply. |
MonitorTuningRecInput
MonitorTuningRecInputInput object type.
| Field | Type | Description |
|---|---|---|
title | String | |
reasoning | String | |
changeSummary | String | |
isSplit | Boolean | Default: false. |
targetMcon | String | |
targetMetric | String | |
recommendationType | String | Which tuning lever the recommendation pulls. Unrecognized values are stored verbatim and logged - a new agent-side member flows through before this repo's known-type set is updated. |
Related types
createMonitorTuningRun (mutation)
createMonitorTuningRun 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
Get a dry-run monitor tuning analysis, reusing a recent one when it can answer the request.
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateMonitorTuningRunInput! |
Returns
Example
mutation CreateMonitorTuningRun($input: CreateMonitorTuningRunInput!) {
createMonitorTuningRun(input: $input) {
uuid
monitorUuid
status
dryRun
source
monitorType
errorMessage
triggeredAt
triggeredByExecutionId
reused
}
}Types used only by createMonitorTuningRun
createMonitorTuningRunCreateMonitorTuningRunInput
CreateMonitorTuningRunInputInput object type.
| Field | Type | Description |
|---|---|---|
monitorUuid | UUID! | UUID of the monitor to tune. |
force | Boolean | Start a new analysis even when a recent one could answer this request. Reserved for an explicit human re-analysis. Automated callers must leave this unset. Default: false. |
tuningContext | String | Why the caller wants the monitor tuned. Untrusted text: the tuning agent verifies it. When set, a recent analysis is never reused. |
trigger | MonitorTuningRunTrigger | The automated caller that started the run. With REMEDIATION, a run on an agent-created monitor that is not Monitors-as-Code may be applied automatically. TEAMMATE is accepted only from the teammate agent inside one domain, for a monitor that refires often and that the proactive scheduler does not take. |
MonitorTuningRunTrigger
MonitorTuningRunTriggerEnum type. Which automated caller started a tuning run.
| Value | Description |
|---|---|
REMEDIATION | |
TEAMMATE |
Related types
dismissMonitorTuningSuggestion (mutation)
dismissMonitorTuningSuggestion 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
Dismiss a monitor's pending proactive tuning suggestion.
Arguments
| Argument | Type | Description |
|---|---|---|
input | DismissMonitorTuningSuggestionInput! |
Returns
DismissMonitorTuningSuggestionResult
Example
mutation DismissMonitorTuningSuggestion($input: DismissMonitorTuningSuggestionInput!) {
dismissMonitorTuningSuggestion(input: $input) {
runUuid
dismissedAt
}
}Types used only by dismissMonitorTuningSuggestion
dismissMonitorTuningSuggestionDismissMonitorTuningSuggestionInput
DismissMonitorTuningSuggestionInputInput object type.
| Field | Type | Description |
|---|---|---|
runUuid | UUID! | UUID of the tuning run backing the suggestion to dismiss. |
DismissMonitorTuningSuggestionResult
DismissMonitorTuningSuggestionResultObject type. Outcome of dismissing a proactive tuning suggestion.
Related types
revertMonitorTuningAutoApply (mutation)
revertMonitorTuningAutoApply 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
Restore a monitor to its configuration before an automatic tuning apply.
Arguments
| Argument | Type | Description |
|---|---|---|
input | RevertMonitorTuningAutoApplyInput! |
Returns
Example
mutation RevertMonitorTuningAutoApply($input: RevertMonitorTuningAutoApplyInput!) {
revertMonitorTuningAutoApply(input: $input) {
uuid
monitorUuid
monitorType
status
skipReason
sourceRunUuid
applyRunUuid
domainUuids
createdTime
decidedTime
dispatchedTime
completedTime
revertedTime
revertError
snapshot
snapshotVersion
snapshotCapturedTime
snapshotUnavailableReason
isRevertible
}
}Types used only by revertMonitorTuningAutoApply
revertMonitorTuningAutoApplyRevertMonitorTuningAutoApplyInput
RevertMonitorTuningAutoApplyInputInput object type.
| Field | Type | Description |
|---|---|---|
autoApplyUuid | UUID! | UUID of the auto-apply entry to reverse. |
Related types
updateMonitorTuningAutoApplyConfig (mutation)
updateMonitorTuningAutoApplyConfig 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 per-domain auto-apply overrides for monitor tuning.
Arguments
| Argument | Type | Description |
|---|---|---|
domainOverrides | [MonitorTuningAutoApplyDomainOverrideInput!]! | Domain overrides to set or remove. An entry with enabled null removes the domain's override so it inherits the account-level setting. When a domain appears more than once, the last entry wins. |
Returns
UpdateMonitorTuningAutoApplyConfig
Example
mutation UpdateMonitorTuningAutoApplyConfig($domainOverrides: [MonitorTuningAutoApplyDomainOverrideInput!]!) {
updateMonitorTuningAutoApplyConfig(domainOverrides: $domainOverrides) {
config {
autoApplyEnabledDefault
}
}
}Types used only by updateMonitorTuningAutoApplyConfig
updateMonitorTuningAutoApplyConfigMonitorTuningAutoApplyDomainOverrideInput
MonitorTuningAutoApplyDomainOverrideInputInput object type.
| Field | Type | Description |
|---|---|---|
domainUuid | UUID! | UUID of the domain whose override to set or remove. Must be a metadata domain in the account. |
enabled | Boolean | Per-domain auto-apply toggle. True enables auto-apply for monitors assigned to this domain even where the account-level setting is off; False disables it even where the setting is on. Omit or pass null to inherit the account-level setting. Monitors with no domain assignment follow the account-level setting either way. |
UpdateMonitorTuningAutoApplyConfig
UpdateMonitorTuningAutoApplyConfigObject type. Set per-domain auto-apply overrides for the caller's account.
Requires domain-settings edit access. An override replaces the account-level
setting for its domain, in either direction.
| Field | Type | Description |
|---|---|---|
config | MonitorTuningAutoApplyConfigOutput! |
Related types
MonitorTuningAutoApplyConfigOutput, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
