Documentation ¶
Index ¶
- type Client
- type Dataview
- func (d Dataview) AddColumn(column string) (err error)
- func (d Dataview) AddRow(rowname string) (err error)
- func (d *Dataview) Close() (err error)
- func (d Dataview) ColumnExists(column string) bool
- func (d Dataview) ColumnNames() (columnnames []string, err error)
- func (d Dataview) CountColumns() (int, error)
- func (d Dataview) CountHeadlines() (int, error)
- func (d Dataview) CountRows() (int, error)
- func (d Dataview) Exists() bool
- func (d Dataview) Headline(headline string, args ...string) (err error)
- func (d Dataview) HeadlineExists(headline string) bool
- func (d Dataview) HeadlineNames() (headlinenames []string, err error)
- func (d *Dataview) Remove() (err error)
- func (d Dataview) RemoveHeadline(headline string) (err error)
- func (d Dataview) RemoveRow(rowname string) (err error)
- func (d Dataview) RowExists(rowname string) bool
- func (d Dataview) RowNames() (rownames []string, err error)
- func (d Dataview) RowNamesOlderThan(datetime time.Time) (rownames []string, err error)
- func (d Dataview) String() string
- func (d Dataview) UpdateCell(rowname string, column string, value interface{}) (err error)
- func (d Dataview) UpdateRow(rowname string, args ...interface{}) (err error)
- func (d Dataview) UpdateTable(columns []string, values ...[]string) (err error)
- type Options
- type Sampler
- func (s Sampler) Dataview(groupName string, viewName string) (d *Dataview)
- func (s *Sampler) Exists() bool
- func (s Sampler) Heartbeat() error
- func (s Sampler) HeartbeatStream(streamname string) error
- func (s Sampler) NewDataview(groupName string, viewName string, args ...[]string) (d *Dataview, err error)
- func (s Sampler) Parameter(name string) (string, error)
- func (s *Sampler) SignOff() error
- func (s Sampler) SignOffStream(streamname string) error
- func (s *Sampler) SignOn(heartbeat time.Duration) error
- func (s Sampler) SignOnStream(streamname string, heartbeat time.Duration) error
- func (s Sampler) String() string
- func (s Sampler) WriteMessage(streamname string, message string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
The Client struct carries the http Client and the url down to successive layers
func (*Client) InsecureSkipVerify ¶ added in v1.2.1
func (c *Client) InsecureSkipVerify()
type Dataview ¶
type Dataview struct { Sampler // contains filtered or unexported fields }
Dataview struct encapsulates the Sampler it belongs to and adds the name. The name is the aggregated for of [group]-name the "-" is always present
func (Dataview) ColumnExists ¶ added in v1.2.1
func (Dataview) ColumnNames ¶
func (Dataview) CountColumns ¶
func (Dataview) CountHeadlines ¶
func (Dataview) HeadlineExists ¶ added in v1.2.1
func (Dataview) HeadlineNames ¶
func (Dataview) RemoveHeadline ¶
func (Dataview) RowNamesOlderThan ¶
func (Dataview) UpdateCell ¶
UpdateCell sets the value of an existing dataview cell given the row and column name The value is formatted using %v so this can be passed any concrete value
No validation is done on args
func (Dataview) UpdateTable ¶
UpdateTable replaces the contents of the dataview table but will not work if the column names have changed. The underlying API requires the caller to remove the original dataview unless you are simply adding new columns
The arguments are a mandatory slice of column names followed by any number of rows in the form of a variadic list of slices of strings
type Sampler ¶
type Sampler struct { Client // contains filtered or unexported fields }
func (Sampler) Heartbeat ¶
Heartbeat sends a heartbeat to reset the watchdog timer activated by SignOn
func (Sampler) HeartbeatStream ¶
func (Sampler) NewDataview ¶
func (s Sampler) NewDataview(groupName string, viewName string, args ...[]string) (d *Dataview, err error)
NewDataview - Create a new Dataview on the Sampler with an optional initial table of data.
If supplied the data is in the form of rows, each of which is a slice of strings containing cell data. The first row must be the column names and the first string in each row must be the rowname (including the first row of column names).
The underlying API appears to accept incomplete data so you can just send a row of column names followed by each row only contains the first N columns each.
func (Sampler) Parameter ¶
Parameter - Get a parameter from the Geneos sampler config as a string It would not be difficult to add numeric and other type getters