Skip to content

Commit

Permalink
docs: describe ordering in http query results (#6024)
Browse files Browse the repository at this point in the history
* docs: describe ordering in http query results

* improved text

Co-authored-by: Karen Miller <84039272+KMiller-Grafana@users.noreply.github.com>

* better text

Co-authored-by: Karen Miller <84039272+KMiller-Grafana@users.noreply.github.com>

* better text

Co-authored-by: Karen Miller <84039272+KMiller-Grafana@users.noreply.github.com>

Co-authored-by: Karen Miller <84039272+KMiller-Grafana@users.noreply.github.com>
  • Loading branch information
gabor and KMiller-Grafana authored May 20, 2022
1 parent 5e465ad commit 0075085
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/sources/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ And `<stream value>` is:
}
```

The items in the `values` array are sorted by timestamp.
The most recent item is first when using `direction=backward`.
The oldest item is first when using `direction=forward`.

See [statistics](#statistics) for information about the statistics returned by Loki.

### Examples
Expand Down Expand Up @@ -277,12 +281,17 @@ Where `<matrix value>` is:
<label key-value pairs>
},
"values": [
<number: second unix epoch>,
<string: value>
[
<number: second unix epoch>,
<string: value>
],
...
]
}
```

The items in the `values` array are sorted by timestamp, and the oldest item is first.

And `<stream value>` is:

```
Expand All @@ -300,6 +309,10 @@ And `<stream value>` is:
}
```

The items in the `values` array are sorted by timestamp.
The most recent item is first when using `direction=backward`.
The oldest item is first when using `direction=forward`.

See [statistics](#statistics) for information about the statistics returned by Loki.

### Examples
Expand Down

0 comments on commit 0075085

Please sign in to comment.