Monitor tuning agent (GraphQL)

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

ArgumentTypeDescription
firstInt!Number of items to return (page size)
monitorUuidUUIDWhen set, narrow to a single monitor. Omit for the account-wide history.
statusMonitorTuningAutoApplyStatusWhen set, filter to entries with this status.
createdAfterDateTimeInclusive lower bound on the entry's creation timestamp.
createdBeforeDateTimeExclusive upper bound on the entry's creation timestamp.
beforeString
afterString
lastInt

Returns

MonitorTuningAutoApplyConnection

Example

query GetMonitorTuningAutoApplies($first: Int!) {
  getMonitorTuningAutoApplies(first: $first) {
    totalCount
  }
}

Types used only by getMonitorTuningAutoApplies

MonitorTuningAutoApplyConnection

Object type.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[MonitorTuningAutoApplyEdge]!Contains the nodes in this connection.
totalCountInt!Total number of entries matching the query.
MonitorTuningAutoApplyEdge

Object type. A Relay edge containing a MonitorTuningAutoApply and its cursor.

FieldTypeDescription
nodeMonitorTuningAutoApplyThe item at the end of the edge
cursorString!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

ArgumentTypeDescription
firstInt!Number of items to return (page size)
monitorUuidUUID!Monitor to list tuning runs for.
monitorTuningRunUuidUUIDWhen set, narrow to a single tuning row by its UUID.
dryRunBooleanWhen set, filter to dry-run rows (true) or apply rows (false).
sourceMonitorTuningAgentRunSourceWhen set, filter to rows with this origin.
createdAfterDateTimeInclusive lower bound on the row's creation timestamp.
createdBeforeDateTimeExclusive upper bound on the row's creation timestamp.
beforeString
afterString
lastInt

Returns

MonitorTuningRunConnection

Example

query GetMonitorTuningRuns($first: Int!, $monitorUuid: UUID!) {
  getMonitorTuningRuns(first: $first, monitorUuid: $monitorUuid) {
    totalCount
  }
}

Types used only by getMonitorTuningRuns

MonitorTuningRunConnection

Object type.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[MonitorTuningRunEdge]!Contains the nodes in this connection.
totalCountInt!Total number of tuning rows matching the query.
MonitorTuningRunEdge

Object type. A Relay edge containing a MonitorTuningRun and its cursor.

FieldTypeDescription
nodeMonitorTuningRunResultThe item at the end of the edge
cursorString!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

MonitorTuningSuggestion

Object type. A monitor with a pending, not-yet-applied tuning suggestion.

FieldTypeDescription
monitorUuidUUID!
monitorNameStringThe monitor's display title. Null when the monitor has neither a description nor a name set.
monitorTypeString!
monitorUrlString!Deep link to the monitor's details page in the web app.
isTemplateManagedBoolean!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.
runUuidUUID!UUID of the underlying tuning run backing this suggestion.
createdTimeDateTime!
recommendationCountInt!
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.
breachCount7dInt!Distinct incidents for this monitor in the trailing 7 days.
autoApplyEnabledBoolean!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.
createdByMeBoolean!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

DateTime, UUID

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

ArgumentTypeDescription
inputApplyMonitorTuningRunInput!

Returns

MonitorTuningRunResult

Example

mutation ApplyMonitorTuningRun($input: ApplyMonitorTuningRunInput!) {
  applyMonitorTuningRun(input: $input) {
    uuid
    monitorUuid
    status
    dryRun
    source
    monitorType
    errorMessage
    triggeredAt
    triggeredByExecutionId
    reused
  }
}

Types used only by applyMonitorTuningRun

ApplyMonitorTuningRunInput

Input object type.

FieldTypeDescription
monitorUuidUUID!UUID of the monitor to apply recommendations to.
recommendations[MonitorTuningRecInput!]!User-selected subset of recommendations to apply.
MonitorTuningRecInput

Input object type.

FieldTypeDescription
titleString
reasoningString
changeSummaryString
isSplitBooleanDefault: false.
targetMconString
targetMetricString
recommendationTypeStringWhich 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

MonitorTuningRunResult, UUID

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

ArgumentTypeDescription
inputCreateMonitorTuningRunInput!

Returns

MonitorTuningRunResult

Example

mutation CreateMonitorTuningRun($input: CreateMonitorTuningRunInput!) {
  createMonitorTuningRun(input: $input) {
    uuid
    monitorUuid
    status
    dryRun
    source
    monitorType
    errorMessage
    triggeredAt
    triggeredByExecutionId
    reused
  }
}

Types used only by createMonitorTuningRun

CreateMonitorTuningRunInput

Input object type.

FieldTypeDescription
monitorUuidUUID!UUID of the monitor to tune.
forceBooleanStart 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.
tuningContextStringWhy the caller wants the monitor tuned. Untrusted text: the tuning agent verifies it. When set, a recent analysis is never reused.
triggerMonitorTuningRunTriggerThe 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

Enum type. Which automated caller started a tuning run.

ValueDescription
REMEDIATION
TEAMMATE

Related types

MonitorTuningRunResult, UUID

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

ArgumentTypeDescription
inputDismissMonitorTuningSuggestionInput!

Returns

DismissMonitorTuningSuggestionResult

Example

mutation DismissMonitorTuningSuggestion($input: DismissMonitorTuningSuggestionInput!) {
  dismissMonitorTuningSuggestion(input: $input) {
    runUuid
    dismissedAt
  }
}

Types used only by dismissMonitorTuningSuggestion

DismissMonitorTuningSuggestionInput

Input object type.

FieldTypeDescription
runUuidUUID!UUID of the tuning run backing the suggestion to dismiss.
DismissMonitorTuningSuggestionResult

Object type. Outcome of dismissing a proactive tuning suggestion.

FieldTypeDescription
runUuidUUID!
dismissedAtDateTime!

Related types

DateTime, UUID

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

ArgumentTypeDescription
inputRevertMonitorTuningAutoApplyInput!

Returns

MonitorTuningAutoApply

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

RevertMonitorTuningAutoApplyInput

Input object type.

FieldTypeDescription
autoApplyUuidUUID!UUID of the auto-apply entry to reverse.

Related types

MonitorTuningAutoApply, UUID

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

ArgumentTypeDescription
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

MonitorTuningAutoApplyDomainOverrideInput

Input object type.

FieldTypeDescription
domainUuidUUID!UUID of the domain whose override to set or remove. Must be a metadata domain in the account.
enabledBooleanPer-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

Object 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.

FieldTypeDescription
configMonitorTuningAutoApplyConfigOutput!

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.