checker: report rules with no targets as StatusUnknown
Skipped tests that are not problematic should be UNKNOWN rather than INFO; "no targets to ping" is a non-evaluation, not a finding.
This commit is contained in:
parent
394d7e8e4c
commit
9972ef512f
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ func (r *pingRule) Evaluate(ctx context.Context, obs sdk.ObservationGetter, opts
|
|||
results := Evaluate(&data, warningRTT, criticalRTT, warningPacketLoss, criticalPacketLoss)
|
||||
if len(results) == 0 {
|
||||
return []sdk.CheckState{{
|
||||
Status: sdk.StatusInfo,
|
||||
Status: sdk.StatusUnknown,
|
||||
Message: "No targets to ping",
|
||||
Code: "ping_no_targets",
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue