Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Pass additional json data #104

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ module.exports = function(grunt) {
babel: {
options: {
sourceMap: true,
presets: ['es2015']
presets: ['env'],
plugins: ['transform-object-rest-spread']
},
dist: {
options: {
plugins: ['transform-es2015-modules-systemjs', 'transform-es2015-for-of']
},
files: [{
cwd: 'src',
expand: true,
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ information.

### Query API

Example `timeserie` request
Example `timeseries` request
``` javascript
{
"panelId": 1,
Expand All @@ -50,8 +50,8 @@ Example `timeserie` request
"interval": "30s",
"intervalMs": 30000,
"targets": [
{ "target": "upper_50", "refId": "A", "type": "timeserie" },
{ "target": "upper_75", "refId": "B", "type": "timeserie" }
{ "target": "upper_50", "refId": "A", "type": "timeseries", "data": { "additional": "optional json" } },
{ "target": "upper_75", "refId": "B", "type": "timeseries" }
],
"adhocFilters": [
"key": "City"
Expand All @@ -63,7 +63,7 @@ Example `timeserie` request
}
```

Example `timeserie` response
Example `timeseries` response
``` javascript
[
{
Expand Down
8 changes: 4 additions & 4 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ information.

### Query API

Example `timeserie` request
Example `timeseries` request
``` javascript
{
"panelId": 1,
Expand All @@ -50,8 +50,8 @@ Example `timeserie` request
"interval": "30s",
"intervalMs": 30000,
"targets": [
{ "target": "upper_50", "refId": "A", "type": "timeserie" },
{ "target": "upper_75", "refId": "B", "type": "timeserie" }
{ "target": "upper_50", "refId": "A", "type": "timeseries", "data": { "additional": "optional json" } },
{ "target": "upper_75", "refId": "B", "type": "timeseries" }
],
"adhocFilters": [
"key": "City"
Expand All @@ -63,7 +63,7 @@ Example `timeserie` request
}
```

Example `timeserie` response
Example `timeseries` response
``` javascript
[
{
Expand Down
Loading