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
Returns
DcPingResponse
Example
query PingDataCollector($dcId: UUID!, $traceId: UUID!) {
pingDataCollector(dcId: $dcId, traceId: $traceId) {
dcId
traceId
}
}Types used only by pingDataCollector
pingDataCollectorDcPingResponse
DcPingResponseObject type. Describes the result of pinging a data collector.
Related types
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
| Argument | Type | Description |
|---|---|---|
dcId | UUID! | 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
generateDcUpgradeTemplateGenerateDcUpgradeTemplate
GenerateDcUpgradeTemplateObject type. Generates a template for DC upgrade and a URL to execute the template in the cloud provider.
| Field | Type | Description |
|---|---|---|
upgradeLaunchUrl | String | A link that launches the upgrade flow (for instance in AWS CloudFormation) that customers can complete to upgrade a data collector stack. |
templateUrl | String | A 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. |
codeVersion | String | The code version of the upgrade. |
templateVersion | String | The template version of the upgrade. |
templateVariant | String | The template variant of the upgrade. |
isMcHosted | Boolean | Indicates whether the data collector is hosted by Monte Carlo. |
isUpToDate | Boolean | Indicates whether the data collector is already running on the latest code and infrastructure. |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
