cURL
curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/metric-name-default-active-series-limit \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"create_if_missing": true,
"dry_run": true,
"metric_name_default_active_series_limit": {
"default_max_active_histogram_series": "<string>",
"default_max_active_standard_series": "<string>"
}
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/metric-name-default-active-series-limit"
payload := strings.NewReader("{\n \"create_if_missing\": true,\n \"dry_run\": true,\n \"metric_name_default_active_series_limit\": {\n \"default_max_active_histogram_series\": \"<string>\",\n \"default_max_active_standard_series\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("API-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{tenant}.chronosphere.io/api/v1/config/metric-name-default-active-series-limit")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"create_if_missing\": true,\n \"dry_run\": true,\n \"metric_name_default_active_series_limit\": {\n \"default_max_active_histogram_series\": \"<string>\",\n \"default_max_active_standard_series\": \"<string>\"\n }\n}")
.asString();const options = {
method: 'PUT',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
create_if_missing: true,
dry_run: true,
metric_name_default_active_series_limit: {
default_max_active_histogram_series: '<string>',
default_max_active_standard_series: '<string>'
}
})
};
fetch('https://{tenant}.chronosphere.io/api/v1/config/metric-name-default-active-series-limit', 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/metric-name-default-active-series-limit"
payload = {
"create_if_missing": True,
"dry_run": True,
"metric_name_default_active_series_limit": {
"default_max_active_histogram_series": "<string>",
"default_max_active_standard_series": "<string>"
}
}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"metric_name_default_active_series_limit": {
"created_at": "2023-11-07T05:31:56Z",
"default_max_active_histogram_series": "<string>",
"default_max_active_standard_series": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{}UpdateMetricNameDefaultActiveSeriesLimit
PUT
/
api
/
v1
/
config
/
metric-name-default-active-series-limit
cURL
curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/metric-name-default-active-series-limit \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"create_if_missing": true,
"dry_run": true,
"metric_name_default_active_series_limit": {
"default_max_active_histogram_series": "<string>",
"default_max_active_standard_series": "<string>"
}
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/metric-name-default-active-series-limit"
payload := strings.NewReader("{\n \"create_if_missing\": true,\n \"dry_run\": true,\n \"metric_name_default_active_series_limit\": {\n \"default_max_active_histogram_series\": \"<string>\",\n \"default_max_active_standard_series\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("API-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{tenant}.chronosphere.io/api/v1/config/metric-name-default-active-series-limit")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"create_if_missing\": true,\n \"dry_run\": true,\n \"metric_name_default_active_series_limit\": {\n \"default_max_active_histogram_series\": \"<string>\",\n \"default_max_active_standard_series\": \"<string>\"\n }\n}")
.asString();const options = {
method: 'PUT',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
create_if_missing: true,
dry_run: true,
metric_name_default_active_series_limit: {
default_max_active_histogram_series: '<string>',
default_max_active_standard_series: '<string>'
}
})
};
fetch('https://{tenant}.chronosphere.io/api/v1/config/metric-name-default-active-series-limit', 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/metric-name-default-active-series-limit"
payload = {
"create_if_missing": True,
"dry_run": True,
"metric_name_default_active_series_limit": {
"default_max_active_histogram_series": "<string>",
"default_max_active_standard_series": "<string>"
}
}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"metric_name_default_active_series_limit": {
"created_at": "2023-11-07T05:31:56Z",
"default_max_active_histogram_series": "<string>",
"default_max_active_standard_series": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{}Authorizations
Chronosphere API token
Body
application/json
If true, the MetricNameDefaultActiveSeriesLimit will be created if it does not already exist. If false, an error will be returned if the MetricNameDefaultActiveSeriesLimit does not already exist.
If true, validates the specified configuration without creating or updating the MetricNameDefaultActiveSeriesLimit. If the specified configuration is valid, the endpoint returns a partial response without the MetricNameDefaultActiveSeriesLimit. If the specified configuration is invalid, the endpoint returns an error.
The MetricNameDefaultActiveSeriesLimit to update.
Show child attributes
Show child attributes
Response
A successful response containing the updated MetricNameDefaultActiveSeriesLimit.
Show child attributes
Show child attributes