Skip to main content
POST
/
api
/
v1
/
config
/
gcp-metrics-integrations
cURL
curl --request POST \
  --url https://docs.chronosphere.io/api/v1/config/gcp-metrics-integrations \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dry_run": true
}
'
{
  "gcp_metrics_integration": {
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "metric_groups": [
      {
        "prefixes": [
          "<string>"
        ],
        "project_id": "<string>"
      }
    ],
    "service_account": {
      "client_email": "<string>"
    },
    "slug": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://chronosphere-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
dry_run
boolean

If true, validates the specified configuration without creating the GcpMetricsIntegration. If the specified configuration is valid, the endpoint returns a partial response without the GcpMetricsIntegration. If the specified configuration is invalid, the endpoint returns an error.

gcp_metrics_integration
object

The GcpMetricsIntegration to create.

Response

A successful response containing the created GcpMetricsIntegration.

gcp_metrics_integration
object