2023-10-14 09:16:14 +05:30
|
|
|
package model
|
|
|
|
|
|
2025-06-16 20:07:16 +05:30
|
|
|
import "github.com/SigNoz/signoz/pkg/valuer"
|
|
|
|
|
|
2023-10-14 09:16:14 +05:30
|
|
|
// Interface for source of otel collector config recommendations.
|
|
|
|
|
type AgentConfigProvider interface {
|
|
|
|
|
// Generate recommended config for an agent based on its `currentConfYaml`
|
|
|
|
|
// and current state of user facing settings for agent based features.
|
2025-06-16 20:07:16 +05:30
|
|
|
RecommendAgentConfig(orgId valuer.UUID, currentConfYaml []byte) (
|
2023-10-14 09:16:14 +05:30
|
|
|
recommendedConfYaml []byte,
|
|
|
|
|
// Opaque id of the recommended config, used for reporting deployment status updates
|
|
|
|
|
configId string,
|
|
|
|
|
err error,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Report deployment status for config recommendations generated by RecommendAgentConfig
|
|
|
|
|
ReportConfigDeploymentStatus(
|
2025-06-16 20:07:16 +05:30
|
|
|
orgId valuer.UUID,
|
2023-10-14 09:16:14 +05:30
|
|
|
agentId string,
|
|
|
|
|
configId string,
|
|
|
|
|
err error,
|
|
|
|
|
)
|
|
|
|
|
}
|