Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceMongoDB = "MongoDB" ServiceRedis = "Redis" ServiceRabbitMQ = "RabbitMQ" ServiceTimescaleDB = "TimescaleDB" )
Variables ¶
This section is empty.
Functions ¶
func ValidateEngineParameters ¶
func ValidateEngineParameters(sl validator.StructLevel)
func ValidateLimitParameters ¶
func ValidateLimitParameters(sl validator.StructLevel)
Types ¶
type API ¶
type Engine ¶
type Engine struct { Name string `json:"name,omitempty"` Instances *int `json:"instances,omitempty"` MinInstances *int `json:"min_instances,omitempty"` OptimalInstances *int `json:"optimal_instances,omitempty"` QueueLength *int `json:"queue_length,omitempty"` Time *datetime.CpsTime `json:"time,omitempty" swaggertype:"integer"` IsRunning bool `json:"is_running"` IsQueueOverflown bool `json:"is_queue_overflown"` IsTooFewInstances bool `json:"is_too_few_instances"` IsDiffInstancesConfig bool `json:"is_diff_instances_config"` }
type Engines ¶
type Info ¶
type Status ¶
type Store ¶
type Store interface { Load(ctx context.Context) GetInfo() Info GetStatus() Status GetEnginesOrder() Graph GetParameters(ctx context.Context) (config.HealthCheckParameters, error) UpdateParameters(ctx context.Context, params config.HealthCheckParameters) (config.HealthCheckParameters, error) }
func NewStore ¶
func NewStore( dbClient mongo.DbClient, manager engine.RunInfoManager, configAdapter config.HealthCheckAdapter, configProvider *config.BaseHealthCheckConfigProvider, logger zerolog.Logger, websocketHub websocket.Hub, ) Store
Click to show internal directories.
Click to hide internal directories.