mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-18 05:25:56 +08:00
feat: added comment to better explain the logic
This commit is contained in:
parent
c0beba6ef0
commit
33df34a432
@ -205,6 +205,9 @@ export const useQueryOperations: UseQueryOperations = ({
|
||||
|
||||
newQuery.spaceAggregation = '';
|
||||
|
||||
// Handled query with unknown metric to avoid 400 and 500 errors
|
||||
// With metric value typed and not available then - time - 'avg', space - 'avg'
|
||||
// If not typed - time - 'rate', space - 'sum', op - 'count'
|
||||
if (isEmpty(newQuery.aggregateAttribute.type)) {
|
||||
if (!isEmpty(newQuery.aggregateAttribute.key)) {
|
||||
newQuery.aggregateOperator = MetricAggregateOperator.AVG;
|
||||
|
Loading…
x
Reference in New Issue
Block a user