devicemonitor

package
v0.0.0-...-8508dec Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlertsURI = "/api/internal/v1/devicemonitor/tenants/#tenant_id/devices/#device_id/alerts/latest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	ID uuid.UUID `json:"id"`
}

type Alerts

type Alerts []Alert

type Client

type Client interface {
	CheckAlerts(c context.Context, device string) (int, error)
}

Client is the devicemonitor client

func NewClient

func NewClient(url string, opts ...ClientOptions) Client

NewClient returns a new workflows client

type ClientOptions

type ClientOptions struct {
	Client *http.Client
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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