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
| Argument | Type | Description |
|---|---|---|
dcId | UUID! | DC UUID |
Returns
CleanupCollectorRecordInAccount
Example
mutation CleanupCollectorRecord($dcId: UUID!) {
cleanupCollectorRecord(dcId: $dcId) {
success
}
}Types used only by cleanupCollectorRecord
cleanupCollectorRecordCleanupCollectorRecordInAccount
CleanupCollectorRecordInAccountObject 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.
| Field | Type | Description |
|---|---|---|
success | Boolean | If the collector record was deleted |
Related types
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
| Argument | Type | Description |
|---|---|---|
region | String | Region where the DC is hosted Default: "us-east-1". |
templateProvider | String | DC template IaC provider Default: "cloudformation". |
templateVariant | String | DC 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
createCollectorRecordCreateCollectorRecord
CreateCollectorRecordObject type. Create an additional collector record (with template) in the account.
| Field | Type | Description |
|---|---|---|
dc | DataCollector | The data collector that was created |
Related types
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
| Argument | Type | Description |
|---|---|---|
dcId | UUID | DC UUID. To disambiguate accounts with multiple collectors |
region | String | Region where the DC is hosted Default: "us-east-1". |
templateVariant | String | DC template variant. |
updateInfra | Boolean | Use 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
generateCollectorTemplateGenerateCollectorTemplate
GenerateCollectorTemplateObject type. Generate a data collector template (uploaded to S3)
| Field | Type | Description |
|---|---|---|
dc | DataCollector | The data collector that was created or updated |
Related types
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
| Argument | Type | Description |
|---|---|---|
overrides | GenericScalar | Dictionary 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. |
sourceDcId | UUID! | Source DC UUID |
targetDcId | UUID! | Target DC UUID |
Returns
MigrateCollectorResources
Example
mutation MigrateCollectorResources($sourceDcId: UUID!, $targetDcId: UUID!) {
migrateCollectorResources(sourceDcId: $sourceDcId, targetDcId: $targetDcId) {
success
}
}Types used only by migrateCollectorResources
migrateCollectorResourcesMigrateCollectorResources
MigrateCollectorResourcesObject type. Migrate resources (warehouses, BI) from one data collector to another
| Field | Type | Description |
|---|---|---|
success | Boolean | If the migration was successful |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
