import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs \
--cookie ankra_session={
"tabs": [
{
"key": "<string>",
"kind": "ankra",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"ankra_order": true,
"left_out": 1,
"version": 2,
"updated_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z",
"last": {
"tab": "<string>",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"detail": "<string>"
}Get an application's Metrics tabs (browser session)
The tabs of the application’s Metrics as the caller sees them: Ankra’s order (ankra_order true, tabs empty), which the page draws, or the order someone arranged for everyone who opens the application, with the version of the last change and who made it when; the version stays set after someone goes back to Ankra’s order. A dashboard on the tabs the caller cannot open, or that is gone, is left out of tabs and counted in left_out; the stored order keeps it. last is the caller’s own last tab. Requires applications.read.
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs \
--cookie ankra_session={
"tabs": [
{
"key": "<string>",
"kind": "ankra",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"ankra_order": true,
"left_out": 1,
"version": 2,
"updated_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z",
"last": {
"tab": "<string>",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"detail": "<string>"
}Authorizations
Response
Successful Response
The tabs of an application's Metrics as the caller sees them: Ankra's order, which the page draws, or the order someone arranged for everyone who opens the application.
The version of the last change to the tabs: the base_version of the next change. Going back to Ankra's order is a change like any other and counts the version on, so it stays set on Ankra's order after that. Null only when nobody ever changed the tabs.
x >= 1