Skip to main content
GET
/
api
/
v1
/
config
/
gcp-metrics-integrations
/
{slug}
cURL
curl --request GET \
  --url https://{tenant}.chronosphere.io/api/v1/config/gcp-metrics-integrations/{slug} \
  --header 'API-Token: <api-key>'
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://{tenant}.chronosphere.io/api/v1/config/gcp-metrics-integrations/{slug}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("API-Token", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://{tenant}.chronosphere.io/api/v1/config/gcp-metrics-integrations/{slug}")
.header("API-Token", "<api-key>")
.asString();
const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};

fetch('https://{tenant}.chronosphere.io/api/v1/config/gcp-metrics-integrations/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://{tenant}.chronosphere.io/api/v1/config/gcp-metrics-integrations/{slug}"

headers = {"API-Token": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "gcp_metrics_integration": {
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "metric_groups": [
      {
        "filters": [
          {
            "name": "<string>",
            "value_glob": "<string>"
          }
        ],
        "prefixes": [
          "<string>"
        ],
        "project_id": "<string>",
        "rollup_rules": [
          {
            "label_policy": {
              "keep": [
                {
                  "name": "<string>"
                }
              ]
            },
            "metric_name": "<string>"
          }
        ]
      }
    ],
    "service_account": {
      "client_email": "<string>"
    },
    "slug": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
{
"message": "<string>"
}
{
"message": "<string>"
}
{}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

The unique slug that identifies the GcpMetricsIntegration to read.

Response

A successful response.

gcp_metrics_integration
object