cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/resource-pools \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/resource-pools"
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/resource-pools")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/resource-pools', 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/resource-pools"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"resource_pools": {
"default_pool": {
"allocation": {
"fixed_values": [
{
"value": "<string>"
}
],
"percent_of_license": 123,
"priority_thresholds": [
{
"all_priorities": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"default_and_low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
}
}
]
},
"priorities": {
"high_priority_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"low_priority_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
]
},
"priority_thresholds": [
{
"all_priorities": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"default_and_low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
}
}
]
},
"created_at": "2023-11-07T05:31:56Z",
"pools": [
{
"allocation": {
"fixed_values": [
{
"value": "<string>"
}
],
"percent_of_license": 123,
"priority_thresholds": [
{
"all_priorities": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"default_and_low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
}
}
]
},
"filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"name": "<string>",
"priorities": {
"high_priority_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"low_priority_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
]
}
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}ReadResourcePools
GET
/
api
/
v1
/
config
/
resource-pools
cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/resource-pools \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/resource-pools"
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/resource-pools")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/resource-pools', 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/resource-pools"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"resource_pools": {
"default_pool": {
"allocation": {
"fixed_values": [
{
"value": "<string>"
}
],
"percent_of_license": 123,
"priority_thresholds": [
{
"all_priorities": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"default_and_low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
}
}
]
},
"priorities": {
"high_priority_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"low_priority_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
]
},
"priority_thresholds": [
{
"all_priorities": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"default_and_low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
}
}
]
},
"created_at": "2023-11-07T05:31:56Z",
"pools": [
{
"allocation": {
"fixed_values": [
{
"value": "<string>"
}
],
"percent_of_license": 123,
"priority_thresholds": [
{
"all_priorities": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"default_and_low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
},
"low_priority": {
"fixed_value": "<string>",
"percent_of_pool_allocation": 123
}
}
]
},
"filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"name": "<string>",
"priorities": {
"high_priority_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"low_priority_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
]
}
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}⌘I

