cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/consumption-config \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/consumption-config"
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/consumption-config")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/consumption-config', 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/consumption-config"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"consumption_config": {
"created_at": "2023-11-07T05:31:56Z",
"partitions": [
{
"filters": [
{
"conditions": [
{
"dataset_slug": "<string>",
"log_filter": {
"query": "<string>"
},
"metric_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"trace_span_filters": [
{
"duration": {
"max_secs": 123,
"min_secs": 123
},
"error": {
"value": true
},
"is_root_span": {
"value": true
},
"operation": {
"in_values": [
"<string>"
],
"value": "<string>"
},
"parent_operation": {
"in_values": [
"<string>"
],
"value": "<string>"
},
"parent_service": {
"in_values": [
"<string>"
],
"value": "<string>"
},
"service": {
"in_values": [
"<string>"
],
"value": "<string>"
},
"tags": [
{
"key": "<string>",
"numeric_value": {
"value": 123
},
"value": {
"in_values": [
"<string>"
],
"value": "<string>"
}
}
]
}
]
}
]
}
],
"name": "<string>",
"partitions": "<array>",
"slug": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}ReadConsumptionConfig
GET
/
api
/
v1
/
config
/
consumption-config
cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/consumption-config \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/consumption-config"
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/consumption-config")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/consumption-config', 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/consumption-config"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"consumption_config": {
"created_at": "2023-11-07T05:31:56Z",
"partitions": [
{
"filters": [
{
"conditions": [
{
"dataset_slug": "<string>",
"log_filter": {
"query": "<string>"
},
"metric_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"trace_span_filters": [
{
"duration": {
"max_secs": 123,
"min_secs": 123
},
"error": {
"value": true
},
"is_root_span": {
"value": true
},
"operation": {
"in_values": [
"<string>"
],
"value": "<string>"
},
"parent_operation": {
"in_values": [
"<string>"
],
"value": "<string>"
},
"parent_service": {
"in_values": [
"<string>"
],
"value": "<string>"
},
"service": {
"in_values": [
"<string>"
],
"value": "<string>"
},
"tags": [
{
"key": "<string>",
"numeric_value": {
"value": 123
},
"value": {
"in_values": [
"<string>"
],
"value": "<string>"
}
}
]
}
]
}
]
}
],
"name": "<string>",
"partitions": "<array>",
"slug": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}⌘I

