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) Period ¶
Period returns check bundle period (intetrval between when broker should make requests)
func (*Bundle) Refresh ¶
Refresh re-loads the check bundle using the API (sets metric states if check bundle is managed)
func (*Bundle) SubmissionURL ¶ added in v1.1.0
SubmissionURL returns the submission url (derived from mtev_reverse)
type ErrNotActive ¶
func (*ErrNotActive) Error ¶
func (e *ErrNotActive) Error() string
type MetricFilterFile ¶ added in v1.0.8
type MetricFilterFile struct {
Filters [][]string `json:"metric_filters"`
}
Click to show internal directories.
Click to hide internal directories.