extannotations

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RestyClient *resty.Client

Functions

func RegisterEventListenerHandlers

func RegisterEventListenerHandlers()

Types

type Annotation

type Annotation struct {
	ID           int                    `json:"id"`
	AlertID      int                    `json:"alertId"`
	DashboardID  int                    `json:"dashboardId"`
	DashboardUID string                 `json:"dashboardUID"`
	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"`
	Tags         []string               `json:"tags"`
	Data         map[string]interface{} `json:"data"`
}

type AnnotationBody

type AnnotationBody struct {
	Tags      []string `json:"tags"`
	Time      int64    `json:"time"`
	TimeEnd   int64    `json:"timeEnd"`
	Text      string   `json:"text"`
	NeedPatch bool
	ID        string
}

type AnnotationResponse

type AnnotationResponse struct {
	Message string `json:"message"`
	ID      int    `json:"id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL