Documentation
¶
Overview ¶
Package postgres implements the Postgres workload agent service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsInterface ¶
type MetricsInterface interface {
InitDB(ctx context.Context, gceService postgresmetrics.GceInterface) error
CollectWlmMetricsOnce(ctx context.Context, dwActivated bool) (*workloadmanager.WorkloadMetrics, error)
CollectDBCenterMetricsOnce(ctx context.Context) error
}
MetricsInterface defines an interface for postgresmetrics.PostgresMetrics to allow faking
type Service ¶
type Service struct {
Config *configpb.Configuration
CloudProps *configpb.CloudProperties
CommonCh <-chan *servicecommunication.Message
WLMClient workloadmanager.WLMWriter
DBcenterClient databasecenter.Client
// contains filtered or unexported fields
}
Service implements the interfaces for Postgres workload agent service.
func (*Service) ExpectedMinDuration ¶
ExpectedMinDuration returns the expected minimum duration for the Postgres service. Used by the recovery handler to determine if the service ran long enough to be considered successful.