cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/trace-behavior-config \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/trace-behavior-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/trace-behavior-config")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/trace-behavior-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/trace-behavior-config"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"trace_behavior_config": {
"baseline_behavior_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"dataset_priorities": [
"<string>"
],
"main_behavior_assignments": [
{
"behavior_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"dataset_slug": "<string>",
"description": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"override_behavior_assignments": [
{
"behavior_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"dataset_slug": "<string>",
"description": "<string>",
"end_time": "2023-11-07T05:31:56Z",
"start_time": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"preview_behavior_assignments": [
{
"behavior_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"dataset_slug": "<string>",
"description": "<string>",
"end_time": "2023-11-07T05:31:56Z",
"start_time": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}ReadTraceBehaviorConfig
GET
/
api
/
v1
/
config
/
trace-behavior-config
cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/trace-behavior-config \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/trace-behavior-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/trace-behavior-config")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/trace-behavior-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/trace-behavior-config"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"trace_behavior_config": {
"baseline_behavior_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"dataset_priorities": [
"<string>"
],
"main_behavior_assignments": [
{
"behavior_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"dataset_slug": "<string>",
"description": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"override_behavior_assignments": [
{
"behavior_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"dataset_slug": "<string>",
"description": "<string>",
"end_time": "2023-11-07T05:31:56Z",
"start_time": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"preview_behavior_assignments": [
{
"behavior_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"dataset_slug": "<string>",
"description": "<string>",
"end_time": "2023-11-07T05:31:56Z",
"start_time": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}⌘I

