-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
statusimpl.go
29 lines (22 loc) · 970 Bytes
/
statusimpl.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2024-present Datadog, Inc.
package logsagentpipelineimpl
import (
"github.com/DataDog/datadog-agent/pkg/logs/status/statusinterface"
)
// StatusProvider is the type for logs agent status methods
type StatusProvider struct{}
var _ statusinterface.Status = (*StatusProvider)(nil)
// AddGlobalWarning keeps track of a warning message to display on the status.
func (p StatusProvider) AddGlobalWarning(string, string) {
}
// RemoveGlobalWarning loses track of a warning message
// that does not need to be displayed on the status anymore.
func (p StatusProvider) RemoveGlobalWarning(string) {
}
// NewStatusProvider fetches the status and returns a service wrapping it
func NewStatusProvider() statusinterface.Status {
return &StatusProvider{}
}