代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/telegraf 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package influxdb
import (
"context"
"time"
"github.com/influxdata/influxdb/v2/kit/platform"
)
// UsageMetric used to track classes of usage.
type UsageMetric string
const (
// UsageWriteRequestCount is the name of the metrics for tracking write request count.
UsageWriteRequestCount UsageMetric = "usage_write_request_count"
// UsageWriteRequestBytes is the name of the metrics for tracking the number of write bytes.
UsageWriteRequestBytes UsageMetric = "usage_write_request_bytes"
// UsageValues is the name of the metrics for tracking the number of values.
UsageValues UsageMetric = "usage_values"
// UsageSeries is the name of the metrics for tracking the number of series written.
UsageSeries UsageMetric = "usage_series"
// UsageQueryRequestCount is the name of the metrics for tracking query request count.
UsageQueryRequestCount UsageMetric = "usage_query_request_count"
// UsageQueryRequestBytes is the name of the metrics for tracking the number of query bytes.
UsageQueryRequestBytes UsageMetric = "usage_query_request_bytes"
)
// Usage is a metric associated with the utilization of a particular resource.
type Usage struct {
OrganizationID *platform.ID `json:"organizationID,omitempty"`
BucketID *platform.ID `json:"bucketID,omitempty"`
Type UsageMetric `json:"type"`
Value float64 `json:"value"`
}
// UsageService is a service for accessing usage statistics.
type UsageService interface {
GetUsage(ctx context.Context, filter UsageFilter) (map[UsageMetric]*Usage, error)
}
// UsageFilter is used to filter usage.
type UsageFilter struct {
OrgID *platform.ID
BucketID *platform.ID
Range *Timespan
}
// Timespan represents a range of time.
type Timespan struct {
Start time.Time `json:"start"`
Stop time.Time `json:"stop"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。