Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterMetricSubrequest ¶
type GaugeMetricSubrequest ¶
type GetMetricRequest ¶
type SaveMetricListRequest ¶
type SaveMetricListRequest []*SaveMetricRequest
type SaveMetricRequest ¶
type SaveMetricRequest struct { MetricType string `json:"type"` MetricName string `json:"id"` CounterValue *int64 `json:"delta,omitempty"` // значение метрики в случае передачи counter GaugeValue *float64 `json:"value,omitempty"` // значение метрики в случае передачи gauge IsJSON bool `json:"-"` Error error `json:"-"` }
func (*SaveMetricRequest) GetCounterValue ¶
func (r *SaveMetricRequest) GetCounterValue() *int64
func (*SaveMetricRequest) GetGaugeValue ¶
func (r *SaveMetricRequest) GetGaugeValue() *float64
func (*SaveMetricRequest) GetIsJSON ¶
func (r *SaveMetricRequest) GetIsJSON() bool
func (*SaveMetricRequest) GetMetricName ¶
func (r *SaveMetricRequest) GetMetricName() string
func (*SaveMetricRequest) GetMetricType ¶
func (r *SaveMetricRequest) GetMetricType() string
Click to show internal directories.
Click to hide internal directories.