Ejemplo n.º 1
0
func (rule *Rule) EvalRaw(timestamp *time.Time) (vector ast.Vector) {
	return ast.EvalVectorInstant(rule.vector, *timestamp)
}
Ejemplo n.º 2
0
func (rule *AlertingRule) EvalRaw(timestamp clientmodel.Timestamp, storage metric.PreloadingPersistence) (ast.Vector, error) {
	return ast.EvalVectorInstant(rule.vector, timestamp, storage, stats.NewTimerGroup())
}
Ejemplo n.º 3
0
// EvalRaw returns the raw value of the rule expression, without creating alerts.
func (rule *AlertingRule) EvalRaw(timestamp clientmodel.Timestamp, storage local.Storage) (ast.Vector, error) {
	return ast.EvalVectorInstant(rule.Vector, timestamp, storage, stats.NewTimerGroup())
}