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

[Feature] support aggregate function gauge_agg #1365

Closed
8 of 17 tasks
yukkit opened this issue Jul 18, 2023 · 0 comments
Closed
8 of 17 tasks

[Feature] support aggregate function gauge_agg #1365

yukkit opened this issue Jul 18, 2023 · 0 comments
Assignees
Labels
component/function documentation Improvements or additions to documentation
Milestone

Comments

@yukkit
Copy link
Contributor

yukkit commented Jul 18, 2023

Is your feature request related to a problem? Please describe.

Aggregate gauge data into an intermediate form for use by other functions

  • corr
  • delta
  • idelta_left
  • idelta_right
  • intercept
  • rate
  • irate_left
  • irate_right
  • num_changes
  • num_elements
  • slope
  • time_delta
  • gauge_zero_time
  • extrapolated_delta
  • extrapolated_rate
  • interpolated_delta
  • interpolated_rate

Describe the solution you'd like

Syntax

--- Returns the aggregated result for a given gauge 'gauge column'
gauge_agg(<time>, <gauge>): <GaugeAgg>

ignore null value

  • arguments
time: timestamps associated with each state reading
gauge: the value of the gauge at each point. Support Float64 data type, and all types that can be implicitly converted to Float64.

Describe alternatives you've considered

Additional context

timescaledb
https://docs.timescale.com/api/latest/hyperfunctions/counters-and-gauges/gauge_agg#gauge_agg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/function documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants