mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-30 07:43:42 +00:00
wiring URL through health/warnable
This commit is contained in:
parent
a9a846fcf1
commit
5a9259553a
@ -253,6 +253,8 @@ type Warnable struct {
|
|||||||
// should be surfaced as unhealthy to the user. This is used to prevent transient errors from being
|
// should be surfaced as unhealthy to the user. This is used to prevent transient errors from being
|
||||||
// displayed to the user.
|
// displayed to the user.
|
||||||
TimeToVisible time.Duration
|
TimeToVisible time.Duration
|
||||||
|
|
||||||
|
URL string
|
||||||
}
|
}
|
||||||
|
|
||||||
// StaticMessage returns a function that always returns the input string, to be used in
|
// StaticMessage returns a function that always returns the input string, to be used in
|
||||||
|
@ -31,6 +31,7 @@ type UnhealthyState struct {
|
|||||||
Args Args `json:",omitempty"`
|
Args Args `json:",omitempty"`
|
||||||
DependsOn []WarnableCode `json:",omitempty"`
|
DependsOn []WarnableCode `json:",omitempty"`
|
||||||
ImpactsConnectivity bool `json:",omitempty"`
|
ImpactsConnectivity bool `json:",omitempty"`
|
||||||
|
URL string `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// unhealthyState returns a unhealthyState of the Warnable given its current warningState.
|
// unhealthyState returns a unhealthyState of the Warnable given its current warningState.
|
||||||
@ -63,6 +64,7 @@ func (w *Warnable) unhealthyState(ws *warningState) *UnhealthyState {
|
|||||||
Args: ws.Args,
|
Args: ws.Args,
|
||||||
DependsOn: dependsOnWarnableCodes,
|
DependsOn: dependsOnWarnableCodes,
|
||||||
ImpactsConnectivity: w.ImpactsConnectivity,
|
ImpactsConnectivity: w.ImpactsConnectivity,
|
||||||
|
URL: w.URL,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2037,7 +2037,7 @@ type Health struct {
|
|||||||
ID string
|
ID string
|
||||||
Title string
|
Title string
|
||||||
Text string
|
Text string
|
||||||
Link string
|
URL string
|
||||||
ImpactsConnectivity bool
|
ImpactsConnectivity bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user