Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support GraphQL subscriptions #60

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ annotations, and dashboard variables.
- Alias by is used to alter the name of the field displayed in the legend.
`$field_<field.name>` is substituted with the values of the field and
`$fieldName` is substituted with the name of the field.
- [GraphQL subscriptions](https://www.apollographql.com/docs/apollo-server/data/subscriptions/) supported.

# Screenshots

Expand Down Expand Up @@ -76,6 +77,21 @@ query {
- Time path: `timestamp`
- Time format: `MM.DD.YYYY HHmmss`

## Subscriptions

```graphql
subscription {
data: simple_series {
Time: timestamp
value
}
}
```

Subscriptions will automatically update the dashboard as soon as new data is available.
Data will be pushed by the GraphQL endpoint, refreshing the dashboard manually is not necessary.
Only supported when using the `Browser` access option.

## Alias and group by

```graphql
Expand Down
16 changes: 16 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ annotations, and dashboard variables.
- Alias by is used to alter the name of the field displayed in the legend.
`$field_<field.name>` is substituted with the values of the field and
`$fieldName` is substituted with the name of the field.
- [GraphQL subscriptions](https://www.apollographql.com/docs/apollo-server/data/subscriptions/) supported.

# Screenshots

Expand Down Expand Up @@ -76,6 +77,21 @@ query {
- Time path: `timestamp`
- Time format: `MM.DD.YYYY HHmmss`

## Subscriptions

```graphql
subscription {
data: simple_series {
Time: timestamp
value
}
}
```

Subscriptions will automatically update the dashboard as soon as new data is available.
Data will be pushed by the GraphQL endpoint, refreshing the dashboard manually is not necessary.
Only supported when using the `Browser` access option.

## Alias and group by

```graphql
Expand Down
Loading