mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
feat: Collect agent SSH metrics (#7584)
This commit is contained in:
@ -496,9 +496,15 @@ const (
|
||||
)
|
||||
|
||||
type AgentMetric struct {
|
||||
Name string `json:"name" validate:"required"`
|
||||
Type AgentMetricType `json:"type" validate:"required" enums:"counter,gauge"`
|
||||
Value float64 `json:"value" validate:"required"`
|
||||
Name string `json:"name" validate:"required"`
|
||||
Type AgentMetricType `json:"type" validate:"required" enums:"counter,gauge"`
|
||||
Value float64 `json:"value" validate:"required"`
|
||||
Labels []AgentMetricLabel `json:"labels,omitempty"`
|
||||
}
|
||||
|
||||
type AgentMetricLabel struct {
|
||||
Name string `json:"name" validate:"required"`
|
||||
Value string `json:"value" validate:"required"`
|
||||
}
|
||||
|
||||
type StatsResponse struct {
|
||||
|
Reference in New Issue
Block a user