Documentation ¶
Index ¶
- type AzureMetrics
- type CustomMetrics
- type CustomMetricsBaseData
- type CustomMetricsData
- type CustomMetricsSeries
- type InMemMetrics
- func (m *InMemMetrics) Duration(ctx context.Context, metricName string, metric time.Duration) error
- func (m *InMemMetrics) DurationStats() []time.Duration
- func (m *InMemMetrics) Int(ctx context.Context, metricName string, metric int) error
- func (m *InMemMetrics) IntStats() []int
- func (m *InMemMetrics) Reset()
- func (m *InMemMetrics) Success(ctx context.Context, metricName string, metric bool) error
- func (m *InMemMetrics) SuccessStats() []bool
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureMetrics ¶
type AzureMetrics struct {
// contains filtered or unexported fields
}
func NewAzureMetrics ¶
func NewAzureMetrics(cfg config.Config, credential azcore.TokenCredential) *AzureMetrics
type CustomMetrics ¶
type CustomMetrics struct { Time time.Time `json:"time,omitempty"` Data CustomMetricsData `json:"data,omitempty"` }
type CustomMetricsBaseData ¶
type CustomMetricsBaseData struct { Metric string `json:"metric,omitempty"` Namespace string `json:"namespace,omitempty"` DimNames []string `json:"dimNames,omitempty"` Series []CustomMetricsSeries `json:"series,omitempty"` }
type CustomMetricsData ¶
type CustomMetricsData struct {
BaseData CustomMetricsBaseData `json:"baseData,omitempty"`
}
type CustomMetricsSeries ¶
type InMemMetrics ¶
type InMemMetrics struct {
// contains filtered or unexported fields
}
func NewInMemMetrics ¶
func NewInMemMetrics() *InMemMetrics
func (*InMemMetrics) DurationStats ¶
func (m *InMemMetrics) DurationStats() []time.Duration
func (*InMemMetrics) IntStats ¶
func (m *InMemMetrics) IntStats() []int
func (*InMemMetrics) Reset ¶
func (m *InMemMetrics) Reset()
func (*InMemMetrics) SuccessStats ¶
func (m *InMemMetrics) SuccessStats() []bool
Click to show internal directories.
Click to hide internal directories.