31 lines
1.2 KiB
Go
31 lines
1.2 KiB
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package health
|
|
|
|
// Arg is a type for the key to be used in the Args of a Warnable.
|
|
type Arg string
|
|
|
|
const (
|
|
// ArgAvailableVersion provides an update notification Warnable with the available version of the Tailscale client.
|
|
ArgAvailableVersion Arg = "available-version"
|
|
|
|
// ArgCurrentVersion provides an update notification Warnable with the current version of the Tailscale client.
|
|
ArgCurrentVersion Arg = "current-version"
|
|
|
|
// ArgDuration provides a Warnable with how long the Warnable has been in an unhealthy state.
|
|
ArgDuration Arg = "duration"
|
|
|
|
// ArgError provides a Warnable with the underlying error behind an unhealthy state.
|
|
ArgError Arg = "error"
|
|
|
|
// ArgMagicsockFunctionName provides a Warnable with the name of the Magicsock function that caused the unhealthy state.
|
|
ArgMagicsockFunctionName Arg = "magicsock-function-name"
|
|
|
|
// ArgRegionID provides a Warnable with the ID of a DERP server involved in the unhealthy state.
|
|
ArgRegionID Arg = "region-id"
|
|
|
|
// ArgServerName provides a Warnable with the hostname of a server involved in the unhealthy state.
|
|
ArgServerName Arg = "server-name"
|
|
)
|