Documentation
¶
Index ¶
- type CPU
- type CPUUsage
- type IDParamDTO
- type LastData
- type Memory
- type MemoryUsage
- type Monitor
- type MonitorCreateDTO
- type MonitorCreateResponse
- type MonitorDataQueryParamDTO
- type MonitorDataResponse
- type MonitorPushDTO
- type MonitorRegisterDTO
- type MonitorRegisterResponse
- type MonitorResponse
- type OS
- type TimePeriod
- type UsageIntValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct {
UsedPercent float64 `json:"used_percent,omitempty" bson:"used_percent,omitempty"`
}
type CPUUsage ¶
type CPUUsage struct {
Unit *string `json:"unit,omitempty"`
Values []UsageIntValue `json:"values,omitempty"`
}
type IDParamDTO ¶
type IDParamDTO struct {
ID string `json:"monitor_id" validate:"required" uri:"monitor_id" binding:"required"`
}
type MemoryUsage ¶
type MemoryUsage struct {
Unit *string `json:"unit,omitempty"`
Values []UsageIntValue `json:"values,omitempty"`
}
type Monitor ¶
type Monitor struct {
ID string `json:"id,omitempty" bson:"_id,omitempty"`
Name string `json:"name" bson:"name"`
Type string `json:"type" bson:"type"`
Status string `json:"status" bson:"status"`
APIKey string `json:"api_key,omitempty" bson:"api_key,omitempty"`
LastDataOn *time.Time `json:"last_data_on,omitempty" bson:"last_data_on,omitempty"`
LastData *LastData `json:"last_data,omitempty" bson:"last_data,omitempty"`
CreatedAt time.Time `json:"created_at" bson:"created_at"`
UpdatedAt *time.Time `json:"updated_at,omitempty" bson:"updated_at"`
DeletedAt *time.Time `json:"deleted_at,omitempty" bson:"deleted_at"`
}
type MonitorCreateDTO ¶
type MonitorCreateResponse ¶
type MonitorDataResponse ¶
type MonitorDataResponse struct {
ID string `json:"id"`
TimePeriod *TimePeriod `json:"time_period,omitempty"`
MemoryUsage *MemoryUsage `json:"memory_usage,omitempty"`
CPUUsage *CPUUsage `json:"cpu_usage,omitempty"`
}
type MonitorPushDTO ¶
type MonitorPushDTO struct {
LastData LastData `json:"last_data,omitempty" bson:"last_data,omitempty"`
}
type MonitorRegisterDTO ¶
type MonitorRegisterResponse ¶
type MonitorResponse ¶
type MonitorResponse struct {
ID string `json:"id,omitempty" bson:"_id,omitempty"`
Name string `json:"name" bson:"name"`
Type string `json:"type" bson:"type"`
Status string `json:"status" bson:"status"`
LastDataOn *time.Time `json:"last_data_on,omitempty" bson:"last_data_on,omitempty"`
LastData *LastData `json:"last_data,omitempty" bson:"last_data,omitempty"`
CreatedAt time.Time `json:"created_at" bson:"created_at"`
UpdatedAt *time.Time `json:"updated_at,omitempty" bson:"updated_at"`
DeletedAt *time.Time `json:"deleted_at,omitempty" bson:"deleted_at"`
}
type OS ¶
type OS struct {
Type string `json:"type,omitempty" bson:"type,omitempty"`
Platform string `json:"platform,omitempty" bson:"platform,omitempty"`
PlatformFamily string `json:"platform_family,omitempty" bson:"platform_family,omitempty"`
PlatformVersion string `json:"platform_version,omitempty" bson:"platform_version,omitempty"`
KernelVersion string `json:"kernel_version,omitempty" bson:"kernel_version,omitempty"`
KernelArch string `json:"kernel_arch,omitempty" bson:"kernel_arch,omitempty"`
}
type TimePeriod ¶
type UsageIntValue ¶
Click to show internal directories.
Click to hide internal directories.