Skip to content

Commit

Permalink
add aggregated functions for kcmas
Browse files Browse the repository at this point in the history
  • Loading branch information
waynepeking348 committed Aug 29, 2023
1 parent cf744cd commit 350b7e2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkg/metric/consts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
Copyright 2022 The Katalyst Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package metric

// aggregated functions that'd supported by katalyst now
const (
AggregateIdentifier = "_agg_"

AggregateFunctionAvg = "_agg_avg"
AggregateFunctionSum = "_agg_sum"
AggregateFunctionMax = "_agg_max"
AggregateFunctionMin = "_agg_min"
AggregateFunctionP99 = "_agg_p99"
AggregateFunctionP90 = "_agg_p90"
AggregateFunctionP50 = "_agg_p50"
)

0 comments on commit 350b7e2

Please sign in to comment.