List analysis views
curl --request GET \
--url https://app.chatobserver.com/api/v2/metrics/analysis-views \
--header 'x-chatobserver-key: <api-key>'const options = {method: 'GET', headers: {'x-chatobserver-key': '<api-key>'}};
fetch('https://app.chatobserver.com/api/v2/metrics/analysis-views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.chatobserver.com/api/v2/metrics/analysis-views"
headers = {"x-chatobserver-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"definition": {
"schemaVersion": 1,
"source": {
"kind": "query",
"queryVersionId": "<string>",
"queryId": "<string>"
},
"fields": [
{
"label": "<string>",
"role": "date",
"fieldId": "<string>",
"format": "number"
}
],
"filters": [
{
"values": [
"<string>"
],
"fieldId": "<string>",
"operator": "equals"
}
],
"comparison": {
"mode": "none",
"baselineRunId": "<string>"
},
"presentation": {
"description": "<string>",
"title": "<string>",
"chartType": "map",
"theme": "workspace",
"showLegend": false,
"showLabels": false
},
"refresh": {
"mode": "manual",
"artifactId": "<string>"
}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"visibility": "<string>",
"status": "<string>",
"currentVersionId": "<string>",
"versionNumber": 123,
"versionStatus": "<string>"
}
]
}{
"error": {
"code": "internal",
"fieldPath": [
"<string>"
],
"parameters": {},
"repairActions": [
"<string>"
],
"requestId": "<string>",
"retryable": false,
"retryAfterSeconds": 1
}
}Data definitions
List analysis views
Manage reusable definitions and their immutable versions.
GET
/
api
/
v2
/
metrics
/
analysis-views
List analysis views
curl --request GET \
--url https://app.chatobserver.com/api/v2/metrics/analysis-views \
--header 'x-chatobserver-key: <api-key>'const options = {method: 'GET', headers: {'x-chatobserver-key': '<api-key>'}};
fetch('https://app.chatobserver.com/api/v2/metrics/analysis-views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.chatobserver.com/api/v2/metrics/analysis-views"
headers = {"x-chatobserver-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"definition": {
"schemaVersion": 1,
"source": {
"kind": "query",
"queryVersionId": "<string>",
"queryId": "<string>"
},
"fields": [
{
"label": "<string>",
"role": "date",
"fieldId": "<string>",
"format": "number"
}
],
"filters": [
{
"values": [
"<string>"
],
"fieldId": "<string>",
"operator": "equals"
}
],
"comparison": {
"mode": "none",
"baselineRunId": "<string>"
},
"presentation": {
"description": "<string>",
"title": "<string>",
"chartType": "map",
"theme": "workspace",
"showLegend": false,
"showLabels": false
},
"refresh": {
"mode": "manual",
"artifactId": "<string>"
}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"visibility": "<string>",
"status": "<string>",
"currentVersionId": "<string>",
"versionNumber": 123,
"versionStatus": "<string>"
}
]
}{
"error": {
"code": "internal",
"fieldPath": [
"<string>"
],
"parameters": {},
"repairActions": [
"<string>"
],
"requestId": "<string>",
"retryable": false,
"retryAfterSeconds": 1
}
}