mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-19 08:26:06 +00:00
* fix: initial commit for agents * fix: remove frontend package manger commit * fix: use sqlstore * fix: opamp server changes * fix: tests * fix: tests * fix: minor changes * fix: migrations * fix: use uuid7 * fix: use default orgID for single tenant * fix: pipelines tests fixed * fix: use correct agentId * fix: use orgID in coordinator * fix: fix tests * fix: remove redundant hash check * fix: migration * fix: migration * fix: address comments * fix: rename migration file * fix: remove unwanted orgid code * fix: use orggetter * fix: comment * fix: schema cleanup * fix: minor changes * chore: addresses changes * fix: add back agentID as it used ulid * fix: keep only 50 agents for an orgId * chore: explicitly specify text type * chore: use valuer.uuid for orgid * fix: linting complain * chore: final fixes * chore: minor changes * fix: add not null * fix: fe tests --------- Co-authored-by: Vikrant Gupta <vikrant@signoz.io>
24 lines
729 B
Go
24 lines
729 B
Go
package model
|
|
|
|
import "github.com/SigNoz/signoz/pkg/valuer"
|
|
|
|
// 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.
|
|
RecommendAgentConfig(orgId valuer.UUID, currentConfYaml []byte) (
|
|
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(
|
|
orgId valuer.UUID,
|
|
agentId string,
|
|
configId string,
|
|
err error,
|
|
)
|
|
}
|