Get data for panels given in body
curl --request POST \
--url https://cloud.bytebeam.io/api/v1/panel-data \
--header 'Content-Type: application/json' \
--header 'x-bytebeam-api-key: <api-key>' \
--header 'x-bytebeam-tenant: <api-key>' \
--data '
{
"startTime": 123,
"endTime": 123,
"filterBys": {},
"panels": [
{
"timeseries": [
{
"table": "<string>",
"column": "<string>",
"aggregator": "<string>",
"query": {},
"groupBys": [
"<string>"
]
}
],
"groupBys": [
"<string>"
],
"query": {}
}
],
"aggregationInterval": 123,
"groupBys": [
"<string>"
],
"fetchAll": true
}
'import requests
url = "https://cloud.bytebeam.io/api/v1/panel-data"
payload = {
"startTime": 123,
"endTime": 123,
"filterBys": {},
"panels": [
{
"timeseries": [
{
"table": "<string>",
"column": "<string>",
"aggregator": "<string>",
"query": {},
"groupBys": ["<string>"]
}
],
"groupBys": ["<string>"],
"query": {}
}
],
"aggregationInterval": 123,
"groupBys": ["<string>"],
"fetchAll": True
}
headers = {
"x-bytebeam-api-key": "<api-key>",
"x-bytebeam-tenant": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-bytebeam-api-key': '<api-key>',
'x-bytebeam-tenant': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
startTime: 123,
endTime: 123,
filterBys: {},
panels: [
{
timeseries: [
{
table: '<string>',
column: '<string>',
aggregator: '<string>',
query: {},
groupBys: ['<string>']
}
],
groupBys: ['<string>'],
query: {}
}
],
aggregationInterval: 123,
groupBys: ['<string>'],
fetchAll: true
})
};
fetch('https://cloud.bytebeam.io/api/v1/panel-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.bytebeam.io/api/v1/panel-data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'startTime' => 123,
'endTime' => 123,
'filterBys' => [
],
'panels' => [
[
'timeseries' => [
[
'table' => '<string>',
'column' => '<string>',
'aggregator' => '<string>',
'query' => [
],
'groupBys' => [
'<string>'
]
]
],
'groupBys' => [
'<string>'
],
'query' => [
]
]
],
'aggregationInterval' => 123,
'groupBys' => [
'<string>'
],
'fetchAll' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-bytebeam-api-key: <api-key>",
"x-bytebeam-tenant: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloud.bytebeam.io/api/v1/panel-data"
payload := strings.NewReader("{\n \"startTime\": 123,\n \"endTime\": 123,\n \"filterBys\": {},\n \"panels\": [\n {\n \"timeseries\": [\n {\n \"table\": \"<string>\",\n \"column\": \"<string>\",\n \"aggregator\": \"<string>\",\n \"query\": {},\n \"groupBys\": [\n \"<string>\"\n ]\n }\n ],\n \"groupBys\": [\n \"<string>\"\n ],\n \"query\": {}\n }\n ],\n \"aggregationInterval\": 123,\n \"groupBys\": [\n \"<string>\"\n ],\n \"fetchAll\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-bytebeam-api-key", "<api-key>")
req.Header.Add("x-bytebeam-tenant", "<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.post("https://cloud.bytebeam.io/api/v1/panel-data")
.header("x-bytebeam-api-key", "<api-key>")
.header("x-bytebeam-tenant", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"startTime\": 123,\n \"endTime\": 123,\n \"filterBys\": {},\n \"panels\": [\n {\n \"timeseries\": [\n {\n \"table\": \"<string>\",\n \"column\": \"<string>\",\n \"aggregator\": \"<string>\",\n \"query\": {},\n \"groupBys\": [\n \"<string>\"\n ]\n }\n ],\n \"groupBys\": [\n \"<string>\"\n ],\n \"query\": {}\n }\n ],\n \"aggregationInterval\": 123,\n \"groupBys\": [\n \"<string>\"\n ],\n \"fetchAll\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.bytebeam.io/api/v1/panel-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-bytebeam-api-key"] = '<api-key>'
request["x-bytebeam-tenant"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"startTime\": 123,\n \"endTime\": 123,\n \"filterBys\": {},\n \"panels\": [\n {\n \"timeseries\": [\n {\n \"table\": \"<string>\",\n \"column\": \"<string>\",\n \"aggregator\": \"<string>\",\n \"query\": {},\n \"groupBys\": [\n \"<string>\"\n ]\n }\n ],\n \"groupBys\": [\n \"<string>\"\n ],\n \"query\": {}\n }\n ],\n \"aggregationInterval\": 123,\n \"groupBys\": [\n \"<string>\"\n ],\n \"fetchAll\": true\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.data
Get data for panels given in body
POST
/
api
/
v1
/
panel-data
Get data for panels given in body
curl --request POST \
--url https://cloud.bytebeam.io/api/v1/panel-data \
--header 'Content-Type: application/json' \
--header 'x-bytebeam-api-key: <api-key>' \
--header 'x-bytebeam-tenant: <api-key>' \
--data '
{
"startTime": 123,
"endTime": 123,
"filterBys": {},
"panels": [
{
"timeseries": [
{
"table": "<string>",
"column": "<string>",
"aggregator": "<string>",
"query": {},
"groupBys": [
"<string>"
]
}
],
"groupBys": [
"<string>"
],
"query": {}
}
],
"aggregationInterval": 123,
"groupBys": [
"<string>"
],
"fetchAll": true
}
'import requests
url = "https://cloud.bytebeam.io/api/v1/panel-data"
payload = {
"startTime": 123,
"endTime": 123,
"filterBys": {},
"panels": [
{
"timeseries": [
{
"table": "<string>",
"column": "<string>",
"aggregator": "<string>",
"query": {},
"groupBys": ["<string>"]
}
],
"groupBys": ["<string>"],
"query": {}
}
],
"aggregationInterval": 123,
"groupBys": ["<string>"],
"fetchAll": True
}
headers = {
"x-bytebeam-api-key": "<api-key>",
"x-bytebeam-tenant": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-bytebeam-api-key': '<api-key>',
'x-bytebeam-tenant': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
startTime: 123,
endTime: 123,
filterBys: {},
panels: [
{
timeseries: [
{
table: '<string>',
column: '<string>',
aggregator: '<string>',
query: {},
groupBys: ['<string>']
}
],
groupBys: ['<string>'],
query: {}
}
],
aggregationInterval: 123,
groupBys: ['<string>'],
fetchAll: true
})
};
fetch('https://cloud.bytebeam.io/api/v1/panel-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.bytebeam.io/api/v1/panel-data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'startTime' => 123,
'endTime' => 123,
'filterBys' => [
],
'panels' => [
[
'timeseries' => [
[
'table' => '<string>',
'column' => '<string>',
'aggregator' => '<string>',
'query' => [
],
'groupBys' => [
'<string>'
]
]
],
'groupBys' => [
'<string>'
],
'query' => [
]
]
],
'aggregationInterval' => 123,
'groupBys' => [
'<string>'
],
'fetchAll' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-bytebeam-api-key: <api-key>",
"x-bytebeam-tenant: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloud.bytebeam.io/api/v1/panel-data"
payload := strings.NewReader("{\n \"startTime\": 123,\n \"endTime\": 123,\n \"filterBys\": {},\n \"panels\": [\n {\n \"timeseries\": [\n {\n \"table\": \"<string>\",\n \"column\": \"<string>\",\n \"aggregator\": \"<string>\",\n \"query\": {},\n \"groupBys\": [\n \"<string>\"\n ]\n }\n ],\n \"groupBys\": [\n \"<string>\"\n ],\n \"query\": {}\n }\n ],\n \"aggregationInterval\": 123,\n \"groupBys\": [\n \"<string>\"\n ],\n \"fetchAll\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-bytebeam-api-key", "<api-key>")
req.Header.Add("x-bytebeam-tenant", "<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.post("https://cloud.bytebeam.io/api/v1/panel-data")
.header("x-bytebeam-api-key", "<api-key>")
.header("x-bytebeam-tenant", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"startTime\": 123,\n \"endTime\": 123,\n \"filterBys\": {},\n \"panels\": [\n {\n \"timeseries\": [\n {\n \"table\": \"<string>\",\n \"column\": \"<string>\",\n \"aggregator\": \"<string>\",\n \"query\": {},\n \"groupBys\": [\n \"<string>\"\n ]\n }\n ],\n \"groupBys\": [\n \"<string>\"\n ],\n \"query\": {}\n }\n ],\n \"aggregationInterval\": 123,\n \"groupBys\": [\n \"<string>\"\n ],\n \"fetchAll\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.bytebeam.io/api/v1/panel-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-bytebeam-api-key"] = '<api-key>'
request["x-bytebeam-tenant"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"startTime\": 123,\n \"endTime\": 123,\n \"filterBys\": {},\n \"panels\": [\n {\n \"timeseries\": [\n {\n \"table\": \"<string>\",\n \"column\": \"<string>\",\n \"aggregator\": \"<string>\",\n \"query\": {},\n \"groupBys\": [\n \"<string>\"\n ]\n }\n ],\n \"groupBys\": [\n \"<string>\"\n ],\n \"query\": {}\n }\n ],\n \"aggregationInterval\": 123,\n \"groupBys\": [\n \"<string>\"\n ],\n \"fetchAll\": true\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.Authorizations
API key required to authenticate requests.
Tenant(Project) name required to identify the project.
Body
application/jsonapplication/transit+msgpackapplication/transit+jsonapplication/edn
Response
default - undefined
⌘I