series_agg_helper.go
series_agg_helper.go - Overview
-
Overview This file contains a helper function for adding a secondary aggregation to a query, such as averaging, summing, finding the minimum, or finding the maximum of values.
-
Detailed Documentation
AddSecondaryAggregation(seriesAggregator v3.SecondaryAggregation, query string) string
- Purpose: Adds a secondary aggregation (e.g., average, sum, min, max) to an existing query.
- Parameters:
seriesAggregator
: v3.SecondaryAggregation - Specifies the type of secondary aggregation to apply.query
: string - The base query string to which the aggregation will be added.
- Returns:
string
: The modified query string with the secondary aggregation.
-
Code Examples
None
-
Clarity and Accuracy
The documented function has a clear description and parameter/return value explanations.
-
Markdown & MDX Perfection
The documentation uses proper markdown syntax for headings, lists, and code blocks.
-
Edge Cases To Avoid Breaking MDX
- No unescaped special characters.
- No broken links or images.
- No raw HTML tags.
- No HTML comments.
- No tables.
- Lists are properly indented.
- Code blocks and headings are properly closed.
-
Getting Started Relevance Include in Getting Started: NO