Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client sends product telemetry reports to Upgrade Server.
func NewClient ¶
NewClient creates a product telemetry client for the supplied Upgrade Server base URL.
func (*Client) Send ¶
func (c *Client) Send(ctx context.Context, request clienttypes.ProductTelemetryRequest) error
Send submits a product telemetry request. The request is encoded once so every retry sends the same installation ID, reported time, and metrics.
type Consent ¶
type Consent struct {
// contains filtered or unexported fields
}
Consent persists and resolves the installation-wide product telemetry consent state.
func (*Consent) DisabledByOperator ¶ added in v0.26.2
func (*Consent) Get ¶
Get returns effective consent. A nil value means consent is undecided. When analytics is on or off, Get returns the operator's choice without consulting persistence.
func (*Consent) UserConfigurable ¶ added in v0.26.2
type Mode ¶ added in v0.26.2
type Mode string
Mode controls whether consent is user-managed or set by the operator.
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher collects and sends product telemetry shortly after startup and at a jittered daily UTC time.
func NewPublisher ¶
func NewPublisher(ctx context.Context, consent *Consent, gatewayClient *gatewayclient.Client, storageClient storage.Client, licenseProvider licenseEntitlementProvider, engine string) *Publisher
NewPublisher starts a product telemetry publisher, or returns nil when the operator has disabled analytics.