Documentation ¶
Index ¶
- Constants
- func WithRPC(rpc nervous.Controller) option
- type SupbMetrics
- func (r *SupbMetrics) AddGuid(guid string)
- func (r *SupbMetrics) Close() error
- func (r *SupbMetrics) DeleteGuid(guid string)
- func (r *SupbMetrics) GetCPUWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)
- func (r *SupbMetrics) GetMemoryWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)
- func (r *SupbMetrics) GetMetricsNow(guid string, td time.Duration) (*metrics.ContainerMetrics, error)
- func (r *SupbMetrics) GetNetRxWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)
- func (r *SupbMetrics) GetNetTxWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)
- func (r *SupbMetrics) InitFlags(flags *pflag.FlagSet)
- func (r *SupbMetrics) InitViper(viper *viper.Viper)
- func (r *SupbMetrics) Initialize(opts ...option)
- func (r *SupbMetrics) IsMonitor(guid string) bool
- func (r *SupbMetrics) OptionConfig(opts ...option)
- func (r *SupbMetrics) ViperConfig(viper *viper.Viper)
Constants ¶
View Source
const ( MaxLen = 3601 MetricsPushOff = "off" )
Variables ¶
This section is empty.
Functions ¶
func WithRPC ¶
func WithRPC(rpc nervous.Controller) option
Types ¶
type SupbMetrics ¶
type SupbMetrics struct { Guid string // contains filtered or unexported fields }
func NewSupbMetrics ¶
func NewSupbMetrics(ctx context.Context, prefix string) *SupbMetrics
func (*SupbMetrics) AddGuid ¶
func (r *SupbMetrics) AddGuid(guid string)
func (*SupbMetrics) Close ¶
func (r *SupbMetrics) Close() error
func (*SupbMetrics) DeleteGuid ¶
func (r *SupbMetrics) DeleteGuid(guid string)
func (*SupbMetrics) GetCPUWithTimeRange ¶
func (r *SupbMetrics) GetCPUWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)
func (*SupbMetrics) GetMemoryWithTimeRange ¶
func (r *SupbMetrics) GetMemoryWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)
func (*SupbMetrics) GetMetricsNow ¶
func (r *SupbMetrics) GetMetricsNow(guid string, td time.Duration) (*metrics.ContainerMetrics, error)
func (*SupbMetrics) GetNetRxWithTimeRange ¶
func (r *SupbMetrics) GetNetRxWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)
func (*SupbMetrics) GetNetTxWithTimeRange ¶
func (r *SupbMetrics) GetNetTxWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)
func (*SupbMetrics) InitFlags ¶
func (r *SupbMetrics) InitFlags(flags *pflag.FlagSet)
func (*SupbMetrics) InitViper ¶
func (r *SupbMetrics) InitViper(viper *viper.Viper)
func (*SupbMetrics) Initialize ¶
func (r *SupbMetrics) Initialize(opts ...option)
func (*SupbMetrics) IsMonitor ¶
func (r *SupbMetrics) IsMonitor(guid string) bool
func (*SupbMetrics) OptionConfig ¶
func (r *SupbMetrics) OptionConfig(opts ...option)
func (*SupbMetrics) ViperConfig ¶
func (r *SupbMetrics) ViperConfig(viper *viper.Viper)
Click to show internal directories.
Click to hide internal directories.