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

docs: describe ordering in http query results #6024

Merged
merged 4 commits into from
May 20, 2022
Merged
Changes from 1 commit
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
13 changes: 11 additions & 2 deletions docs/sources/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ And `<stream value>` is:
}
```

The items in the `values` array are sorted by their timestamp in a descending (when using `direction=backward`) or ascending (when using `direction=forward`) order.
gabor marked this conversation as resolved.
Show resolved Hide resolved

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

### Examples
Expand Down Expand Up @@ -273,12 +275,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 their timestamp in an ascending order.
gabor marked this conversation as resolved.
Show resolved Hide resolved

And `<stream value>` is:

```
Expand All @@ -296,6 +303,8 @@ And `<stream value>` is:
}
```

The items in the `values` array are sorted by their timestamp in a descending (when using `direction=backward`) or ascending (when using `direction=forward`) order.
gabor marked this conversation as resolved.
Show resolved Hide resolved

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

### Examples
Expand Down