Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Get(url string) ([]byte, error) FetchBroker(cid apiclient.CIDType) (*apiclient.Broker, error) FetchBrokers() (*[]apiclient.Broker, error) CreateCheckBundle(cfg *apiclient.CheckBundle) (*apiclient.CheckBundle, error) FetchCheckBundleMetrics(cid apiclient.CIDType) (*apiclient.CheckBundleMetrics, error) FetchCheckBundle(cid apiclient.CIDType) (*apiclient.CheckBundle, error) SearchCheckBundles(searchCriteria *apiclient.SearchQueryType, filterCriteria *apiclient.SearchFilterType) (*[]apiclient.CheckBundle, error) UpdateCheckBundle(cfg *apiclient.CheckBundle) (*apiclient.CheckBundle, error) UpdateCheckBundleMetrics(cfg *apiclient.CheckBundleMetrics) (*apiclient.CheckBundleMetrics, error) }
API interface abstraction of circonus api (for mocking)
type Check ¶
Check exposes the check bundle management interface
func (*Check) EnableNewMetrics ¶
EnableNewMetrics updates the check bundle enabling any new metrics
func (*Check) GetReverseConfig ¶
func (c *Check) GetReverseConfig() (*ReverseConfig, error)
GetReverseConfig returns the reverse configuration to use for the broker
func (*Check) RefreshCheckConfig ¶
RefreshCheckConfig re-loads the check bundle using the API and reconfigures reverse (if needed)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.