代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/telegraf 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package influxdb
import (
"context"
"time"
"github.com/influxdata/influxdb/v2/kit/platform"
)
// OperationLogEntry is a record in an operation log.
type OperationLogEntry struct {
Description string `json:"description"`
UserID platform.ID `json:"userID,omitempty"`
Time time.Time `json:"time,omitempty"`
}
// DashboardOperationLogService is an interface for retrieving the operation log for a dashboard.
type DashboardOperationLogService interface {
// GetDashboardOperationLog retrieves the operation log for the dashboard with the provided id.
GetDashboardOperationLog(ctx context.Context, id platform.ID, opts FindOptions) ([]*OperationLogEntry, int, error)
}
// BucketOperationLogService is an interface for retrieving the operation log for a bucket.
type BucketOperationLogService interface {
// GetBucketOperationLog retrieves the operation log for the bucket with the provided id.
GetBucketOperationLog(ctx context.Context, id platform.ID, opts FindOptions) ([]*OperationLogEntry, int, error)
}
// UserOperationLogService is an interface for retrieving the operation log for a user.
type UserOperationLogService interface {
// GetUserOperationLog retrieves the operation log for the user with the provided id.
GetUserOperationLog(ctx context.Context, id platform.ID, opts FindOptions) ([]*OperationLogEntry, int, error)
}
// OrganizationOperationLogService is an interface for retrieving the operation log for an org.
type OrganizationOperationLogService interface {
// GetOrganizationOperationLog retrieves the operation log for the org with the provided id.
GetOrganizationOperationLog(ctx context.Context, id platform.ID, opts FindOptions) ([]*OperationLogEntry, int, error)
}
// DefaultOperationLogFindOptions are the default options for the operation log.
var DefaultOperationLogFindOptions = FindOptions{
Descending: true,
Limit: 100,
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。