Documentation ¶
Overview ¶
Package containing struct definitions for holding configs and params used in vision
Package containing struct definitions for holding configs and params used in vision
Index ¶
- type CPULoadAvgMetrics
- type CPUMetrics
- type ConfigModel
- type HostInfo
- type ListSystemdResponseHolder
- type MemoryMetrics
- type OperateSytemdResponseHolder
- type ProcDescriptionLong
- type ProcDescriptionResponse
- type ProcDescriptionShort
- type ProcListResponse
- type QueryHolder
- type SystemMetrics
- type SystemMetricsResponse
- type SystemdHolder
- type VirtualMemoryMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPULoadAvgMetrics ¶
type CPUMetrics ¶
type CPUMetrics struct {
LoadAvg CPULoadAvgMetrics
}
type ConfigModel ¶
type ConfigModel struct { Port int64 `json:"port"` AllowAll bool `json:"allow_all"` BlockFor []string `json:"block_for"` AllowFor []string `json:"allow_for"` Aliases []alias `json:"aliases"` }
Struct for holding the config json declared in config file
type ListSystemdResponseHolder ¶
type ListSystemdResponseHolder struct { Services []SystemdHolder NumServices int Timestamp int64 TimestampUTC string }
type MemoryMetrics ¶
type MemoryMetrics struct {
VirtualMemory VirtualMemoryMetrics
}
type ProcDescriptionLong ¶
type ProcDescriptionResponse ¶
type ProcDescriptionResponse struct { ProcDesc ProcDescriptionLong Timestamp int64 TimestampUTC string }
type ProcDescriptionShort ¶
type ProcListResponse ¶
type ProcListResponse struct { ProcList []ProcDescriptionShort Timestamp int64 TimestampUTC string }
type QueryHolder ¶
type QueryHolder struct { // path to the file Path string // alias name for a file. must be configured Alias string // can accept only two values : head or tail ReadFrom string // number of lines to be streamed Limit int64 // search for lines containing entities matching given regex Regex string // search for lines containing entities which does not match given regex NegateRegex string // grep command options Grep string }
type SystemMetrics ¶
type SystemMetrics struct { // type of system metric wanted : can be cpu, memory as of now CPU CPUMetrics Memory MemoryMetrics }
type SystemMetricsResponse ¶
type SystemMetricsResponse struct { Metrics SystemMetrics Timestamp int64 TimestampUTC string }
type SystemdHolder ¶
type VirtualMemoryMetrics ¶
Click to show internal directories.
Click to hide internal directories.