station

package
v0.0.0-...-1f0e2f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Station

type Station struct{}

func (*Station) RegisterModule

func (s *Station) RegisterModule(rg *gin.RouterGroup, options *app.ServerOptions)

@Summary AnyShake Observer station status @Description Get Observer station status including system information, memory usage, disk usage, CPU usage, ADC information, geophone information, and location information @Router /station [get] @Produce application/json @Success 200 {object} response.HttpResponse{data=System} "Successfully read station status"

type System

type System struct {
	Timestamp int64             `json:"timestamp"`
	Uptime    int64             `json:"uptime"`
	Station   stationModel      `json:"station"`
	Memory    memoryModel       `json:"memory"`
	Disk      diskModel         `json:"disk"`
	ADC       adcModel          `json:"adc"`
	OS        osModel           `json:"os"`
	CPU       cpuModel          `json:"cpu"`
	Geophone  geophoneModel     `json:"geophone"`
	Location  positionModel     `json:"position"`
	Status    *publisher.System `json:"status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL