p8s

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCommandFuncs

func InitCommandFuncs() (map[string]func(map[string]interface{}) ([]byte, error), error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string) (*Client, error)

func (*Client) AlertManagers

func (c *Client) AlertManagers() (string, error)

func (*Client) Alerts

func (c *Client) Alerts() (string, error)

func (*Client) ApiRequest

func (c *Client) ApiRequest(apiVersion, apiName string, queryParams map[string]interface{}) (string, error)

func (*Client) Query

func (c *Client) Query(params map[string]interface{}) (string, []string, error)

func (*Client) QueryRange

func (c *Client) QueryRange(params map[string]interface{}) (string, []string, error)

func (*Client) Rules

func (c *Client) Rules() (string, error)

func (*Client) Targets

func (c *Client) Targets() (string, error)

func (*Client) TargetsMetadata

func (c *Client) TargetsMetadata(params map[string]interface{}) (string, error)

type Duration

type Duration time.Duration

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (Duration) String

func (d Duration) String() string

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(bytes []byte) error

type QueryResult

type QueryResult struct {
	ResultType string      `json:"resultType"`
	Result     model.Value `json:"result"`
}

Jump to

Keyboard shortcuts

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