Other agent operations (GraphQL)

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

Mutations

cleanupCollectorRecord (mutation)

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

Deletes an unassociated collector record in the account. This does not delete the CloudFormation stack and will not succeed if the collector is active and/or associated with a warehouse.

Arguments

ArgumentTypeDescription
dcIdUUID!DC UUID

Returns

CleanupCollectorRecordInAccount

Example

mutation CleanupCollectorRecord($dcId: UUID!) {
  cleanupCollectorRecord(dcId: $dcId) {
    success
  }
}

Types used only by cleanupCollectorRecord

CleanupCollectorRecordInAccount

Object type. Deletes an unassociated collector record in the account. This does not delete the CloudFormation stack and will not succeed if the collector is active and/or associated with a warehouse.

FieldTypeDescription
successBooleanIf the collector record was deleted

Related types

UUID

createCollectorRecord (mutation)

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

Create an additional collector record (with template) in the account.

Arguments

ArgumentTypeDescription
regionStringRegion where the DC is hosted Default: "us-east-1".
templateProviderStringDC template IaC provider Default: "cloudformation".
templateVariantStringDC template variant Default: "janus".

Returns

CreateCollectorRecord

Example

mutation CreateCollectorRecord {
  createCollectorRecord {
    dc {
      id
      uuid
      name
      apiGatewayId
      kinesisEndpointId
      cloudwatchLogEndpointId
      crossAccountRoleArn
      stackArn
      customerAwsAccountId
      customerAwsRegion
      templateLaunchUrl
      templateProvider
      templateVariant
      templateVersion
      templateParameters
      codeVersion
      kinesisAccessRole
      active
      lastUpdated
      isCustom
    }
  }
}

Types used only by createCollectorRecord

CreateCollectorRecord

Object type. Create an additional collector record (with template) in the account.

FieldTypeDescription
dcDataCollectorThe data collector that was created

Related types

DataCollector

generateCollectorTemplate (mutation)

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

Generate a data collector template (uploaded to S3)

Arguments

ArgumentTypeDescription
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
regionStringRegion where the DC is hosted Default: "us-east-1".
templateVariantStringDC template variant.
updateInfraBooleanUse latest version of the collector template, with any infrastructure changes it might include. Otherwise, only the lambda code version will be updated. Default: false.

Returns

GenerateCollectorTemplate

Example

mutation GenerateCollectorTemplate {
  generateCollectorTemplate {
    dc {
      id
      uuid
      name
      apiGatewayId
      kinesisEndpointId
      cloudwatchLogEndpointId
      crossAccountRoleArn
      stackArn
      customerAwsAccountId
      customerAwsRegion
      templateLaunchUrl
      templateProvider
      templateVariant
      templateVersion
      templateParameters
      codeVersion
      kinesisAccessRole
      active
      lastUpdated
      isCustom
    }
  }
}

Types used only by generateCollectorTemplate

GenerateCollectorTemplate

Object type. Generate a data collector template (uploaded to S3)

FieldTypeDescription
dcDataCollectorThe data collector that was created or updated

Related types

DataCollector, UUID

migrateCollectorResources (mutation)

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

Migrate resources (warehouses, BI) from one data collector to another

Arguments

ArgumentTypeDescription
overridesGenericScalarDictionary containing properties to override per connection. The key must be the connection UUID and the value a dictionary including new values for the connection properties, like 'host'.
resourceIds[UUID]List of resource UUIDs to migrate. By default all resources will be migrated.
sourceDcIdUUID!Source DC UUID
targetDcIdUUID!Target DC UUID

Returns

MigrateCollectorResources

Example

mutation MigrateCollectorResources($sourceDcId: UUID!, $targetDcId: UUID!) {
  migrateCollectorResources(sourceDcId: $sourceDcId, targetDcId: $targetDcId) {
    success
  }
}

Types used only by migrateCollectorResources

MigrateCollectorResources

Object type. Migrate resources (warehouses, BI) from one data collector to another

FieldTypeDescription
successBooleanIf the migration was successful

Related types

GenericScalar, UUID

Source: The GraphQL API reference

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