Export raw data for visual in CSV, JSON or XLSX format.
curl --request POST \
--url http://10.2.4.166:8080/composer/api/export/rawdataforvisual \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"query": {
"cid": "<string>",
"tags": {},
"sourceId": "<string>",
"sourceName": "<string>",
"queries": [
"<unknown>"
],
"time": {
"timeField": "<string>",
"from": "<string>",
"to": "<string>"
},
"player": {
"stopTime": "<string>",
"speed": 123,
"pauseAfterRead": true
},
"ttl": 123,
"auditInfo": {
"dashboardId": "<string>",
"visualId": "<string>",
"formula": "<string>",
"expression": "<string>"
},
"composite": true
},
"formatting": {
"xlsx": {
"notes": [
{
"title": "<string>",
"description": "<string>"
}
],
"sheetName": "<string>"
}
},
"postProcessing": {
"sorts": [
{
"field": {
"field": {
"name": "<string>"
}
}
}
],
"limit": 123
},
"fileName": "<string>"
}
'import requests
url = "http://10.2.4.166:8080/composer/api/export/rawdataforvisual"
payload = {
"query": {
"cid": "<string>",
"tags": {},
"sourceId": "<string>",
"sourceName": "<string>",
"queries": ["<unknown>"],
"time": {
"timeField": "<string>",
"from": "<string>",
"to": "<string>"
},
"player": {
"stopTime": "<string>",
"speed": 123,
"pauseAfterRead": True
},
"ttl": 123,
"auditInfo": {
"dashboardId": "<string>",
"visualId": "<string>",
"formula": "<string>",
"expression": "<string>"
},
"composite": True
},
"formatting": { "xlsx": {
"notes": [
{
"title": "<string>",
"description": "<string>"
}
],
"sheetName": "<string>"
} },
"postProcessing": {
"sorts": [{ "field": { "field": { "name": "<string>" } } }],
"limit": 123
},
"fileName": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: {
cid: '<string>',
tags: {},
sourceId: '<string>',
sourceName: '<string>',
queries: ['<unknown>'],
time: {timeField: '<string>', from: '<string>', to: '<string>'},
player: {stopTime: '<string>', speed: 123, pauseAfterRead: true},
ttl: 123,
auditInfo: {
dashboardId: '<string>',
visualId: '<string>',
formula: '<string>',
expression: '<string>'
},
composite: true
},
formatting: {
xlsx: {notes: [{title: '<string>', description: '<string>'}], sheetName: '<string>'}
},
postProcessing: {sorts: [{field: {field: {name: '<string>'}}}], limit: 123},
fileName: '<string>'
})
};
fetch('http://10.2.4.166:8080/composer/api/export/rawdataforvisual', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://10.2.4.166:8080/composer/api/export/rawdataforvisual",
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([
'query' => [
'cid' => '<string>',
'tags' => [
],
'sourceId' => '<string>',
'sourceName' => '<string>',
'queries' => [
'<unknown>'
],
'time' => [
'timeField' => '<string>',
'from' => '<string>',
'to' => '<string>'
],
'player' => [
'stopTime' => '<string>',
'speed' => 123,
'pauseAfterRead' => true
],
'ttl' => 123,
'auditInfo' => [
'dashboardId' => '<string>',
'visualId' => '<string>',
'formula' => '<string>',
'expression' => '<string>'
],
'composite' => true
],
'formatting' => [
'xlsx' => [
'notes' => [
[
'title' => '<string>',
'description' => '<string>'
]
],
'sheetName' => '<string>'
]
],
'postProcessing' => [
'sorts' => [
[
'field' => [
'field' => [
'name' => '<string>'
]
]
]
],
'limit' => 123
],
'fileName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$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 := "http://10.2.4.166:8080/composer/api/export/rawdataforvisual"
payload := strings.NewReader("{\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"formatting\": {\n \"xlsx\": {\n \"notes\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sheetName\": \"<string>\"\n }\n },\n \"postProcessing\": {\n \"sorts\": [\n {\n \"field\": {\n \"field\": {\n \"name\": \"<string>\"\n }\n }\n }\n ],\n \"limit\": 123\n },\n \"fileName\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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("http://10.2.4.166:8080/composer/api/export/rawdataforvisual")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"formatting\": {\n \"xlsx\": {\n \"notes\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sheetName\": \"<string>\"\n }\n },\n \"postProcessing\": {\n \"sorts\": [\n {\n \"field\": {\n \"field\": {\n \"name\": \"<string>\"\n }\n }\n }\n ],\n \"limit\": 123\n },\n \"fileName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://10.2.4.166:8080/composer/api/export/rawdataforvisual")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"formatting\": {\n \"xlsx\": {\n \"notes\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sheetName\": \"<string>\"\n }\n },\n \"postProcessing\": {\n \"sorts\": [\n {\n \"field\": {\n \"field\": {\n \"name\": \"<string>\"\n }\n }\n }\n ],\n \"limit\": 123\n },\n \"fileName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"details": "<string>",
"message": "<string>",
"path": "<string>",
"status": "<string>",
"code": "<string>",
"errorCode": "<string>",
"timestamp": "<string>",
"problems": [
{
"name": "<string>",
"message": "<string>",
"level": "ERROR",
"dependencies": {}
}
]
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}Export raw data for visual in CSV, JSON or XLSX format.
Requires DATA_ACCESS permission on the source
Export raw data for visual in CSV, JSON or XLSX format.
curl --request POST \
--url http://10.2.4.166:8080/composer/api/export/rawdataforvisual \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"query": {
"cid": "<string>",
"tags": {},
"sourceId": "<string>",
"sourceName": "<string>",
"queries": [
"<unknown>"
],
"time": {
"timeField": "<string>",
"from": "<string>",
"to": "<string>"
},
"player": {
"stopTime": "<string>",
"speed": 123,
"pauseAfterRead": true
},
"ttl": 123,
"auditInfo": {
"dashboardId": "<string>",
"visualId": "<string>",
"formula": "<string>",
"expression": "<string>"
},
"composite": true
},
"formatting": {
"xlsx": {
"notes": [
{
"title": "<string>",
"description": "<string>"
}
],
"sheetName": "<string>"
}
},
"postProcessing": {
"sorts": [
{
"field": {
"field": {
"name": "<string>"
}
}
}
],
"limit": 123
},
"fileName": "<string>"
}
'import requests
url = "http://10.2.4.166:8080/composer/api/export/rawdataforvisual"
payload = {
"query": {
"cid": "<string>",
"tags": {},
"sourceId": "<string>",
"sourceName": "<string>",
"queries": ["<unknown>"],
"time": {
"timeField": "<string>",
"from": "<string>",
"to": "<string>"
},
"player": {
"stopTime": "<string>",
"speed": 123,
"pauseAfterRead": True
},
"ttl": 123,
"auditInfo": {
"dashboardId": "<string>",
"visualId": "<string>",
"formula": "<string>",
"expression": "<string>"
},
"composite": True
},
"formatting": { "xlsx": {
"notes": [
{
"title": "<string>",
"description": "<string>"
}
],
"sheetName": "<string>"
} },
"postProcessing": {
"sorts": [{ "field": { "field": { "name": "<string>" } } }],
"limit": 123
},
"fileName": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: {
cid: '<string>',
tags: {},
sourceId: '<string>',
sourceName: '<string>',
queries: ['<unknown>'],
time: {timeField: '<string>', from: '<string>', to: '<string>'},
player: {stopTime: '<string>', speed: 123, pauseAfterRead: true},
ttl: 123,
auditInfo: {
dashboardId: '<string>',
visualId: '<string>',
formula: '<string>',
expression: '<string>'
},
composite: true
},
formatting: {
xlsx: {notes: [{title: '<string>', description: '<string>'}], sheetName: '<string>'}
},
postProcessing: {sorts: [{field: {field: {name: '<string>'}}}], limit: 123},
fileName: '<string>'
})
};
fetch('http://10.2.4.166:8080/composer/api/export/rawdataforvisual', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://10.2.4.166:8080/composer/api/export/rawdataforvisual",
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([
'query' => [
'cid' => '<string>',
'tags' => [
],
'sourceId' => '<string>',
'sourceName' => '<string>',
'queries' => [
'<unknown>'
],
'time' => [
'timeField' => '<string>',
'from' => '<string>',
'to' => '<string>'
],
'player' => [
'stopTime' => '<string>',
'speed' => 123,
'pauseAfterRead' => true
],
'ttl' => 123,
'auditInfo' => [
'dashboardId' => '<string>',
'visualId' => '<string>',
'formula' => '<string>',
'expression' => '<string>'
],
'composite' => true
],
'formatting' => [
'xlsx' => [
'notes' => [
[
'title' => '<string>',
'description' => '<string>'
]
],
'sheetName' => '<string>'
]
],
'postProcessing' => [
'sorts' => [
[
'field' => [
'field' => [
'name' => '<string>'
]
]
]
],
'limit' => 123
],
'fileName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$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 := "http://10.2.4.166:8080/composer/api/export/rawdataforvisual"
payload := strings.NewReader("{\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"formatting\": {\n \"xlsx\": {\n \"notes\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sheetName\": \"<string>\"\n }\n },\n \"postProcessing\": {\n \"sorts\": [\n {\n \"field\": {\n \"field\": {\n \"name\": \"<string>\"\n }\n }\n }\n ],\n \"limit\": 123\n },\n \"fileName\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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("http://10.2.4.166:8080/composer/api/export/rawdataforvisual")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"formatting\": {\n \"xlsx\": {\n \"notes\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sheetName\": \"<string>\"\n }\n },\n \"postProcessing\": {\n \"sorts\": [\n {\n \"field\": {\n \"field\": {\n \"name\": \"<string>\"\n }\n }\n }\n ],\n \"limit\": 123\n },\n \"fileName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://10.2.4.166:8080/composer/api/export/rawdataforvisual")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": {\n \"cid\": \"<string>\",\n \"tags\": {},\n \"sourceId\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"queries\": [\n \"<unknown>\"\n ],\n \"time\": {\n \"timeField\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\"\n },\n \"player\": {\n \"stopTime\": \"<string>\",\n \"speed\": 123,\n \"pauseAfterRead\": true\n },\n \"ttl\": 123,\n \"auditInfo\": {\n \"dashboardId\": \"<string>\",\n \"visualId\": \"<string>\",\n \"formula\": \"<string>\",\n \"expression\": \"<string>\"\n },\n \"composite\": true\n },\n \"formatting\": {\n \"xlsx\": {\n \"notes\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sheetName\": \"<string>\"\n }\n },\n \"postProcessing\": {\n \"sorts\": [\n {\n \"field\": {\n \"field\": {\n \"name\": \"<string>\"\n }\n }\n }\n ],\n \"limit\": 123\n },\n \"fileName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"details": "<string>",
"message": "<string>",
"path": "<string>",
"status": "<string>",
"code": "<string>",
"errorCode": "<string>",
"timestamp": "<string>",
"problems": [
{
"name": "<string>",
"message": "<string>",
"level": "ERROR",
"dependencies": {}
}
]
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 123,
"error": "<string>",
"message": "<string>",
"path": "<string>"
}Authorizations
HTTP Basic authentication using global administrator credentials (username and password).
Body
application/json
Raw data for visual export resource.
Response
The data were exported
Was this page helpful?