monitorConnectorResources
Sets connector resources to monitor and replaces any existing monitoring configuration.
Complete replacement operation
To maintain monitoring of existing resources:
First retrieve your current list of monitored resources
Include ALL resources you wish to monitor in your update, both existing and new
Any resources not included in this update will no longer be monitored
Examples
mutation MonitorConnectorResources($monitorConnectorResourceInput: MonitorConnectorResourceInput!) {
monitorConnectorResources(monitorConnectorResourceInput: $monitorConnectorResourceInput) {
success
}
}
Variables
This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
{
"monitorConnectorResourceInput": {
"connectorID": "2",
"credentialsId": "example",
"resources": [
{
"id": "30966426",
"name": "some-repo",
"isMonitored": true,
"resourceType": "edge"
}
],
"monitorAllResources": true,
"monitorAllNewlyCreatedResources": 1749000000000
}
}
Arguments
You can use the following argument(s) to customize your monitorConnectorResources
mutation.
monitorConnectorResourceInput MonitorConnectorResourceInput!
required
Input specifying which connector resources to monitor and monitoring configuration
connectorID String!
credentialsId String
resources [ResourceInput]
monitorAllResources Boolean
monitorAllNewlyCreatedResources Float
Fields
Return type: MonitorConnectorResourceResponse
You can use the following field(s) to specify what information your monitorConnectorResources
mutation will return. Please note that some fields may have their own subfields.
success Boolean
boolean indication if operation succeeded
Last updated