Documentation ¶
Index ¶
- type RedisSeriesRepository
- func (rsr *RedisSeriesRepository) FindCPU(seriesType SeriesType) (Series, error)
- func (rsr *RedisSeriesRepository) FindDisk(seriesType SeriesType, path string) (Series, error)
- func (rsr *RedisSeriesRepository) FindDiskPaths() ([]string, error)
- func (rsr *RedisSeriesRepository) FindMemory(seriesType SeriesType) (Series, error)
- type Series
- type SeriesRepository
- type SeriesType
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisSeriesRepository ¶
RedisSeriesRepository type.
func (*RedisSeriesRepository) FindCPU ¶
func (rsr *RedisSeriesRepository) FindCPU(seriesType SeriesType) (Series, error)
FindCPU function.
func (*RedisSeriesRepository) FindDisk ¶
func (rsr *RedisSeriesRepository) FindDisk(seriesType SeriesType, path string) (Series, error)
FindDisk function.
func (*RedisSeriesRepository) FindDiskPaths ¶
func (rsr *RedisSeriesRepository) FindDiskPaths() ([]string, error)
FindDiskPaths function.
func (*RedisSeriesRepository) FindMemory ¶
func (rsr *RedisSeriesRepository) FindMemory(seriesType SeriesType) (Series, error)
FindMemory function.
type SeriesRepository ¶
type SeriesRepository interface { FindCPU(SeriesType) (Series, error) FindMemory(SeriesType) (Series, error) FindDisk(SeriesType, string) (Series, error) FindDiskPaths() ([]string, error) }
SeriesRepository type.
type SeriesType ¶
type SeriesType string
SeriesType type.
const ( // Day series. Day SeriesType = "day" // Week series. Week SeriesType = "week" // Month series. Month SeriesType = "month" )
Click to show internal directories.
Click to hide internal directories.