Data collectors (GraphQL)

Related queries and mutations in Agents and deployments. Each has its own section.

Queries

pingDataCollector (query)

pingDataCollector is a query in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Sends a ping request to a data collector to verify it is operational.

Arguments

ArgumentTypeDescription
dcIdUUID!The UUID identifying the data collector to ping.
traceIdUUID!A unique identifier for correlating the data collector ping.

Returns

DcPingResponse

Example

query PingDataCollector($dcId: UUID!, $traceId: UUID!) {
  pingDataCollector(dcId: $dcId, traceId: $traceId) {
    dcId
    traceId
  }
}

Types used only by pingDataCollector

DcPingResponse

Object type. Describes the result of pinging a data collector.

FieldTypeDescription
dcIdUUID!The UUID identifying the data collector pinged.
traceIdUUID!A unique identifier for correlating the data collector ping.

Related types

UUID

Mutations

generateDcUpgradeTemplate (mutation)

generateDcUpgradeTemplate is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Generates a template for DC upgrade and a URL to execute the template in the cloud provider.

Arguments

ArgumentTypeDescription
dcIdUUID!The data collector UUID

Returns

GenerateDcUpgradeTemplate

Example

mutation GenerateDcUpgradeTemplate($dcId: UUID!) {
  generateDcUpgradeTemplate(dcId: $dcId) {
    upgradeLaunchUrl
    templateUrl
    codeVersion
    templateVersion
    templateVariant
    isMcHosted
    isUpToDate
  }
}

Types used only by generateDcUpgradeTemplate

GenerateDcUpgradeTemplate

Object type. Generates a template for DC upgrade and a URL to execute the template in the cloud provider.

FieldTypeDescription
upgradeLaunchUrlStringA link that launches the upgrade flow (for instance in AWS CloudFormation) that customers can complete to upgrade a data collector stack.
templateUrlStringA link to the deployment template URL (for instance an AWS S3 URL). This can be used to diff against an existing deployment template and review upgrades.
codeVersionStringThe code version of the upgrade.
templateVersionStringThe template version of the upgrade.
templateVariantStringThe template variant of the upgrade.
isMcHostedBooleanIndicates whether the data collector is hosted by Monte Carlo.
isUpToDateBooleanIndicates whether the data collector is already running on the latest code and infrastructure.

Related types

UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.