Skip to content

Commit 7e37b75

Browse files
committed
Clean up anomaly detection test and schema
1 parent c774585 commit 7e37b75

2 files changed

Lines changed: 6 additions & 21 deletions

File tree

comp/anomalydetection/observer/impl/component_test.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package observerimpl
77

88
import (
9-
"fmt"
109
"strings"
1110
"testing"
1211

@@ -44,19 +43,6 @@ func (noopLogComponent) Flush() {}
4443

4544
var _ log.Component = noopLogComponent{}
4645

47-
// recordingLogComponent captures Warnf messages for assertions.
48-
type recordingLogComponent struct {
49-
noopLogComponent
50-
warns []string
51-
}
52-
53-
func (r *recordingLogComponent) Warnf(format string, args ...interface{}) error {
54-
r.warns = append(r.warns, fmt.Sprintf(format, args...))
55-
return nil
56-
}
57-
58-
var _ log.Component = &recordingLogComponent{}
59-
6046
func requireNoObserverMetricFamilies(t *testing.T, telemetryComp telemetry.Component) {
6147
t.Helper()
6248

pkg/config/schema/yaml/core_schema.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5832,6 +5832,12 @@ properties:
58325832
node_type: section
58335833
type: object
58345834
properties:
5835+
alpha:
5836+
node_type: setting
5837+
type: number
5838+
default: 0.014
5839+
tags:
5840+
- golang_type:float64
58355841
dry_run:
58365842
node_type: section
58375843
type: object
@@ -5840,13 +5846,6 @@ properties:
58405846
node_type: setting
58415847
type: boolean
58425848
default: false
5843-
comment: Run the scorer for telemetry and observer evaluation without emitting scorer outputs.
5844-
alpha:
5845-
node_type: setting
5846-
type: number
5847-
default: 0.014
5848-
tags:
5849-
- golang_type:float64
58505849
high_threshold:
58515850
node_type: setting
58525851
type: number

0 commit comments

Comments
 (0)