Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
A Backend is a ConfigBackend that uses a local file to determine what schedules to change. The file is read live, so changes to it will reflect immediately in the configs.
func NewBackend ¶
func (*Backend) BuildConfigResponse ¶
func (backend *Backend) BuildConfigResponse(resource *res.Resource) (*pb.MetricConfigResponse, error)
BuildConfigResponse builds a MetricConfigResponse based on the config data and backend settings.
func (*Backend) GetWaitTime ¶
func (*Backend) SetWaitTime ¶
Click to show internal directories.
Click to hide internal directories.