Versions in this module Expand all Collapse all v1 v1.6.4 Nov 22, 2019 Changes in this version type QueryResponse + ErrMessage string + ErrType string type Source + SecondaryAxis bool v1.6.2 Jul 2, 2019 Changes in this version + const AlertTypeClassic + const AlertTypeThreshold v1.6.1 Jun 27, 2019 Changes in this version + const Last24Hours + const Last3Hours + const Last6Hours + const LastDay + const LastHour + const LastWeek + type Alert struct + AdditionalInfo string + AlertType string + Condition string + Conditions map[string]string + DisplayExpression string + FailingHostLabelPairs []SourceLabelPair + ID *string + InMaintenanceHostLabelPairs []SourceLabelPair + Minutes int + Name string + NotificationResendFrequencyMinutes int + ResolveAfterMinutes int + Severity string + SeverityList []string + Status []string + Tags []string + Target string + Targets map[string]string + func (a *Alert) MarshalJSON() ([]byte, error) + func (a *Alert) UnmarshalJSON(b []byte) error + type Alerts struct + func (a Alerts) Create(alert *Alert) error + func (a Alerts) Delete(alert *Alert) error + func (a Alerts) Find(filter []*SearchCondition) ([]*Alert, error) + func (a Alerts) Get(alert *Alert) error + func (a Alerts) Update(alert *Alert) error + type Chart struct + Base int + ChartSettings ChartSetting + Description string + IncludeObsoleteMetrics bool + InterpolatePoints bool + Name string + NoDefaultEvents bool + Sources []Source + Summarization string + Units string + type ChartSetting struct + AutoColumnTags bool + ColumnTags string + CustomTags []string + ExpectedDataSpacing int + FixedLegendDisplayStats []string + FixedLegendEnabled bool + FixedLegendFilterField string + FixedLegendFilterLimit int + FixedLegendFilterSort string + FixedLegendHideLabel bool + FixedLegendPosition string + FixedLegendUseRawStats bool + GroupBySource bool + InvertDynamicLegendHoverControl bool + LineType string + Max float32 + Min float32 + NumTags int + PlainMarkdownContent string + ShowHosts bool + ShowLabels bool + ShowRawValues bool + SortValuesDescending bool + SparklineDecimalPrecision int + SparklineDisplayColor string + SparklineDisplayFontSize string + SparklineDisplayHorizontalPosition string + SparklineDisplayPostfix string + SparklineDisplayPrefix string + SparklineDisplayValueType string + SparklineDisplayVerticalPosition string + SparklineFillColor string + SparklineLineColor string + SparklineSize string + SparklineValueColorMapApplyTo string + SparklineValueColorMapColors []string + SparklineValueColorMapValues []int + SparklineValueColorMapValuesV2 []float32 + SparklineValueTextMapText []string + SparklineValueTextMapThresholds []float32 + StackType string + TagMode string + TimeBasedColoring bool + Type string + WindowSize int + Windowing string + Xmax float32 + Xmin float32 + Y0ScaleSIBy1024 bool + Y0UnitAutoscaling bool + Y1Max float32 + Y1Min float32 + Y1ScaleSIBy1024 bool + Y1UnitAutoscaling bool + Y1Units string + Ymax float32 + Ymin float32 + type Client struct + BaseURL *url.URL + Config *Config + func NewClient(config *Config) (*Client, error) + func (c *Client) Alerts() *Alerts + func (c *Client) Dashboards() *Dashboards + func (c *Client) Debug(enable bool) + func (c *Client) Events() *Events + func (c *Client) NewQuery(params *QueryParams) *Query + func (c *Client) NewSearch(searchType string, params *SearchParams) *Search + func (c *Client) Targets() *Targets + func (c Client) Do(req *http.Request) (io.ReadCloser, error) + func (c Client) NewRequest(method, path string, params *map[string]string, body []byte) (*http.Request, error) + type Config struct + Address string + HttpProxy string + SkipTLSVerify bool + Token string + type Dashboard struct + ChartTitleBgColor string + ChartTitleColor string + ChartTitleScalar int + CreatedEpochMillis int64 + CreatorId string + Customer string + DefaultEndTime int + DefaultStartTime int + DefaultTimeWindow string + Deleted bool + Description string + DisplayDescription bool + DisplayQueryParameters bool + DisplaySectionTableOfContents bool + EventFilterType string + EventQuery string + Favorite bool + Hidden bool + ID string + Name string + NumCharts int + NumFavorites int + ParameterDetails map[string]ParameterDetail + Parameters struct{} + Sections []Section + SystemOwned bool + Tags []string + UpdatedEpochMillis int64 + UpdaterId string + Url string + ViewsLastDay int + ViewsLastMonth int + ViewsLastWeek int + func (a *Dashboard) MarshalJSON() ([]byte, error) + func (a *Dashboard) UnmarshalJSON(b []byte) error + type Dashboards struct + func (a Dashboards) Create(dashboard *Dashboard) error + func (a Dashboards) Delete(dashboard *Dashboard) error + func (a Dashboards) Find(filter []*SearchCondition) ([]*Dashboard, error) + func (a Dashboards) Get(dashboard *Dashboard) error + func (a Dashboards) Update(dashboard *Dashboard) error + type DataPoint []float64 + type Event struct + Details string + EndTime int64 + ID *string + Instantaneous bool + Name string + Severity string + StartTime int64 + Tags []string + Type string + func (e *Event) MarshalJSON() ([]byte, error) + func (e *Event) UnmarshalJSON(b []byte) error + type Events struct + func (a Events) Create(event *Event) error + func (e Events) Close(event *Event) error + func (e Events) Delete(event *Event) error + func (e Events) Find(filter []*SearchCondition, timeRange *TimeRange) ([]*Event, error) + func (e Events) FindByID(id string) (*Event, error) + func (e Events) Update(event *Event) error + type ParameterDetail struct + DefaultValue string + DynamicFieldType string + HideFromView bool + Label string + ParameterType string + QueryValue string + TagKey string + ValuesToReadableStrings map[string]string + type Query struct + Params *QueryParams + Response *QueryResponse + func (q *Query) Execute() (*QueryResponse, error) + func (q *Query) SetEndTime(endTime time.Time) + func (q *Query) SetStartTime(seconds int64) error + type QueryParams struct + AutoEvents bool + EndTime string + Granularity string + IncludeObsoleteMetrics bool + ListMode bool + MaxPoints string + Name string + QueryString string + SeriesOutsideTimeWindow bool + StartTime string + StrictMode bool + SummarizationStrategy string + func NewQueryParams(query string) *QueryParams + func NewQueryParamsNoStrict(query string) *QueryParams + type QueryResponse struct + Granularity int + Hosts []string + Name string + Query string + RawResponse *bytes.Reader + Stats map[string]int + TimeSeries []TimeSeries + Warnings string + func (qr *QueryResponse) UnmarshalJSON(data []byte) error + func (qr QueryResponse) String() string + type Row struct + Charts []Chart + HeightFactor int + Name string + type Search struct + Deleted bool + Params *SearchParams + Type string + func (s *Search) Execute() (*SearchResponse, error) + type SearchCondition struct + Key string + MatchingMethod string + Value string + type SearchParams struct + Conditions []*SearchCondition + Limit int + Offset int + TimeRange *TimeRange + type SearchResponse struct + NextOffset int + RawResponse *bytes.Reader + Response struct{ ... } + type Section struct + Name string + Rows []Row + type Source struct + Disabled bool + Name string + Query string + QuerybuilderEnabled bool + ScatterPlotSource string + SourceColor string + SourceDescription string + type SourceLabelPair struct + Firing int + Host string + type Target struct + ContentType string + CustomHeaders map[string]string + Description string + EmailSubject string + ID *string + IsHtmlContent bool + Method string + Recipient string + Template string + Title string + Triggers []string + type Targets struct + func (t Targets) Create(target *Target) error + func (t Targets) Delete(target *Target) error + func (t Targets) Find(filter []*SearchCondition) ([]*Target, error) + func (t Targets) Get(target *Target) error + func (t Targets) Update(target *Target) error + type TimeRange struct + EndTime int64 + StartTime int64 + func NewTimeRange(endTime, period int64) (*TimeRange, error) + type TimeSeries struct + DataPoints []DataPoint + Host string + Label string + Tags map[string]string + type Wavefronter interface + Do func(req *http.Request) (io.ReadCloser, error) + NewRequest func(method, path string, params *map[string]string, body []byte) (*http.Request, error)