Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct { ID int `json:"id"` AlertID int `json:"alertId"` DashboardID int `json:"dashboardId"` PanelID int `json:"panelId"` UserID int `json:"userId"` UserName string `json:"userName"` NewState string `json:"newState"` PrevState string `json:"prevState"` Time int64 `json:"time"` TimeEnd int64 `json:"timeEnd"` Text string `json:"text"` Metric string `json:"metric"` Type string `json:"type"` Tags []string `json:"tags"` Data struct{} `json:"data"` }
type Annotations ¶
type Annotations []Annotation
type Client ¶
type Client struct { BaseURL string // contains filtered or unexported fields }
func (*Client) CreateAnnotation ¶
func (c *Client) CreateAnnotation(req CreateAnnotationRequest) error
func (*Client) FindAnnotation ¶
func (c *Client) FindAnnotation(req FindAnnotationRequest) (*Annotation, error)
func (*Client) UpdateAnnotation ¶
func (c *Client) UpdateAnnotation(req UpdateAnnotationRequest) error
type CreateAnnotationRequest ¶
type FindAnnotationRequest ¶
Click to show internal directories.
Click to hide internal directories.