Documentation ¶
Index ¶
Constants ¶
View Source
const (
StatusActive = "active"
)
Variables ¶
View Source
var ErrUninitialized = errors.New("uninitialized check bundle")
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { CreateCheckBundle(cfg *apiclient.CheckBundle) (*apiclient.CheckBundle, error) FetchBroker(cid apiclient.CIDType) (*apiclient.Broker, error) FetchBrokers() (*[]apiclient.Broker, error) FetchCheck(cid apiclient.CIDType) (*apiclient.Check, error) FetchCheckBundle(cid apiclient.CIDType) (*apiclient.CheckBundle, error) FetchCheckBundleMetrics(cid apiclient.CIDType) (*apiclient.CheckBundleMetrics, error) Get(url string) ([]byte, 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 Bundle ¶
Bundle exposes the check bundle management interface
func (*Bundle) CheckCID ¶
CheckCID returns the check cid at the passed index within the check bundle's checks array or an error if bundle not initialized
func (*Bundle) EnableNewMetrics ¶
EnableNewMetrics updates the check bundle enabling any new metrics
func (*Bundle) Info ¶
Info returns information about the check bundle (the check bundle cid and list of check cids)
type ErrNotActive ¶
func (*ErrNotActive) Error ¶
func (e *ErrNotActive) Error() string
Click to show internal directories.
Click to hide internal directories.