garm/vendor/github.com/lxc/lxd/shared/api/warning.go
Gabriel Adrian Samfira bbbe67bf7c Vendor packages and add Makefile
* Vendors packages
  * Adds a Makefile that uses docker to build a static binary against musl
using alpine linux.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-06-30 10:20:32 +00:00

63 lines
1.7 KiB
Go

package api
import "time"
// Warning represents a warning entry.
//
// swagger:model
//
// API extension: warnings
type Warning struct {
WarningPut `yaml:",inline"`
// UUID of the warning
// Example: e9e9da0d-2538-4351-8047-46d4a8ae4dbb
UUID string `json:"uuid" yaml:"uuid"`
// What cluster member this warning occurred on
// Example: node1
Location string `json:"location" yaml:"location"`
// The project the warning occurred in
// Example: default
Project string `json:"project" yaml:"project"`
// Type type of warning
// Example: Couldn't find CGroup
Type string `json:"type" yaml:"type"`
// The number of times this warning occurred
// Example: 1
Count int `json:"count" yaml:"count"`
// The first time this warning occurred
// Example: 2021-03-23T17:38:37.753398689-04:00
FirstSeenAt time.Time `json:"first_seen_at" yaml:"first_seen_at"`
// The last time this warning occurred
// Example: 2021-03-23T17:38:37.753398689-04:00
LastSeenAt time.Time `json:"last_seen_at" yaml:"last_seen_at"`
// The warning message
// Example: Couldn't find the CGroup blkio.weight, disk priority will be ignored
LastMessage string `json:"last_message" yaml:"last_message"`
// The severity of this warning
// Example: low
Severity string `json:"severity" yaml:"severity"`
// The entity affected by this warning
// Example: /1.0/instances/c1?project=default
EntityURL string `json:"entity_url" yaml:"entity_url"`
}
// WarningPut represents the modifiable fields of a warning.
//
// swagger:model
//
// API extension: warnings
type WarningPut struct {
// Status of the warning (new, acknowledged, or resolved)
// Example: new
Status string `json:"status" yaml:"status"`
}