Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
a2989085
Commit
a2989085
authored
Nov 26, 2015
by
James Sanford
Committed by
Fabian Reinartz
Jan 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for clamp_max() and clamp_min()
This closes #267
parent
5e8edc56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
functions.md
content/docs/querying/functions.md
+10
-0
No files found.
content/docs/querying/functions.md
View file @
a2989085
...
@@ -51,6 +51,16 @@ For each input time series, `changes(v range-vector)` returns the number of
...
@@ -51,6 +51,16 @@ For each input time series, `changes(v range-vector)` returns the number of
times its value has changed within the provided time range as an instant
times its value has changed within the provided time range as an instant
vector.
vector.
## `clamp_max()`
`clamp_max(v instant-vector, max scalar)`
clamps the sample values of all
elements in
`v`
to have an upper limit of
`max`
.
## `clamp_min()`
`clamp_min(v instant-vector, min scalar)`
clamps the sample values of all
elements in
`v`
to have a lower limit of
`min`
.
## `count_scalar()`
## `count_scalar()`
`count_scalar(v instant-vector)`
returns the number of elements in a time series
`count_scalar(v instant-vector)`
returns the number of elements in a time series
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment