Documentation
¶
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type ActionName
- func (ActionName) AllValues() []ActionName
- func (s *ActionName) Decode(d *jx.Decoder) error
- func (s ActionName) Encode(e *jx.Encoder)
- func (s ActionName) MarshalJSON() ([]byte, error)
- func (s ActionName) MarshalText() ([]byte, error)
- func (s *ActionName) UnmarshalJSON(data []byte) error
- func (s *ActionName) UnmarshalText(data []byte) error
- func (s ActionName) Validate() error
- type ActionResult
- func (s *ActionResult) Decode(d *jx.Decoder) error
- func (s *ActionResult) Encode(e *jx.Encoder)
- func (s *ActionResult) GetAction() ActionName
- func (s *ActionResult) GetFreedBytes() OptInt64
- func (s *ActionResult) GetMessage() string
- func (s *ActionResult) GetOk() bool
- func (s *ActionResult) MarshalJSON() ([]byte, error)
- func (s *ActionResult) SetAction(val ActionName)
- func (s *ActionResult) SetFreedBytes(val OptInt64)
- func (s *ActionResult) SetMessage(val string)
- func (s *ActionResult) SetOk(val bool)
- func (s *ActionResult) UnmarshalJSON(data []byte) error
- func (s *ActionResult) Validate() error
- type AdmissionStats
- func (s *AdmissionStats) Decode(d *jx.Decoder) error
- func (s *AdmissionStats) Encode(e *jx.Encoder)
- func (s *AdmissionStats) GetAccepted() int64
- func (s *AdmissionStats) GetOverflowed() int64
- func (s *AdmissionStats) GetRejectedCardinality() int64
- func (s *AdmissionStats) GetRejectedInFlight() int64
- func (s *AdmissionStats) GetRejectedOoo() int64
- func (s *AdmissionStats) GetRejectedRate() int64
- func (s *AdmissionStats) GetSampledDropped() int64
- func (s *AdmissionStats) MarshalJSON() ([]byte, error)
- func (s *AdmissionStats) SetAccepted(val int64)
- func (s *AdmissionStats) SetOverflowed(val int64)
- func (s *AdmissionStats) SetRejectedCardinality(val int64)
- func (s *AdmissionStats) SetRejectedInFlight(val int64)
- func (s *AdmissionStats) SetRejectedOoo(val int64)
- func (s *AdmissionStats) SetRejectedRate(val int64)
- func (s *AdmissionStats) SetSampledDropped(val int64)
- func (s *AdmissionStats) UnmarshalJSON(data []byte) error
- type CacheStats
- func (s *CacheStats) Decode(d *jx.Decoder) error
- func (s *CacheStats) Encode(e *jx.Encoder)
- func (s *CacheStats) GetDecodeCache() DecodeCacheStats
- func (s *CacheStats) MarshalJSON() ([]byte, error)
- func (s *CacheStats) SetDecodeCache(val DecodeCacheStats)
- func (s *CacheStats) UnmarshalJSON(data []byte) error
- type ClickHouseStats
- func (s *ClickHouseStats) Decode(d *jx.Decoder) error
- func (s *ClickHouseStats) Encode(e *jx.Encoder)
- func (s *ClickHouseStats) GetTables() []TableStats
- func (s *ClickHouseStats) MarshalJSON() ([]byte, error)
- func (s *ClickHouseStats) SetTables(val []TableStats)
- func (s *ClickHouseStats) UnmarshalJSON(data []byte) error
- func (s *ClickHouseStats) Validate() error
- type Client
- func (c *Client) GetEfficiency(ctx context.Context) (*EfficiencyStats, error)
- func (c *Client) GetHealth(ctx context.Context) (*HealthReport, error)
- func (c *Client) GetInfo(ctx context.Context) (*InstanceInfo, error)
- func (c *Client) GetRuntime(ctx context.Context) (*RuntimeStats, error)
- func (c *Client) GetStorage(ctx context.Context) (*StorageStats, error)
- func (c *Client) RunAction(ctx context.Context, params RunActionParams) (*ActionResult, error)
- type ClientOption
- type ClusterMember
- func (s *ClusterMember) Decode(d *jx.Decoder) error
- func (s *ClusterMember) Encode(e *jx.Encoder)
- func (s *ClusterMember) GetAddr() OptString
- func (s *ClusterMember) GetID() string
- func (s *ClusterMember) GetZone() OptString
- func (s *ClusterMember) MarshalJSON() ([]byte, error)
- func (s *ClusterMember) SetAddr(val OptString)
- func (s *ClusterMember) SetID(val string)
- func (s *ClusterMember) SetZone(val OptString)
- func (s *ClusterMember) UnmarshalJSON(data []byte) error
- type ClusterStats
- func (s *ClusterStats) Decode(d *jx.Decoder) error
- func (s *ClusterStats) Encode(e *jx.Encoder)
- func (s *ClusterStats) GetEc() OptECStats
- func (s *ClusterStats) GetMembers() []ClusterMember
- func (s *ClusterStats) GetOwned() []string
- func (s *ClusterStats) GetPartSync() OptPartSyncStats
- func (s *ClusterStats) GetSelf() string
- func (s *ClusterStats) MarshalJSON() ([]byte, error)
- func (s *ClusterStats) SetEc(val OptECStats)
- func (s *ClusterStats) SetMembers(val []ClusterMember)
- func (s *ClusterStats) SetOwned(val []string)
- func (s *ClusterStats) SetPartSync(val OptPartSyncStats)
- func (s *ClusterStats) SetSelf(val string)
- func (s *ClusterStats) UnmarshalJSON(data []byte) error
- func (s *ClusterStats) Validate() error
- type ComponentHealth
- func (s *ComponentHealth) Decode(d *jx.Decoder) error
- func (s *ComponentHealth) Encode(e *jx.Encoder)
- func (s *ComponentHealth) GetAddr() OptString
- func (s *ComponentHealth) GetError() OptString
- func (s *ComponentHealth) GetName() string
- func (s *ComponentHealth) GetStatus() HealthStatus
- func (s *ComponentHealth) MarshalJSON() ([]byte, error)
- func (s *ComponentHealth) SetAddr(val OptString)
- func (s *ComponentHealth) SetError(val OptString)
- func (s *ComponentHealth) SetName(val string)
- func (s *ComponentHealth) SetStatus(val HealthStatus)
- func (s *ComponentHealth) UnmarshalJSON(data []byte) error
- func (s *ComponentHealth) Validate() error
- type DecodeCacheStats
- func (s *DecodeCacheStats) Decode(d *jx.Decoder) error
- func (s *DecodeCacheStats) Encode(e *jx.Encoder)
- func (s *DecodeCacheStats) GetBytes() int64
- func (s *DecodeCacheStats) GetHits() int64
- func (s *DecodeCacheStats) GetItems() int64
- func (s *DecodeCacheStats) GetMisses() int64
- func (s *DecodeCacheStats) MarshalJSON() ([]byte, error)
- func (s *DecodeCacheStats) SetBytes(val int64)
- func (s *DecodeCacheStats) SetHits(val int64)
- func (s *DecodeCacheStats) SetItems(val int64)
- func (s *DecodeCacheStats) SetMisses(val int64)
- func (s *DecodeCacheStats) UnmarshalJSON(data []byte) error
- type ECStats
- func (s *ECStats) Decode(d *jx.Decoder) error
- func (s *ECStats) Encode(e *jx.Encoder)
- func (s *ECStats) GetConvertErrors() int64
- func (s *ECStats) GetConverted() int64
- func (s *ECStats) GetPrunedStagedParts() int64
- func (s *ECStats) GetReconstructErrors() int64
- func (s *ECStats) GetReconstructs() int64
- func (s *ECStats) GetRepairErrors() int64
- func (s *ECStats) GetRepairedSlots() int64
- func (s *ECStats) MarshalJSON() ([]byte, error)
- func (s *ECStats) SetConvertErrors(val int64)
- func (s *ECStats) SetConverted(val int64)
- func (s *ECStats) SetPrunedStagedParts(val int64)
- func (s *ECStats) SetReconstructErrors(val int64)
- func (s *ECStats) SetReconstructs(val int64)
- func (s *ECStats) SetRepairErrors(val int64)
- func (s *ECStats) SetRepairedSlots(val int64)
- func (s *ECStats) UnmarshalJSON(data []byte) error
- type EfficiencyStats
- func (s *EfficiencyStats) Decode(d *jx.Decoder) error
- func (s *EfficiencyStats) Encode(e *jx.Encoder)
- func (s *EfficiencyStats) GetStorageEnabled() bool
- func (s *EfficiencyStats) GetTenants() []TenantEfficiency
- func (s *EfficiencyStats) MarshalJSON() ([]byte, error)
- func (s *EfficiencyStats) SetStorageEnabled(val bool)
- func (s *EfficiencyStats) SetTenants(val []TenantEfficiency)
- func (s *EfficiencyStats) UnmarshalJSON(data []byte) error
- func (s *EfficiencyStats) Validate() error
- type EngineSignalStats
- func (s *EngineSignalStats) Decode(d *jx.Decoder) error
- func (s *EngineSignalStats) Encode(e *jx.Encoder)
- func (s *EngineSignalStats) GetHeadBytes() int64
- func (s *EngineSignalStats) GetHeadItems() int64
- func (s *EngineSignalStats) GetMaxTime() OptDateTime
- func (s *EngineSignalStats) GetMergeBacklog() int64
- func (s *EngineSignalStats) GetMergeRunning() bool
- func (s *EngineSignalStats) GetMinTime() OptDateTime
- func (s *EngineSignalStats) GetParts() int64
- func (s *EngineSignalStats) GetSeries() int64
- func (s *EngineSignalStats) GetSignal() Signal
- func (s *EngineSignalStats) GetWal() bool
- func (s *EngineSignalStats) GetWalBytes() int64
- func (s *EngineSignalStats) GetWalSegments() int64
- func (s *EngineSignalStats) MarshalJSON() ([]byte, error)
- func (s *EngineSignalStats) SetHeadBytes(val int64)
- func (s *EngineSignalStats) SetHeadItems(val int64)
- func (s *EngineSignalStats) SetMaxTime(val OptDateTime)
- func (s *EngineSignalStats) SetMergeBacklog(val int64)
- func (s *EngineSignalStats) SetMergeRunning(val bool)
- func (s *EngineSignalStats) SetMinTime(val OptDateTime)
- func (s *EngineSignalStats) SetParts(val int64)
- func (s *EngineSignalStats) SetSeries(val int64)
- func (s *EngineSignalStats) SetSignal(val Signal)
- func (s *EngineSignalStats) SetWal(val bool)
- func (s *EngineSignalStats) SetWalBytes(val int64)
- func (s *EngineSignalStats) SetWalSegments(val int64)
- func (s *EngineSignalStats) UnmarshalJSON(data []byte) error
- func (s *EngineSignalStats) Validate() error
- type EngineStats
- func (s *EngineStats) Decode(d *jx.Decoder) error
- func (s *EngineStats) Encode(e *jx.Encoder)
- func (s *EngineStats) GetCaches() CacheStats
- func (s *EngineStats) GetCluster() OptClusterStats
- func (s *EngineStats) GetMaintenance() MaintenanceStats
- func (s *EngineStats) GetTenants() []TenantStats
- func (s *EngineStats) MarshalJSON() ([]byte, error)
- func (s *EngineStats) SetCaches(val CacheStats)
- func (s *EngineStats) SetCluster(val OptClusterStats)
- func (s *EngineStats) SetMaintenance(val MaintenanceStats)
- func (s *EngineStats) SetTenants(val []TenantStats)
- func (s *EngineStats) UnmarshalJSON(data []byte) error
- func (s *EngineStats) Validate() error
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetErrorMessage() string
- func (s *Error) GetSpanID() OptSpanID
- func (s *Error) GetTraceID() OptTraceID
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetErrorMessage(val string)
- func (s *Error) SetSpanID(val OptSpanID)
- func (s *Error) SetTraceID(val OptTraceID)
- func (s *Error) UnmarshalJSON(data []byte) error
- func (s *Error) Validate() error
- type ErrorHandler
- type ErrorStatusCode
- type Handler
- type HealthReport
- func (s *HealthReport) Decode(d *jx.Decoder) error
- func (s *HealthReport) Encode(e *jx.Encoder)
- func (s *HealthReport) GetComponents() []ComponentHealth
- func (s *HealthReport) GetStatus() HealthStatus
- func (s *HealthReport) MarshalJSON() ([]byte, error)
- func (s *HealthReport) SetComponents(val []ComponentHealth)
- func (s *HealthReport) SetStatus(val HealthStatus)
- func (s *HealthReport) UnmarshalJSON(data []byte) error
- func (s *HealthReport) Validate() error
- type HealthStatus
- func (HealthStatus) AllValues() []HealthStatus
- func (s *HealthStatus) Decode(d *jx.Decoder) error
- func (s HealthStatus) Encode(e *jx.Encoder)
- func (s HealthStatus) MarshalJSON() ([]byte, error)
- func (s HealthStatus) MarshalText() ([]byte, error)
- func (s *HealthStatus) UnmarshalJSON(data []byte) error
- func (s *HealthStatus) UnmarshalText(data []byte) error
- func (s HealthStatus) Validate() error
- type InstanceInfo
- func (s *InstanceInfo) Decode(d *jx.Decoder) error
- func (s *InstanceInfo) Encode(e *jx.Encoder)
- func (s *InstanceInfo) GetArch() string
- func (s *InstanceInfo) GetClickhouseEnabled() bool
- func (s *InstanceInfo) GetCommit() string
- func (s *InstanceInfo) GetGoVersion() string
- func (s *InstanceInfo) GetOs() string
- func (s *InstanceInfo) GetSignals() []SignalInfo
- func (s *InstanceInfo) GetStartTime() time.Time
- func (s *InstanceInfo) GetStorageBackend() OptString
- func (s *InstanceInfo) GetStorageEnabled() bool
- func (s *InstanceInfo) GetUptimeSeconds() float64
- func (s *InstanceInfo) GetVersion() string
- func (s *InstanceInfo) MarshalJSON() ([]byte, error)
- func (s *InstanceInfo) SetArch(val string)
- func (s *InstanceInfo) SetClickhouseEnabled(val bool)
- func (s *InstanceInfo) SetCommit(val string)
- func (s *InstanceInfo) SetGoVersion(val string)
- func (s *InstanceInfo) SetOs(val string)
- func (s *InstanceInfo) SetSignals(val []SignalInfo)
- func (s *InstanceInfo) SetStartTime(val time.Time)
- func (s *InstanceInfo) SetStorageBackend(val OptString)
- func (s *InstanceInfo) SetStorageEnabled(val bool)
- func (s *InstanceInfo) SetUptimeSeconds(val float64)
- func (s *InstanceInfo) SetVersion(val string)
- func (s *InstanceInfo) UnmarshalJSON(data []byte) error
- func (s *InstanceInfo) Validate() error
- type Invoker
- type Labeler
- type MaintenanceStats
- func (s *MaintenanceStats) Decode(d *jx.Decoder) error
- func (s *MaintenanceStats) Encode(e *jx.Encoder)
- func (s *MaintenanceStats) GetCycles() int64
- func (s *MaintenanceStats) GetLastCycleDurationSeconds() float64
- func (s *MaintenanceStats) GetLastCycleStart() OptDateTime
- func (s *MaintenanceStats) GetLastCycleTasks() int64
- func (s *MaintenanceStats) MarshalJSON() ([]byte, error)
- func (s *MaintenanceStats) SetCycles(val int64)
- func (s *MaintenanceStats) SetLastCycleDurationSeconds(val float64)
- func (s *MaintenanceStats) SetLastCycleStart(val OptDateTime)
- func (s *MaintenanceStats) SetLastCycleTasks(val int64)
- func (s *MaintenanceStats) UnmarshalJSON(data []byte) error
- func (s *MaintenanceStats) Validate() error
- type Middleware
- type OperationName
- type OptClickHouseStats
- func (o *OptClickHouseStats) Decode(d *jx.Decoder) error
- func (o OptClickHouseStats) Encode(e *jx.Encoder)
- func (o OptClickHouseStats) Get() (v ClickHouseStats, ok bool)
- func (o OptClickHouseStats) IsSet() bool
- func (s OptClickHouseStats) MarshalJSON() ([]byte, error)
- func (o OptClickHouseStats) Or(d ClickHouseStats) ClickHouseStats
- func (o *OptClickHouseStats) Reset()
- func (o *OptClickHouseStats) SetTo(v ClickHouseStats)
- func (s *OptClickHouseStats) UnmarshalJSON(data []byte) error
- type OptClusterStats
- func (o *OptClusterStats) Decode(d *jx.Decoder) error
- func (o OptClusterStats) Encode(e *jx.Encoder)
- func (o OptClusterStats) Get() (v ClusterStats, ok bool)
- func (o OptClusterStats) IsSet() bool
- func (s OptClusterStats) MarshalJSON() ([]byte, error)
- func (o OptClusterStats) Or(d ClusterStats) ClusterStats
- func (o *OptClusterStats) Reset()
- func (o *OptClusterStats) SetTo(v ClusterStats)
- func (s *OptClusterStats) UnmarshalJSON(data []byte) error
- type OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptECStats
- func (o *OptECStats) Decode(d *jx.Decoder) error
- func (o OptECStats) Encode(e *jx.Encoder)
- func (o OptECStats) Get() (v ECStats, ok bool)
- func (o OptECStats) IsSet() bool
- func (s OptECStats) MarshalJSON() ([]byte, error)
- func (o OptECStats) Or(d ECStats) ECStats
- func (o *OptECStats) Reset()
- func (o *OptECStats) SetTo(v ECStats)
- func (s *OptECStats) UnmarshalJSON(data []byte) error
- type OptEngineStats
- func (o *OptEngineStats) Decode(d *jx.Decoder) error
- func (o OptEngineStats) Encode(e *jx.Encoder)
- func (o OptEngineStats) Get() (v EngineStats, ok bool)
- func (o OptEngineStats) IsSet() bool
- func (s OptEngineStats) MarshalJSON() ([]byte, error)
- func (o OptEngineStats) Or(d EngineStats) EngineStats
- func (o *OptEngineStats) Reset()
- func (o *OptEngineStats) SetTo(v EngineStats)
- func (s *OptEngineStats) UnmarshalJSON(data []byte) error
- type OptFloat64
- func (o *OptFloat64) Decode(d *jx.Decoder) error
- func (o OptFloat64) Encode(e *jx.Encoder)
- func (o OptFloat64) Get() (v float64, ok bool)
- func (o OptFloat64) IsSet() bool
- func (s OptFloat64) MarshalJSON() ([]byte, error)
- func (o OptFloat64) Or(d float64) float64
- func (o *OptFloat64) Reset()
- func (o *OptFloat64) SetTo(v float64)
- func (s *OptFloat64) UnmarshalJSON(data []byte) error
- type OptInt64
- func (o *OptInt64) Decode(d *jx.Decoder) error
- func (o OptInt64) Encode(e *jx.Encoder)
- func (o OptInt64) Get() (v int64, ok bool)
- func (o OptInt64) IsSet() bool
- func (s OptInt64) MarshalJSON() ([]byte, error)
- func (o OptInt64) Or(d int64) int64
- func (o *OptInt64) Reset()
- func (o *OptInt64) SetTo(v int64)
- func (s *OptInt64) UnmarshalJSON(data []byte) error
- type OptPartSyncStats
- func (o *OptPartSyncStats) Decode(d *jx.Decoder) error
- func (o OptPartSyncStats) Encode(e *jx.Encoder)
- func (o OptPartSyncStats) Get() (v PartSyncStats, ok bool)
- func (o OptPartSyncStats) IsSet() bool
- func (s OptPartSyncStats) MarshalJSON() ([]byte, error)
- func (o OptPartSyncStats) Or(d PartSyncStats) PartSyncStats
- func (o *OptPartSyncStats) Reset()
- func (o *OptPartSyncStats) SetTo(v PartSyncStats)
- func (s *OptPartSyncStats) UnmarshalJSON(data []byte) error
- type OptSpanID
- func (o *OptSpanID) Decode(d *jx.Decoder) error
- func (o OptSpanID) Encode(e *jx.Encoder)
- func (o OptSpanID) Get() (v SpanID, ok bool)
- func (o OptSpanID) IsSet() bool
- func (s OptSpanID) MarshalJSON() ([]byte, error)
- func (o OptSpanID) Or(d SpanID) SpanID
- func (o *OptSpanID) Reset()
- func (o *OptSpanID) SetTo(v SpanID)
- func (s *OptSpanID) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptTraceID
- func (o *OptTraceID) Decode(d *jx.Decoder) error
- func (o OptTraceID) Encode(e *jx.Encoder)
- func (o OptTraceID) Get() (v TraceID, ok bool)
- func (o OptTraceID) IsSet() bool
- func (s OptTraceID) MarshalJSON() ([]byte, error)
- func (o OptTraceID) Or(d TraceID) TraceID
- func (o *OptTraceID) Reset()
- func (o *OptTraceID) SetTo(v TraceID)
- func (s *OptTraceID) UnmarshalJSON(data []byte) error
- type Option
- type PartSyncStats
- func (s *PartSyncStats) Decode(d *jx.Decoder) error
- func (s *PartSyncStats) Encode(e *jx.Encoder)
- func (s *PartSyncStats) GetCopied() int64
- func (s *PartSyncStats) GetCopiedBytes() int64
- func (s *PartSyncStats) GetErrors() int64
- func (s *PartSyncStats) GetLastSync() OptDateTime
- func (s *PartSyncStats) GetMirrored() int64
- func (s *PartSyncStats) GetPasses() int64
- func (s *PartSyncStats) GetPruned() int64
- func (s *PartSyncStats) MarshalJSON() ([]byte, error)
- func (s *PartSyncStats) SetCopied(val int64)
- func (s *PartSyncStats) SetCopiedBytes(val int64)
- func (s *PartSyncStats) SetErrors(val int64)
- func (s *PartSyncStats) SetLastSync(val OptDateTime)
- func (s *PartSyncStats) SetMirrored(val int64)
- func (s *PartSyncStats) SetPasses(val int64)
- func (s *PartSyncStats) SetPruned(val int64)
- func (s *PartSyncStats) UnmarshalJSON(data []byte) error
- type Route
- type RunActionParams
- type RuntimeStats
- func (s *RuntimeStats) Decode(d *jx.Decoder) error
- func (s *RuntimeStats) Encode(e *jx.Encoder)
- func (s *RuntimeStats) GetGcCount() int64
- func (s *RuntimeStats) GetGomaxprocs() int
- func (s *RuntimeStats) GetGoroutines() int64
- func (s *RuntimeStats) GetHeapAllocBytes() int64
- func (s *RuntimeStats) GetHeapInuseBytes() int64
- func (s *RuntimeStats) GetHeapSysBytes() int64
- func (s *RuntimeStats) GetMemLimitBytes() OptInt64
- func (s *RuntimeStats) GetNextGcBytes() int64
- func (s *RuntimeStats) GetNumCPU() int
- func (s *RuntimeStats) GetStackInuseBytes() int64
- func (s *RuntimeStats) MarshalJSON() ([]byte, error)
- func (s *RuntimeStats) SetGcCount(val int64)
- func (s *RuntimeStats) SetGomaxprocs(val int)
- func (s *RuntimeStats) SetGoroutines(val int64)
- func (s *RuntimeStats) SetHeapAllocBytes(val int64)
- func (s *RuntimeStats) SetHeapInuseBytes(val int64)
- func (s *RuntimeStats) SetHeapSysBytes(val int64)
- func (s *RuntimeStats) SetMemLimitBytes(val OptInt64)
- func (s *RuntimeStats) SetNextGcBytes(val int64)
- func (s *RuntimeStats) SetNumCPU(val int)
- func (s *RuntimeStats) SetStackInuseBytes(val int64)
- func (s *RuntimeStats) UnmarshalJSON(data []byte) error
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type Signal
- func (Signal) AllValues() []Signal
- func (s *Signal) Decode(d *jx.Decoder) error
- func (s Signal) Encode(e *jx.Encoder)
- func (s Signal) MarshalJSON() ([]byte, error)
- func (s Signal) MarshalText() ([]byte, error)
- func (s *Signal) UnmarshalJSON(data []byte) error
- func (s *Signal) UnmarshalText(data []byte) error
- func (s Signal) Validate() error
- type SignalEfficiency
- func (s *SignalEfficiency) Decode(d *jx.Decoder) error
- func (s *SignalEfficiency) Encode(e *jx.Encoder)
- func (s *SignalEfficiency) GetBytesPerPoint() float64
- func (s *SignalEfficiency) GetCompressionRatio() OptFloat64
- func (s *SignalEfficiency) GetLogicalBytes() OptInt64
- func (s *SignalEfficiency) GetParts() int64
- func (s *SignalEfficiency) GetPoints() int64
- func (s *SignalEfficiency) GetSeries() int64
- func (s *SignalEfficiency) GetSignal() Signal
- func (s *SignalEfficiency) GetStoredBytes() int64
- func (s *SignalEfficiency) MarshalJSON() ([]byte, error)
- func (s *SignalEfficiency) SetBytesPerPoint(val float64)
- func (s *SignalEfficiency) SetCompressionRatio(val OptFloat64)
- func (s *SignalEfficiency) SetLogicalBytes(val OptInt64)
- func (s *SignalEfficiency) SetParts(val int64)
- func (s *SignalEfficiency) SetPoints(val int64)
- func (s *SignalEfficiency) SetSeries(val int64)
- func (s *SignalEfficiency) SetSignal(val Signal)
- func (s *SignalEfficiency) SetStoredBytes(val int64)
- func (s *SignalEfficiency) UnmarshalJSON(data []byte) error
- func (s *SignalEfficiency) Validate() error
- type SignalInfo
- func (s *SignalInfo) Decode(d *jx.Decoder) error
- func (s *SignalInfo) Encode(e *jx.Encoder)
- func (s *SignalInfo) GetBackend() string
- func (s *SignalInfo) GetBind() OptString
- func (s *SignalInfo) GetQueryable() bool
- func (s *SignalInfo) GetSignal() Signal
- func (s *SignalInfo) MarshalJSON() ([]byte, error)
- func (s *SignalInfo) SetBackend(val string)
- func (s *SignalInfo) SetBind(val OptString)
- func (s *SignalInfo) SetQueryable(val bool)
- func (s *SignalInfo) SetSignal(val Signal)
- func (s *SignalInfo) UnmarshalJSON(data []byte) error
- func (s *SignalInfo) Validate() error
- type SpanID
- type StorageStats
- func (s *StorageStats) Decode(d *jx.Decoder) error
- func (s *StorageStats) Encode(e *jx.Encoder)
- func (s *StorageStats) GetClickhouse() OptClickHouseStats
- func (s *StorageStats) GetClickhouseEnabled() bool
- func (s *StorageStats) GetEngine() OptEngineStats
- func (s *StorageStats) GetStorageEnabled() bool
- func (s *StorageStats) MarshalJSON() ([]byte, error)
- func (s *StorageStats) SetClickhouse(val OptClickHouseStats)
- func (s *StorageStats) SetClickhouseEnabled(val bool)
- func (s *StorageStats) SetEngine(val OptEngineStats)
- func (s *StorageStats) SetStorageEnabled(val bool)
- func (s *StorageStats) UnmarshalJSON(data []byte) error
- func (s *StorageStats) Validate() error
- type TableStats
- func (s *TableStats) Decode(d *jx.Decoder) error
- func (s *TableStats) Encode(e *jx.Encoder)
- func (s *TableStats) GetBytesOnDisk() int64
- func (s *TableStats) GetDataUncompressedBytes() int64
- func (s *TableStats) GetDatabase() string
- func (s *TableStats) GetMaxTime() OptDateTime
- func (s *TableStats) GetMinTime() OptDateTime
- func (s *TableStats) GetParts() int64
- func (s *TableStats) GetRows() int64
- func (s *TableStats) GetTable() string
- func (s *TableStats) MarshalJSON() ([]byte, error)
- func (s *TableStats) SetBytesOnDisk(val int64)
- func (s *TableStats) SetDataUncompressedBytes(val int64)
- func (s *TableStats) SetDatabase(val string)
- func (s *TableStats) SetMaxTime(val OptDateTime)
- func (s *TableStats) SetMinTime(val OptDateTime)
- func (s *TableStats) SetParts(val int64)
- func (s *TableStats) SetRows(val int64)
- func (s *TableStats) SetTable(val string)
- func (s *TableStats) UnmarshalJSON(data []byte) error
- type TenantEfficiency
- func (s *TenantEfficiency) Decode(d *jx.Decoder) error
- func (s *TenantEfficiency) Encode(e *jx.Encoder)
- func (s *TenantEfficiency) GetSignals() []SignalEfficiency
- func (s *TenantEfficiency) GetTenant() string
- func (s *TenantEfficiency) MarshalJSON() ([]byte, error)
- func (s *TenantEfficiency) SetSignals(val []SignalEfficiency)
- func (s *TenantEfficiency) SetTenant(val string)
- func (s *TenantEfficiency) UnmarshalJSON(data []byte) error
- func (s *TenantEfficiency) Validate() error
- type TenantStats
- func (s *TenantStats) Decode(d *jx.Decoder) error
- func (s *TenantStats) Encode(e *jx.Encoder)
- func (s *TenantStats) GetAdmission() AdmissionStats
- func (s *TenantStats) GetSignals() []EngineSignalStats
- func (s *TenantStats) GetTenant() string
- func (s *TenantStats) GetTotalParts() int64
- func (s *TenantStats) GetTotalSeries() int64
- func (s *TenantStats) MarshalJSON() ([]byte, error)
- func (s *TenantStats) SetAdmission(val AdmissionStats)
- func (s *TenantStats) SetSignals(val []EngineSignalStats)
- func (s *TenantStats) SetTenant(val string)
- func (s *TenantStats) SetTotalParts(val int64)
- func (s *TenantStats) SetTotalSeries(val int64)
- func (s *TenantStats) UnmarshalJSON(data []byte) error
- func (s *TenantStats) Validate() error
- type TraceID
- type UnimplementedHandler
- func (UnimplementedHandler) GetEfficiency(ctx context.Context) (r *EfficiencyStats, _ error)
- func (UnimplementedHandler) GetHealth(ctx context.Context) (r *HealthReport, _ error)
- func (UnimplementedHandler) GetInfo(ctx context.Context) (r *InstanceInfo, _ error)
- func (UnimplementedHandler) GetRuntime(ctx context.Context) (r *RuntimeStats, _ error)
- func (UnimplementedHandler) GetStorage(ctx context.Context) (r *StorageStats, _ error)
- func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
- func (UnimplementedHandler) RunAction(ctx context.Context, params RunActionParams) (r *ActionResult, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionName ¶
type ActionName string
Supported runtime control actions. Ref: #/components/schemas/ActionName
const ( ActionNameGc ActionName = "gc" ActionNameFreeOsMemory ActionName = "free-os-memory" ActionNameStorageMaintain ActionName = "storage-maintain" )
func (ActionName) AllValues ¶
func (ActionName) AllValues() []ActionName
AllValues returns all ActionName values.
func (*ActionName) Decode ¶
func (s *ActionName) Decode(d *jx.Decoder) error
Decode decodes ActionName from json.
func (ActionName) Encode ¶
func (s ActionName) Encode(e *jx.Encoder)
Encode encodes ActionName as json.
func (ActionName) MarshalJSON ¶
func (s ActionName) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ActionName) MarshalText ¶
func (s ActionName) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ActionName) UnmarshalJSON ¶
func (s *ActionName) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ActionName) UnmarshalText ¶
func (s *ActionName) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ActionName) Validate ¶
func (s ActionName) Validate() error
type ActionResult ¶
type ActionResult struct {
Action ActionName `json:"action"`
Ok bool `json:"ok"`
// Human-readable outcome.
Message string `json:"message"`
// Heap bytes released, for memory-reclaiming actions.
FreedBytes OptInt64 `json:"freed_bytes"`
}
Ref: #/components/schemas/ActionResult
func (*ActionResult) Decode ¶
func (s *ActionResult) Decode(d *jx.Decoder) error
Decode decodes ActionResult from json.
func (*ActionResult) Encode ¶
func (s *ActionResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ActionResult) GetAction ¶
func (s *ActionResult) GetAction() ActionName
GetAction returns the value of Action.
func (*ActionResult) GetFreedBytes ¶
func (s *ActionResult) GetFreedBytes() OptInt64
GetFreedBytes returns the value of FreedBytes.
func (*ActionResult) GetMessage ¶
func (s *ActionResult) GetMessage() string
GetMessage returns the value of Message.
func (*ActionResult) MarshalJSON ¶
func (s *ActionResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActionResult) SetAction ¶
func (s *ActionResult) SetAction(val ActionName)
SetAction sets the value of Action.
func (*ActionResult) SetFreedBytes ¶
func (s *ActionResult) SetFreedBytes(val OptInt64)
SetFreedBytes sets the value of FreedBytes.
func (*ActionResult) SetMessage ¶
func (s *ActionResult) SetMessage(val string)
SetMessage sets the value of Message.
func (*ActionResult) UnmarshalJSON ¶
func (s *ActionResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ActionResult) Validate ¶
func (s *ActionResult) Validate() error
type AdmissionStats ¶
type AdmissionStats struct {
Accepted int64 `json:"accepted"`
// Rejected as out-of-order.
RejectedOoo int64 `json:"rejected_ooo"`
// Rejected by rate limit.
RejectedRate int64 `json:"rejected_rate"`
// Rejected by cardinality limit.
RejectedCardinality int64 `json:"rejected_cardinality"`
// Rejected due to in-flight admission pressure.
RejectedInFlight int64 `json:"rejected_in_flight"`
SampledDropped int64 `json:"sampled_dropped"`
Overflowed int64 `json:"overflowed"`
}
Ingestion admission counters for a tenant. Ref: #/components/schemas/AdmissionStats
func (*AdmissionStats) Decode ¶
func (s *AdmissionStats) Decode(d *jx.Decoder) error
Decode decodes AdmissionStats from json.
func (*AdmissionStats) Encode ¶
func (s *AdmissionStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AdmissionStats) GetAccepted ¶
func (s *AdmissionStats) GetAccepted() int64
GetAccepted returns the value of Accepted.
func (*AdmissionStats) GetOverflowed ¶
func (s *AdmissionStats) GetOverflowed() int64
GetOverflowed returns the value of Overflowed.
func (*AdmissionStats) GetRejectedCardinality ¶
func (s *AdmissionStats) GetRejectedCardinality() int64
GetRejectedCardinality returns the value of RejectedCardinality.
func (*AdmissionStats) GetRejectedInFlight ¶
func (s *AdmissionStats) GetRejectedInFlight() int64
GetRejectedInFlight returns the value of RejectedInFlight.
func (*AdmissionStats) GetRejectedOoo ¶
func (s *AdmissionStats) GetRejectedOoo() int64
GetRejectedOoo returns the value of RejectedOoo.
func (*AdmissionStats) GetRejectedRate ¶
func (s *AdmissionStats) GetRejectedRate() int64
GetRejectedRate returns the value of RejectedRate.
func (*AdmissionStats) GetSampledDropped ¶
func (s *AdmissionStats) GetSampledDropped() int64
GetSampledDropped returns the value of SampledDropped.
func (*AdmissionStats) MarshalJSON ¶
func (s *AdmissionStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AdmissionStats) SetAccepted ¶
func (s *AdmissionStats) SetAccepted(val int64)
SetAccepted sets the value of Accepted.
func (*AdmissionStats) SetOverflowed ¶
func (s *AdmissionStats) SetOverflowed(val int64)
SetOverflowed sets the value of Overflowed.
func (*AdmissionStats) SetRejectedCardinality ¶
func (s *AdmissionStats) SetRejectedCardinality(val int64)
SetRejectedCardinality sets the value of RejectedCardinality.
func (*AdmissionStats) SetRejectedInFlight ¶
func (s *AdmissionStats) SetRejectedInFlight(val int64)
SetRejectedInFlight sets the value of RejectedInFlight.
func (*AdmissionStats) SetRejectedOoo ¶
func (s *AdmissionStats) SetRejectedOoo(val int64)
SetRejectedOoo sets the value of RejectedOoo.
func (*AdmissionStats) SetRejectedRate ¶
func (s *AdmissionStats) SetRejectedRate(val int64)
SetRejectedRate sets the value of RejectedRate.
func (*AdmissionStats) SetSampledDropped ¶
func (s *AdmissionStats) SetSampledDropped(val int64)
SetSampledDropped sets the value of SampledDropped.
func (*AdmissionStats) UnmarshalJSON ¶
func (s *AdmissionStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CacheStats ¶
type CacheStats struct {
DecodeCache DecodeCacheStats `json:"decode_cache"`
}
Ref: #/components/schemas/CacheStats
func (*CacheStats) Decode ¶
func (s *CacheStats) Decode(d *jx.Decoder) error
Decode decodes CacheStats from json.
func (*CacheStats) Encode ¶
func (s *CacheStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CacheStats) GetDecodeCache ¶
func (s *CacheStats) GetDecodeCache() DecodeCacheStats
GetDecodeCache returns the value of DecodeCache.
func (*CacheStats) MarshalJSON ¶
func (s *CacheStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CacheStats) SetDecodeCache ¶
func (s *CacheStats) SetDecodeCache(val DecodeCacheStats)
SetDecodeCache sets the value of DecodeCache.
func (*CacheStats) UnmarshalJSON ¶
func (s *CacheStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ClickHouseStats ¶
type ClickHouseStats struct {
Tables []TableStats `json:"tables"`
}
Deprecated ClickHouse storage statistics. Ref: #/components/schemas/ClickHouseStats
func (*ClickHouseStats) Decode ¶
func (s *ClickHouseStats) Decode(d *jx.Decoder) error
Decode decodes ClickHouseStats from json.
func (*ClickHouseStats) Encode ¶
func (s *ClickHouseStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ClickHouseStats) GetTables ¶
func (s *ClickHouseStats) GetTables() []TableStats
GetTables returns the value of Tables.
func (*ClickHouseStats) MarshalJSON ¶
func (s *ClickHouseStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ClickHouseStats) SetTables ¶
func (s *ClickHouseStats) SetTables(val []TableStats)
SetTables sets the value of Tables.
func (*ClickHouseStats) UnmarshalJSON ¶
func (s *ClickHouseStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ClickHouseStats) Validate ¶
func (s *ClickHouseStats) Validate() error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) GetEfficiency ¶
func (c *Client) GetEfficiency(ctx context.Context) (*EfficiencyStats, error)
GetEfficiency invokes getEfficiency operation.
Per-tenant, per-signal capacity and efficiency breakdown of the embedded storage engine: series, parts, points, stored bytes, bytes per point and compression ratios. Unlike the other storage endpoints this one performs backend I/O (per-part object sizes) — poll it at dashboard cadence, not per request. Empty when the embedded engine is not active.
GET /api/v1/storage/efficiency
func (*Client) GetHealth ¶
func (c *Client) GetHealth(ctx context.Context) (*HealthReport, error)
GetHealth invokes getHealth operation.
Health of each wired service (query APIs, collector, storage).
GET /api/v1/health
func (*Client) GetInfo ¶
func (c *Client) GetInfo(ctx context.Context) (*InstanceInfo, error)
GetInfo invokes getInfo operation.
Build information, uptime and per-signal backend configuration.
GET /api/v1/info
func (*Client) GetRuntime ¶
func (c *Client) GetRuntime(ctx context.Context) (*RuntimeStats, error)
GetRuntime invokes getRuntime operation.
Live heap, GC and goroutine counters of the running process.
GET /api/v1/runtime
func (*Client) GetStorage ¶
func (c *Client) GetStorage(ctx context.Context) (*StorageStats, error)
GetStorage invokes getStorage operation.
Per-table statistics (rows, on-disk and uncompressed bytes, parts, min/max timestamp) collected from ClickHouse system tables. Empty when no signal is served from ClickHouse.
GET /api/v1/storage
func (*Client) RunAction ¶
func (c *Client) RunAction(ctx context.Context, params RunActionParams) (*ActionResult, error)
RunAction invokes runAction operation.
Execute a maintenance action against the running process.
POST /api/v1/actions/{action}
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type ClusterMember ¶
type ClusterMember struct {
ID string `json:"id"`
Zone OptString `json:"zone"`
Addr OptString `json:"addr"`
}
Ref: #/components/schemas/ClusterMember
func (*ClusterMember) Decode ¶
func (s *ClusterMember) Decode(d *jx.Decoder) error
Decode decodes ClusterMember from json.
func (*ClusterMember) Encode ¶
func (s *ClusterMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ClusterMember) GetAddr ¶
func (s *ClusterMember) GetAddr() OptString
GetAddr returns the value of Addr.
func (*ClusterMember) GetZone ¶
func (s *ClusterMember) GetZone() OptString
GetZone returns the value of Zone.
func (*ClusterMember) MarshalJSON ¶
func (s *ClusterMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ClusterMember) SetAddr ¶
func (s *ClusterMember) SetAddr(val OptString)
SetAddr sets the value of Addr.
func (*ClusterMember) SetZone ¶
func (s *ClusterMember) SetZone(val OptString)
SetZone sets the value of Zone.
func (*ClusterMember) UnmarshalJSON ¶
func (s *ClusterMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ClusterStats ¶
type ClusterStats struct {
// This node's ring id.
Self string `json:"self"`
Members []ClusterMember `json:"members"`
// Shard keys owned by this node.
Owned []string `json:"owned"`
PartSync OptPartSyncStats `json:"part_sync"`
Ec OptECStats `json:"ec"`
}
Cluster membership, present only in cluster mode. Ref: #/components/schemas/ClusterStats
func (*ClusterStats) Decode ¶
func (s *ClusterStats) Decode(d *jx.Decoder) error
Decode decodes ClusterStats from json.
func (*ClusterStats) Encode ¶
func (s *ClusterStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ClusterStats) GetEc ¶
func (s *ClusterStats) GetEc() OptECStats
GetEc returns the value of Ec.
func (*ClusterStats) GetMembers ¶
func (s *ClusterStats) GetMembers() []ClusterMember
GetMembers returns the value of Members.
func (*ClusterStats) GetOwned ¶
func (s *ClusterStats) GetOwned() []string
GetOwned returns the value of Owned.
func (*ClusterStats) GetPartSync ¶
func (s *ClusterStats) GetPartSync() OptPartSyncStats
GetPartSync returns the value of PartSync.
func (*ClusterStats) GetSelf ¶
func (s *ClusterStats) GetSelf() string
GetSelf returns the value of Self.
func (*ClusterStats) MarshalJSON ¶
func (s *ClusterStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ClusterStats) SetEc ¶
func (s *ClusterStats) SetEc(val OptECStats)
SetEc sets the value of Ec.
func (*ClusterStats) SetMembers ¶
func (s *ClusterStats) SetMembers(val []ClusterMember)
SetMembers sets the value of Members.
func (*ClusterStats) SetOwned ¶
func (s *ClusterStats) SetOwned(val []string)
SetOwned sets the value of Owned.
func (*ClusterStats) SetPartSync ¶
func (s *ClusterStats) SetPartSync(val OptPartSyncStats)
SetPartSync sets the value of PartSync.
func (*ClusterStats) SetSelf ¶
func (s *ClusterStats) SetSelf(val string)
SetSelf sets the value of Self.
func (*ClusterStats) UnmarshalJSON ¶
func (s *ClusterStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ClusterStats) Validate ¶
func (s *ClusterStats) Validate() error
type ComponentHealth ¶
type ComponentHealth struct {
// Component/service name.
Name string `json:"name"`
Status HealthStatus `json:"status"`
// Listen address, when the component is an HTTP server.
Addr OptString `json:"addr"`
// Last error, when unhealthy.
Error OptString `json:"error"`
}
Ref: #/components/schemas/ComponentHealth
func (*ComponentHealth) Decode ¶
func (s *ComponentHealth) Decode(d *jx.Decoder) error
Decode decodes ComponentHealth from json.
func (*ComponentHealth) Encode ¶
func (s *ComponentHealth) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComponentHealth) GetAddr ¶
func (s *ComponentHealth) GetAddr() OptString
GetAddr returns the value of Addr.
func (*ComponentHealth) GetError ¶
func (s *ComponentHealth) GetError() OptString
GetError returns the value of Error.
func (*ComponentHealth) GetName ¶
func (s *ComponentHealth) GetName() string
GetName returns the value of Name.
func (*ComponentHealth) GetStatus ¶
func (s *ComponentHealth) GetStatus() HealthStatus
GetStatus returns the value of Status.
func (*ComponentHealth) MarshalJSON ¶
func (s *ComponentHealth) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComponentHealth) SetAddr ¶
func (s *ComponentHealth) SetAddr(val OptString)
SetAddr sets the value of Addr.
func (*ComponentHealth) SetError ¶
func (s *ComponentHealth) SetError(val OptString)
SetError sets the value of Error.
func (*ComponentHealth) SetName ¶
func (s *ComponentHealth) SetName(val string)
SetName sets the value of Name.
func (*ComponentHealth) SetStatus ¶
func (s *ComponentHealth) SetStatus(val HealthStatus)
SetStatus sets the value of Status.
func (*ComponentHealth) UnmarshalJSON ¶
func (s *ComponentHealth) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComponentHealth) Validate ¶
func (s *ComponentHealth) Validate() error
type DecodeCacheStats ¶
type DecodeCacheStats struct {
Hits int64 `json:"hits"`
Misses int64 `json:"misses"`
Bytes int64 `json:"bytes"`
// Cached blocks.
Items int64 `json:"items"`
}
Decoded-column cache, summed across metric engines. Ref: #/components/schemas/DecodeCacheStats
func (*DecodeCacheStats) Decode ¶
func (s *DecodeCacheStats) Decode(d *jx.Decoder) error
Decode decodes DecodeCacheStats from json.
func (*DecodeCacheStats) Encode ¶
func (s *DecodeCacheStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DecodeCacheStats) GetBytes ¶
func (s *DecodeCacheStats) GetBytes() int64
GetBytes returns the value of Bytes.
func (*DecodeCacheStats) GetHits ¶
func (s *DecodeCacheStats) GetHits() int64
GetHits returns the value of Hits.
func (*DecodeCacheStats) GetItems ¶
func (s *DecodeCacheStats) GetItems() int64
GetItems returns the value of Items.
func (*DecodeCacheStats) GetMisses ¶
func (s *DecodeCacheStats) GetMisses() int64
GetMisses returns the value of Misses.
func (*DecodeCacheStats) MarshalJSON ¶
func (s *DecodeCacheStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DecodeCacheStats) SetBytes ¶
func (s *DecodeCacheStats) SetBytes(val int64)
SetBytes sets the value of Bytes.
func (*DecodeCacheStats) SetHits ¶
func (s *DecodeCacheStats) SetHits(val int64)
SetHits sets the value of Hits.
func (*DecodeCacheStats) SetItems ¶
func (s *DecodeCacheStats) SetItems(val int64)
SetItems sets the value of Items.
func (*DecodeCacheStats) SetMisses ¶
func (s *DecodeCacheStats) SetMisses(val int64)
SetMisses sets the value of Misses.
func (*DecodeCacheStats) UnmarshalJSON ¶
func (s *DecodeCacheStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ECStats ¶
type ECStats struct {
// Cold parts erasure-coded by this node as their compaction owner.
Converted int64 `json:"converted"`
// Failed conversion attempts (retried on a later maintenance tick).
ConvertErrors int64 `json:"convert_errors"`
// Shard slots rebuilt from surviving shards.
RepairedSlots int64 `json:"repaired_slots"`
// Failed repair attempts.
RepairErrors int64 `json:"repair_errors"`
// Parts whose staged foreign shards were pruned after distribution.
PrunedStagedParts int64 `json:"pruned_staged_parts"`
// Read-path object reconstructions (no local full copy).
Reconstructs int64 `json:"reconstructs"`
// Reconstructions that failed and surfaced to the query.
ReconstructErrors int64 `json:"reconstruct_errors"`
}
Cumulative erasure-coding activity of this node, present only when the cluster runs with a private (per-node) backend. All zeros when no tenant has an EC policy. A high reconstruct rate on cold reads is expected; growing errors are not. Ref: #/components/schemas/ECStats
func (*ECStats) GetConvertErrors ¶
GetConvertErrors returns the value of ConvertErrors.
func (*ECStats) GetConverted ¶
GetConverted returns the value of Converted.
func (*ECStats) GetPrunedStagedParts ¶
GetPrunedStagedParts returns the value of PrunedStagedParts.
func (*ECStats) GetReconstructErrors ¶
GetReconstructErrors returns the value of ReconstructErrors.
func (*ECStats) GetReconstructs ¶
GetReconstructs returns the value of Reconstructs.
func (*ECStats) GetRepairErrors ¶
GetRepairErrors returns the value of RepairErrors.
func (*ECStats) GetRepairedSlots ¶
GetRepairedSlots returns the value of RepairedSlots.
func (*ECStats) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ECStats) SetConvertErrors ¶
SetConvertErrors sets the value of ConvertErrors.
func (*ECStats) SetConverted ¶
SetConverted sets the value of Converted.
func (*ECStats) SetPrunedStagedParts ¶
SetPrunedStagedParts sets the value of PrunedStagedParts.
func (*ECStats) SetReconstructErrors ¶
SetReconstructErrors sets the value of ReconstructErrors.
func (*ECStats) SetReconstructs ¶
SetReconstructs sets the value of Reconstructs.
func (*ECStats) SetRepairErrors ¶
SetRepairErrors sets the value of RepairErrors.
func (*ECStats) SetRepairedSlots ¶
SetRepairedSlots sets the value of RepairedSlots.
func (*ECStats) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type EfficiencyStats ¶
type EfficiencyStats struct {
// Whether the embedded oteldb/storage engine is active.
StorageEnabled bool `json:"storage_enabled"`
Tenants []TenantEfficiency `json:"tenants"`
}
Embedded storage capacity/efficiency breakdown. Ref: #/components/schemas/EfficiencyStats
func (*EfficiencyStats) Decode ¶
func (s *EfficiencyStats) Decode(d *jx.Decoder) error
Decode decodes EfficiencyStats from json.
func (*EfficiencyStats) Encode ¶
func (s *EfficiencyStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EfficiencyStats) GetStorageEnabled ¶
func (s *EfficiencyStats) GetStorageEnabled() bool
GetStorageEnabled returns the value of StorageEnabled.
func (*EfficiencyStats) GetTenants ¶
func (s *EfficiencyStats) GetTenants() []TenantEfficiency
GetTenants returns the value of Tenants.
func (*EfficiencyStats) MarshalJSON ¶
func (s *EfficiencyStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EfficiencyStats) SetStorageEnabled ¶
func (s *EfficiencyStats) SetStorageEnabled(val bool)
SetStorageEnabled sets the value of StorageEnabled.
func (*EfficiencyStats) SetTenants ¶
func (s *EfficiencyStats) SetTenants(val []TenantEfficiency)
SetTenants sets the value of Tenants.
func (*EfficiencyStats) UnmarshalJSON ¶
func (s *EfficiencyStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EfficiencyStats) Validate ¶
func (s *EfficiencyStats) Validate() error
type EngineSignalStats ¶
type EngineSignalStats struct {
Signal Signal `json:"signal"`
// Distinct series/streams (head and flushed).
Series int64 `json:"series"`
// Unflushed samples/records in the head.
HeadItems int64 `json:"head_items"`
// Head buffered bytes.
HeadBytes int64 `json:"head_bytes"`
// Flushed immutable parts.
Parts int64 `json:"parts"`
MinTime OptDateTime `json:"min_time"`
MaxTime OptDateTime `json:"max_time"`
MergeRunning bool `json:"merge_running"`
MergeBacklog int64 `json:"merge_backlog"`
// Whether a write-ahead log is active for this signal.
Wal bool `json:"wal"`
WalSegments int64 `json:"wal_segments"`
// Open WAL segment size.
WalBytes int64 `json:"wal_bytes"`
}
Per-signal engine statistics for a tenant. Ref: #/components/schemas/EngineSignalStats
func (*EngineSignalStats) Decode ¶
func (s *EngineSignalStats) Decode(d *jx.Decoder) error
Decode decodes EngineSignalStats from json.
func (*EngineSignalStats) Encode ¶
func (s *EngineSignalStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EngineSignalStats) GetHeadBytes ¶
func (s *EngineSignalStats) GetHeadBytes() int64
GetHeadBytes returns the value of HeadBytes.
func (*EngineSignalStats) GetHeadItems ¶
func (s *EngineSignalStats) GetHeadItems() int64
GetHeadItems returns the value of HeadItems.
func (*EngineSignalStats) GetMaxTime ¶
func (s *EngineSignalStats) GetMaxTime() OptDateTime
GetMaxTime returns the value of MaxTime.
func (*EngineSignalStats) GetMergeBacklog ¶
func (s *EngineSignalStats) GetMergeBacklog() int64
GetMergeBacklog returns the value of MergeBacklog.
func (*EngineSignalStats) GetMergeRunning ¶
func (s *EngineSignalStats) GetMergeRunning() bool
GetMergeRunning returns the value of MergeRunning.
func (*EngineSignalStats) GetMinTime ¶
func (s *EngineSignalStats) GetMinTime() OptDateTime
GetMinTime returns the value of MinTime.
func (*EngineSignalStats) GetParts ¶
func (s *EngineSignalStats) GetParts() int64
GetParts returns the value of Parts.
func (*EngineSignalStats) GetSeries ¶
func (s *EngineSignalStats) GetSeries() int64
GetSeries returns the value of Series.
func (*EngineSignalStats) GetSignal ¶
func (s *EngineSignalStats) GetSignal() Signal
GetSignal returns the value of Signal.
func (*EngineSignalStats) GetWal ¶
func (s *EngineSignalStats) GetWal() bool
GetWal returns the value of Wal.
func (*EngineSignalStats) GetWalBytes ¶
func (s *EngineSignalStats) GetWalBytes() int64
GetWalBytes returns the value of WalBytes.
func (*EngineSignalStats) GetWalSegments ¶
func (s *EngineSignalStats) GetWalSegments() int64
GetWalSegments returns the value of WalSegments.
func (*EngineSignalStats) MarshalJSON ¶
func (s *EngineSignalStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EngineSignalStats) SetHeadBytes ¶
func (s *EngineSignalStats) SetHeadBytes(val int64)
SetHeadBytes sets the value of HeadBytes.
func (*EngineSignalStats) SetHeadItems ¶
func (s *EngineSignalStats) SetHeadItems(val int64)
SetHeadItems sets the value of HeadItems.
func (*EngineSignalStats) SetMaxTime ¶
func (s *EngineSignalStats) SetMaxTime(val OptDateTime)
SetMaxTime sets the value of MaxTime.
func (*EngineSignalStats) SetMergeBacklog ¶
func (s *EngineSignalStats) SetMergeBacklog(val int64)
SetMergeBacklog sets the value of MergeBacklog.
func (*EngineSignalStats) SetMergeRunning ¶
func (s *EngineSignalStats) SetMergeRunning(val bool)
SetMergeRunning sets the value of MergeRunning.
func (*EngineSignalStats) SetMinTime ¶
func (s *EngineSignalStats) SetMinTime(val OptDateTime)
SetMinTime sets the value of MinTime.
func (*EngineSignalStats) SetParts ¶
func (s *EngineSignalStats) SetParts(val int64)
SetParts sets the value of Parts.
func (*EngineSignalStats) SetSeries ¶
func (s *EngineSignalStats) SetSeries(val int64)
SetSeries sets the value of Series.
func (*EngineSignalStats) SetSignal ¶
func (s *EngineSignalStats) SetSignal(val Signal)
SetSignal sets the value of Signal.
func (*EngineSignalStats) SetWal ¶
func (s *EngineSignalStats) SetWal(val bool)
SetWal sets the value of Wal.
func (*EngineSignalStats) SetWalBytes ¶
func (s *EngineSignalStats) SetWalBytes(val int64)
SetWalBytes sets the value of WalBytes.
func (*EngineSignalStats) SetWalSegments ¶
func (s *EngineSignalStats) SetWalSegments(val int64)
SetWalSegments sets the value of WalSegments.
func (*EngineSignalStats) UnmarshalJSON ¶
func (s *EngineSignalStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EngineSignalStats) Validate ¶
func (s *EngineSignalStats) Validate() error
type EngineStats ¶
type EngineStats struct {
Tenants []TenantStats `json:"tenants"`
Caches CacheStats `json:"caches"`
Maintenance MaintenanceStats `json:"maintenance"`
Cluster OptClusterStats `json:"cluster"`
}
Embedded oteldb/storage engine statistics. Ref: #/components/schemas/EngineStats
func (*EngineStats) Decode ¶
func (s *EngineStats) Decode(d *jx.Decoder) error
Decode decodes EngineStats from json.
func (*EngineStats) Encode ¶
func (s *EngineStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EngineStats) GetCaches ¶
func (s *EngineStats) GetCaches() CacheStats
GetCaches returns the value of Caches.
func (*EngineStats) GetCluster ¶
func (s *EngineStats) GetCluster() OptClusterStats
GetCluster returns the value of Cluster.
func (*EngineStats) GetMaintenance ¶
func (s *EngineStats) GetMaintenance() MaintenanceStats
GetMaintenance returns the value of Maintenance.
func (*EngineStats) GetTenants ¶
func (s *EngineStats) GetTenants() []TenantStats
GetTenants returns the value of Tenants.
func (*EngineStats) MarshalJSON ¶
func (s *EngineStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EngineStats) SetCaches ¶
func (s *EngineStats) SetCaches(val CacheStats)
SetCaches sets the value of Caches.
func (*EngineStats) SetCluster ¶
func (s *EngineStats) SetCluster(val OptClusterStats)
SetCluster sets the value of Cluster.
func (*EngineStats) SetMaintenance ¶
func (s *EngineStats) SetMaintenance(val MaintenanceStats)
SetMaintenance sets the value of Maintenance.
func (*EngineStats) SetTenants ¶
func (s *EngineStats) SetTenants(val []TenantStats)
SetTenants sets the value of Tenants.
func (*EngineStats) UnmarshalJSON ¶
func (s *EngineStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EngineStats) Validate ¶
func (s *EngineStats) Validate() error
type Error ¶
type Error struct {
// Human-readable error message.
ErrorMessage string `json:"error_message"`
TraceID OptTraceID `json:"trace_id"`
SpanID OptSpanID `json:"span_id"`
}
Error occurred while processing request. Ref: #/components/schemas/Error
func (*Error) GetErrorMessage ¶
GetErrorMessage returns the value of ErrorMessage.
func (*Error) GetTraceID ¶
func (s *Error) GetTraceID() OptTraceID
GetTraceID returns the value of TraceID.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetErrorMessage ¶
SetErrorMessage sets the value of ErrorMessage.
func (*Error) SetTraceID ¶
func (s *Error) SetTraceID(val OptTraceID)
SetTraceID sets the value of TraceID.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
func (*ErrorStatusCode) GetResponse ¶
func (s *ErrorStatusCode) GetResponse() Error
GetResponse returns the value of Response.
func (*ErrorStatusCode) GetStatusCode ¶
func (s *ErrorStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*ErrorStatusCode) SetResponse ¶
func (s *ErrorStatusCode) SetResponse(val Error)
SetResponse sets the value of Response.
func (*ErrorStatusCode) SetStatusCode ¶
func (s *ErrorStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
func (*ErrorStatusCode) Validate ¶
func (s *ErrorStatusCode) Validate() error
type Handler ¶
type Handler interface {
// GetEfficiency implements getEfficiency operation.
//
// Per-tenant, per-signal capacity and efficiency breakdown of the embedded storage engine: series,
// parts, points, stored bytes, bytes per point and compression ratios. Unlike the other storage
// endpoints this one performs backend I/O (per-part object sizes) — poll it at dashboard cadence,
// not per request. Empty when the embedded engine is not active.
//
// GET /api/v1/storage/efficiency
GetEfficiency(ctx context.Context) (*EfficiencyStats, error)
// GetHealth implements getHealth operation.
//
// Health of each wired service (query APIs, collector, storage).
//
// GET /api/v1/health
GetHealth(ctx context.Context) (*HealthReport, error)
// GetInfo implements getInfo operation.
//
// Build information, uptime and per-signal backend configuration.
//
// GET /api/v1/info
GetInfo(ctx context.Context) (*InstanceInfo, error)
// GetRuntime implements getRuntime operation.
//
// Live heap, GC and goroutine counters of the running process.
//
// GET /api/v1/runtime
GetRuntime(ctx context.Context) (*RuntimeStats, error)
// GetStorage implements getStorage operation.
//
// Per-table statistics (rows, on-disk and uncompressed bytes, parts, min/max timestamp) collected from
// ClickHouse system tables. Empty when no signal is served from ClickHouse.
//
// GET /api/v1/storage
GetStorage(ctx context.Context) (*StorageStats, error)
// RunAction implements runAction operation.
//
// Execute a maintenance action against the running process.
//
// POST /api/v1/actions/{action}
RunAction(ctx context.Context, params RunActionParams) (*ActionResult, error)
// NewError creates *ErrorStatusCode from error returned by handler.
//
// Used for common default response.
NewError(ctx context.Context, err error) *ErrorStatusCode
}
Handler handles operations described by OpenAPI v3 specification.
type HealthReport ¶
type HealthReport struct {
Status HealthStatus `json:"status"`
Components []ComponentHealth `json:"components"`
}
Ref: #/components/schemas/HealthReport
func (*HealthReport) Decode ¶
func (s *HealthReport) Decode(d *jx.Decoder) error
Decode decodes HealthReport from json.
func (*HealthReport) Encode ¶
func (s *HealthReport) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*HealthReport) GetComponents ¶
func (s *HealthReport) GetComponents() []ComponentHealth
GetComponents returns the value of Components.
func (*HealthReport) GetStatus ¶
func (s *HealthReport) GetStatus() HealthStatus
GetStatus returns the value of Status.
func (*HealthReport) MarshalJSON ¶
func (s *HealthReport) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*HealthReport) SetComponents ¶
func (s *HealthReport) SetComponents(val []ComponentHealth)
SetComponents sets the value of Components.
func (*HealthReport) SetStatus ¶
func (s *HealthReport) SetStatus(val HealthStatus)
SetStatus sets the value of Status.
func (*HealthReport) UnmarshalJSON ¶
func (s *HealthReport) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HealthReport) Validate ¶
func (s *HealthReport) Validate() error
type HealthStatus ¶
type HealthStatus string
Ref: #/components/schemas/HealthStatus
const ( HealthStatusHealthy HealthStatus = "healthy" HealthStatusDegraded HealthStatus = "degraded" HealthStatusUnhealthy HealthStatus = "unhealthy" )
func (HealthStatus) AllValues ¶
func (HealthStatus) AllValues() []HealthStatus
AllValues returns all HealthStatus values.
func (*HealthStatus) Decode ¶
func (s *HealthStatus) Decode(d *jx.Decoder) error
Decode decodes HealthStatus from json.
func (HealthStatus) Encode ¶
func (s HealthStatus) Encode(e *jx.Encoder)
Encode encodes HealthStatus as json.
func (HealthStatus) MarshalJSON ¶
func (s HealthStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HealthStatus) MarshalText ¶
func (s HealthStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HealthStatus) UnmarshalJSON ¶
func (s *HealthStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HealthStatus) UnmarshalText ¶
func (s *HealthStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HealthStatus) Validate ¶
func (s HealthStatus) Validate() error
type InstanceInfo ¶
type InstanceInfo struct {
// Build version.
Version string `json:"version"`
// VCS commit hash.
Commit string `json:"commit"`
// Go toolchain version the binary was built with.
GoVersion string `json:"go_version"`
Os string `json:"os"`
Arch string `json:"arch"`
// Process start time.
StartTime time.Time `json:"start_time"`
// Seconds since process start.
UptimeSeconds float64 `json:"uptime_seconds"`
// Whether the embedded oteldb/storage engine is active.
StorageEnabled bool `json:"storage_enabled"`
// Embedded storage engine backend (memory, file or s3), when enabled.
StorageBackend OptString `json:"storage_backend"`
// Whether the (deprecated) ClickHouse storage is active.
ClickhouseEnabled bool `json:"clickhouse_enabled"`
// Per-signal configuration.
Signals []SignalInfo `json:"signals"`
}
Instance build info, uptime and per-signal configuration. Ref: #/components/schemas/InstanceInfo
func (*InstanceInfo) Decode ¶
func (s *InstanceInfo) Decode(d *jx.Decoder) error
Decode decodes InstanceInfo from json.
func (*InstanceInfo) Encode ¶
func (s *InstanceInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InstanceInfo) GetArch ¶
func (s *InstanceInfo) GetArch() string
GetArch returns the value of Arch.
func (*InstanceInfo) GetClickhouseEnabled ¶
func (s *InstanceInfo) GetClickhouseEnabled() bool
GetClickhouseEnabled returns the value of ClickhouseEnabled.
func (*InstanceInfo) GetCommit ¶
func (s *InstanceInfo) GetCommit() string
GetCommit returns the value of Commit.
func (*InstanceInfo) GetGoVersion ¶
func (s *InstanceInfo) GetGoVersion() string
GetGoVersion returns the value of GoVersion.
func (*InstanceInfo) GetSignals ¶
func (s *InstanceInfo) GetSignals() []SignalInfo
GetSignals returns the value of Signals.
func (*InstanceInfo) GetStartTime ¶
func (s *InstanceInfo) GetStartTime() time.Time
GetStartTime returns the value of StartTime.
func (*InstanceInfo) GetStorageBackend ¶
func (s *InstanceInfo) GetStorageBackend() OptString
GetStorageBackend returns the value of StorageBackend.
func (*InstanceInfo) GetStorageEnabled ¶
func (s *InstanceInfo) GetStorageEnabled() bool
GetStorageEnabled returns the value of StorageEnabled.
func (*InstanceInfo) GetUptimeSeconds ¶
func (s *InstanceInfo) GetUptimeSeconds() float64
GetUptimeSeconds returns the value of UptimeSeconds.
func (*InstanceInfo) GetVersion ¶
func (s *InstanceInfo) GetVersion() string
GetVersion returns the value of Version.
func (*InstanceInfo) MarshalJSON ¶
func (s *InstanceInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstanceInfo) SetArch ¶
func (s *InstanceInfo) SetArch(val string)
SetArch sets the value of Arch.
func (*InstanceInfo) SetClickhouseEnabled ¶
func (s *InstanceInfo) SetClickhouseEnabled(val bool)
SetClickhouseEnabled sets the value of ClickhouseEnabled.
func (*InstanceInfo) SetCommit ¶
func (s *InstanceInfo) SetCommit(val string)
SetCommit sets the value of Commit.
func (*InstanceInfo) SetGoVersion ¶
func (s *InstanceInfo) SetGoVersion(val string)
SetGoVersion sets the value of GoVersion.
func (*InstanceInfo) SetSignals ¶
func (s *InstanceInfo) SetSignals(val []SignalInfo)
SetSignals sets the value of Signals.
func (*InstanceInfo) SetStartTime ¶
func (s *InstanceInfo) SetStartTime(val time.Time)
SetStartTime sets the value of StartTime.
func (*InstanceInfo) SetStorageBackend ¶
func (s *InstanceInfo) SetStorageBackend(val OptString)
SetStorageBackend sets the value of StorageBackend.
func (*InstanceInfo) SetStorageEnabled ¶
func (s *InstanceInfo) SetStorageEnabled(val bool)
SetStorageEnabled sets the value of StorageEnabled.
func (*InstanceInfo) SetUptimeSeconds ¶
func (s *InstanceInfo) SetUptimeSeconds(val float64)
SetUptimeSeconds sets the value of UptimeSeconds.
func (*InstanceInfo) SetVersion ¶
func (s *InstanceInfo) SetVersion(val string)
SetVersion sets the value of Version.
func (*InstanceInfo) UnmarshalJSON ¶
func (s *InstanceInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InstanceInfo) Validate ¶
func (s *InstanceInfo) Validate() error
type Invoker ¶
type Invoker interface {
// GetEfficiency invokes getEfficiency operation.
//
// Per-tenant, per-signal capacity and efficiency breakdown of the embedded storage engine: series,
// parts, points, stored bytes, bytes per point and compression ratios. Unlike the other storage
// endpoints this one performs backend I/O (per-part object sizes) — poll it at dashboard cadence,
// not per request. Empty when the embedded engine is not active.
//
// GET /api/v1/storage/efficiency
GetEfficiency(ctx context.Context) (*EfficiencyStats, error)
// GetHealth invokes getHealth operation.
//
// Health of each wired service (query APIs, collector, storage).
//
// GET /api/v1/health
GetHealth(ctx context.Context) (*HealthReport, error)
// GetInfo invokes getInfo operation.
//
// Build information, uptime and per-signal backend configuration.
//
// GET /api/v1/info
GetInfo(ctx context.Context) (*InstanceInfo, error)
// GetRuntime invokes getRuntime operation.
//
// Live heap, GC and goroutine counters of the running process.
//
// GET /api/v1/runtime
GetRuntime(ctx context.Context) (*RuntimeStats, error)
// GetStorage invokes getStorage operation.
//
// Per-table statistics (rows, on-disk and uncompressed bytes, parts, min/max timestamp) collected from
// ClickHouse system tables. Empty when no signal is served from ClickHouse.
//
// GET /api/v1/storage
GetStorage(ctx context.Context) (*StorageStats, error)
// RunAction invokes runAction operation.
//
// Execute a maintenance action against the running process.
//
// POST /api/v1/actions/{action}
RunAction(ctx context.Context, params RunActionParams) (*ActionResult, error)
}
Invoker invokes operations described by OpenAPI v3 specification.
type Labeler ¶
type Labeler struct {
// contains filtered or unexported fields
}
Labeler is used to allow adding custom attributes to the server request metrics.
func LabelerFromContext ¶
LabelerFromContext retrieves the Labeler from the provided context, if present.
If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.
func (*Labeler) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type MaintenanceStats ¶
type MaintenanceStats struct {
// Completed maintenance cycles since process start (the loop-liveness probe).
Cycles int64 `json:"cycles"`
// Start of the most recent cycle, once one has run.
LastCycleStart OptDateTime `json:"last_cycle_start"`
// Duration of the most recent completed cycle.
LastCycleDurationSeconds float64 `json:"last_cycle_duration_seconds"`
// Engine tasks (flush/merge or replica refresh) dispatched in the most recent cycle.
LastCycleTasks int64 `json:"last_cycle_tasks"`
}
Background maintenance loop liveness and recency. A growing cycle duration means compaction is falling behind the ingest rate. Ref: #/components/schemas/MaintenanceStats
func (*MaintenanceStats) Decode ¶
func (s *MaintenanceStats) Decode(d *jx.Decoder) error
Decode decodes MaintenanceStats from json.
func (*MaintenanceStats) Encode ¶
func (s *MaintenanceStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*MaintenanceStats) GetCycles ¶
func (s *MaintenanceStats) GetCycles() int64
GetCycles returns the value of Cycles.
func (*MaintenanceStats) GetLastCycleDurationSeconds ¶
func (s *MaintenanceStats) GetLastCycleDurationSeconds() float64
GetLastCycleDurationSeconds returns the value of LastCycleDurationSeconds.
func (*MaintenanceStats) GetLastCycleStart ¶
func (s *MaintenanceStats) GetLastCycleStart() OptDateTime
GetLastCycleStart returns the value of LastCycleStart.
func (*MaintenanceStats) GetLastCycleTasks ¶
func (s *MaintenanceStats) GetLastCycleTasks() int64
GetLastCycleTasks returns the value of LastCycleTasks.
func (*MaintenanceStats) MarshalJSON ¶
func (s *MaintenanceStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MaintenanceStats) SetCycles ¶
func (s *MaintenanceStats) SetCycles(val int64)
SetCycles sets the value of Cycles.
func (*MaintenanceStats) SetLastCycleDurationSeconds ¶
func (s *MaintenanceStats) SetLastCycleDurationSeconds(val float64)
SetLastCycleDurationSeconds sets the value of LastCycleDurationSeconds.
func (*MaintenanceStats) SetLastCycleStart ¶
func (s *MaintenanceStats) SetLastCycleStart(val OptDateTime)
SetLastCycleStart sets the value of LastCycleStart.
func (*MaintenanceStats) SetLastCycleTasks ¶
func (s *MaintenanceStats) SetLastCycleTasks(val int64)
SetLastCycleTasks sets the value of LastCycleTasks.
func (*MaintenanceStats) UnmarshalJSON ¶
func (s *MaintenanceStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*MaintenanceStats) Validate ¶
func (s *MaintenanceStats) Validate() error
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( GetEfficiencyOperation OperationName = "GetEfficiency" GetHealthOperation OperationName = "GetHealth" GetInfoOperation OperationName = "GetInfo" GetRuntimeOperation OperationName = "GetRuntime" GetStorageOperation OperationName = "GetStorage" RunActionOperation OperationName = "RunAction" )
type OptClickHouseStats ¶
type OptClickHouseStats struct {
Value ClickHouseStats
Set bool
}
OptClickHouseStats is optional ClickHouseStats.
func NewOptClickHouseStats ¶
func NewOptClickHouseStats(v ClickHouseStats) OptClickHouseStats
NewOptClickHouseStats returns new OptClickHouseStats with value set to v.
func (*OptClickHouseStats) Decode ¶
func (o *OptClickHouseStats) Decode(d *jx.Decoder) error
Decode decodes ClickHouseStats from json.
func (OptClickHouseStats) Encode ¶
func (o OptClickHouseStats) Encode(e *jx.Encoder)
Encode encodes ClickHouseStats as json.
func (OptClickHouseStats) Get ¶
func (o OptClickHouseStats) Get() (v ClickHouseStats, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptClickHouseStats) IsSet ¶
func (o OptClickHouseStats) IsSet() bool
IsSet returns true if OptClickHouseStats was set.
func (OptClickHouseStats) MarshalJSON ¶
func (s OptClickHouseStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptClickHouseStats) Or ¶
func (o OptClickHouseStats) Or(d ClickHouseStats) ClickHouseStats
Or returns value if set, or given parameter if does not.
func (*OptClickHouseStats) SetTo ¶
func (o *OptClickHouseStats) SetTo(v ClickHouseStats)
SetTo sets value to v.
func (*OptClickHouseStats) UnmarshalJSON ¶
func (s *OptClickHouseStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptClusterStats ¶
type OptClusterStats struct {
Value ClusterStats
Set bool
}
OptClusterStats is optional ClusterStats.
func NewOptClusterStats ¶
func NewOptClusterStats(v ClusterStats) OptClusterStats
NewOptClusterStats returns new OptClusterStats with value set to v.
func (*OptClusterStats) Decode ¶
func (o *OptClusterStats) Decode(d *jx.Decoder) error
Decode decodes ClusterStats from json.
func (OptClusterStats) Encode ¶
func (o OptClusterStats) Encode(e *jx.Encoder)
Encode encodes ClusterStats as json.
func (OptClusterStats) Get ¶
func (o OptClusterStats) Get() (v ClusterStats, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptClusterStats) IsSet ¶
func (o OptClusterStats) IsSet() bool
IsSet returns true if OptClusterStats was set.
func (OptClusterStats) MarshalJSON ¶
func (s OptClusterStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptClusterStats) Or ¶
func (o OptClusterStats) Or(d ClusterStats) ClusterStats
Or returns value if set, or given parameter if does not.
func (*OptClusterStats) SetTo ¶
func (o *OptClusterStats) SetTo(v ClusterStats)
SetTo sets value to v.
func (*OptClusterStats) UnmarshalJSON ¶
func (s *OptClusterStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
func (OptDateTime) Get ¶
func (o OptDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDateTime) IsSet ¶
func (o OptDateTime) IsSet() bool
IsSet returns true if OptDateTime was set.
func (OptDateTime) MarshalJSON ¶
func (s OptDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDateTime) Or ¶
func (o OptDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptDateTime) UnmarshalJSON ¶
func (s *OptDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptECStats ¶
OptECStats is optional ECStats.
func NewOptECStats ¶
func NewOptECStats(v ECStats) OptECStats
NewOptECStats returns new OptECStats with value set to v.
func (*OptECStats) Decode ¶
func (o *OptECStats) Decode(d *jx.Decoder) error
Decode decodes ECStats from json.
func (OptECStats) Encode ¶
func (o OptECStats) Encode(e *jx.Encoder)
Encode encodes ECStats as json.
func (OptECStats) Get ¶
func (o OptECStats) Get() (v ECStats, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptECStats) IsSet ¶
func (o OptECStats) IsSet() bool
IsSet returns true if OptECStats was set.
func (OptECStats) MarshalJSON ¶
func (s OptECStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptECStats) Or ¶
func (o OptECStats) Or(d ECStats) ECStats
Or returns value if set, or given parameter if does not.
func (*OptECStats) UnmarshalJSON ¶
func (s *OptECStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEngineStats ¶
type OptEngineStats struct {
Value EngineStats
Set bool
}
OptEngineStats is optional EngineStats.
func NewOptEngineStats ¶
func NewOptEngineStats(v EngineStats) OptEngineStats
NewOptEngineStats returns new OptEngineStats with value set to v.
func (*OptEngineStats) Decode ¶
func (o *OptEngineStats) Decode(d *jx.Decoder) error
Decode decodes EngineStats from json.
func (OptEngineStats) Encode ¶
func (o OptEngineStats) Encode(e *jx.Encoder)
Encode encodes EngineStats as json.
func (OptEngineStats) Get ¶
func (o OptEngineStats) Get() (v EngineStats, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEngineStats) IsSet ¶
func (o OptEngineStats) IsSet() bool
IsSet returns true if OptEngineStats was set.
func (OptEngineStats) MarshalJSON ¶
func (s OptEngineStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEngineStats) Or ¶
func (o OptEngineStats) Or(d EngineStats) EngineStats
Or returns value if set, or given parameter if does not.
func (*OptEngineStats) UnmarshalJSON ¶
func (s *OptEngineStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat64 ¶
OptFloat64 is optional float64.
func NewOptFloat64 ¶
func NewOptFloat64(v float64) OptFloat64
NewOptFloat64 returns new OptFloat64 with value set to v.
func (*OptFloat64) Decode ¶
func (o *OptFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (OptFloat64) Encode ¶
func (o OptFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (OptFloat64) Get ¶
func (o OptFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat64) IsSet ¶
func (o OptFloat64) IsSet() bool
IsSet returns true if OptFloat64 was set.
func (OptFloat64) MarshalJSON ¶
func (s OptFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat64) Or ¶
func (o OptFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*OptFloat64) UnmarshalJSON ¶
func (s *OptFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
func (OptInt64) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt64) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPartSyncStats ¶
type OptPartSyncStats struct {
Value PartSyncStats
Set bool
}
OptPartSyncStats is optional PartSyncStats.
func NewOptPartSyncStats ¶
func NewOptPartSyncStats(v PartSyncStats) OptPartSyncStats
NewOptPartSyncStats returns new OptPartSyncStats with value set to v.
func (*OptPartSyncStats) Decode ¶
func (o *OptPartSyncStats) Decode(d *jx.Decoder) error
Decode decodes PartSyncStats from json.
func (OptPartSyncStats) Encode ¶
func (o OptPartSyncStats) Encode(e *jx.Encoder)
Encode encodes PartSyncStats as json.
func (OptPartSyncStats) Get ¶
func (o OptPartSyncStats) Get() (v PartSyncStats, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPartSyncStats) IsSet ¶
func (o OptPartSyncStats) IsSet() bool
IsSet returns true if OptPartSyncStats was set.
func (OptPartSyncStats) MarshalJSON ¶
func (s OptPartSyncStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPartSyncStats) Or ¶
func (o OptPartSyncStats) Or(d PartSyncStats) PartSyncStats
Or returns value if set, or given parameter if does not.
func (*OptPartSyncStats) SetTo ¶
func (o *OptPartSyncStats) SetTo(v PartSyncStats)
SetTo sets value to v.
func (*OptPartSyncStats) UnmarshalJSON ¶
func (s *OptPartSyncStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSpanID ¶
OptSpanID is optional SpanID.
func NewOptSpanID ¶
NewOptSpanID returns new OptSpanID with value set to v.
func (OptSpanID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptSpanID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptTraceID ¶
OptTraceID is optional TraceID.
func NewOptTraceID ¶
func NewOptTraceID(v TraceID) OptTraceID
NewOptTraceID returns new OptTraceID with value set to v.
func (*OptTraceID) Decode ¶
func (o *OptTraceID) Decode(d *jx.Decoder) error
Decode decodes TraceID from json.
func (OptTraceID) Encode ¶
func (o OptTraceID) Encode(e *jx.Encoder)
Encode encodes TraceID as json.
func (OptTraceID) Get ¶
func (o OptTraceID) Get() (v TraceID, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptTraceID) IsSet ¶
func (o OptTraceID) IsSet() bool
IsSet returns true if OptTraceID was set.
func (OptTraceID) MarshalJSON ¶
func (s OptTraceID) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptTraceID) Or ¶
func (o OptTraceID) Or(d TraceID) TraceID
Or returns value if set, or given parameter if does not.
func (*OptTraceID) UnmarshalJSON ¶
func (s *OptTraceID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
ServerOption
ClientOption
}
Option is config option.
func WithAttributes ¶
WithAttributes specifies default otel attributes.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type PartSyncStats ¶
type PartSyncStats struct {
// Sync attempts including no-ops (the sync-loop liveness probe).
Passes int64 `json:"passes"`
// Passes that installed a newer peer copy.
Mirrored int64 `json:"mirrored"`
// Objects fetched from peers.
Copied int64 `json:"copied"`
// Total size of objects fetched from peers.
CopiedBytes int64 `json:"copied_bytes"`
// Stale local objects deleted after the quarantine delay.
Pruned int64 `json:"pruned"`
// Passes that failed part-way (retried next maintenance tick).
Errors int64 `json:"errors"`
// When the last mirroring pass completed (the replication-staleness probe).
LastSync OptDateTime `json:"last_sync"`
}
Cumulative shared-nothing part-mirroring activity of this node, present only when the cluster runs with a private (per-node) backend. Ref: #/components/schemas/PartSyncStats
func (*PartSyncStats) Decode ¶
func (s *PartSyncStats) Decode(d *jx.Decoder) error
Decode decodes PartSyncStats from json.
func (*PartSyncStats) Encode ¶
func (s *PartSyncStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PartSyncStats) GetCopied ¶
func (s *PartSyncStats) GetCopied() int64
GetCopied returns the value of Copied.
func (*PartSyncStats) GetCopiedBytes ¶
func (s *PartSyncStats) GetCopiedBytes() int64
GetCopiedBytes returns the value of CopiedBytes.
func (*PartSyncStats) GetErrors ¶
func (s *PartSyncStats) GetErrors() int64
GetErrors returns the value of Errors.
func (*PartSyncStats) GetLastSync ¶
func (s *PartSyncStats) GetLastSync() OptDateTime
GetLastSync returns the value of LastSync.
func (*PartSyncStats) GetMirrored ¶
func (s *PartSyncStats) GetMirrored() int64
GetMirrored returns the value of Mirrored.
func (*PartSyncStats) GetPasses ¶
func (s *PartSyncStats) GetPasses() int64
GetPasses returns the value of Passes.
func (*PartSyncStats) GetPruned ¶
func (s *PartSyncStats) GetPruned() int64
GetPruned returns the value of Pruned.
func (*PartSyncStats) MarshalJSON ¶
func (s *PartSyncStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PartSyncStats) SetCopied ¶
func (s *PartSyncStats) SetCopied(val int64)
SetCopied sets the value of Copied.
func (*PartSyncStats) SetCopiedBytes ¶
func (s *PartSyncStats) SetCopiedBytes(val int64)
SetCopiedBytes sets the value of CopiedBytes.
func (*PartSyncStats) SetErrors ¶
func (s *PartSyncStats) SetErrors(val int64)
SetErrors sets the value of Errors.
func (*PartSyncStats) SetLastSync ¶
func (s *PartSyncStats) SetLastSync(val OptDateTime)
SetLastSync sets the value of LastSync.
func (*PartSyncStats) SetMirrored ¶
func (s *PartSyncStats) SetMirrored(val int64)
SetMirrored sets the value of Mirrored.
func (*PartSyncStats) SetPasses ¶
func (s *PartSyncStats) SetPasses(val int64)
SetPasses sets the value of Passes.
func (*PartSyncStats) SetPruned ¶
func (s *PartSyncStats) SetPruned(val int64)
SetPruned sets the value of Pruned.
func (*PartSyncStats) UnmarshalJSON ¶
func (s *PartSyncStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationGroup ¶
OperationGroup returns the x-ogen-operation-group value.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type RunActionParams ¶
type RunActionParams struct {
// Action to run.
Action ActionName
}
RunActionParams is parameters of runAction operation.
type RuntimeStats ¶
type RuntimeStats struct {
Goroutines int64 `json:"goroutines"`
NumCPU int `json:"num_cpu"`
Gomaxprocs int `json:"gomaxprocs"`
// Bytes of allocated heap objects (live heap).
HeapAllocBytes int64 `json:"heap_alloc_bytes"`
HeapInuseBytes int64 `json:"heap_inuse_bytes"`
HeapSysBytes int64 `json:"heap_sys_bytes"`
StackInuseBytes int64 `json:"stack_inuse_bytes"`
// Number of completed GC cycles.
GcCount int64 `json:"gc_count"`
// Target heap size of the next GC cycle.
NextGcBytes int64 `json:"next_gc_bytes"`
// Soft memory limit (GOMEMLIMIT), when set.
MemLimitBytes OptInt64 `json:"mem_limit_bytes"`
}
Ref: #/components/schemas/RuntimeStats
func (*RuntimeStats) Decode ¶
func (s *RuntimeStats) Decode(d *jx.Decoder) error
Decode decodes RuntimeStats from json.
func (*RuntimeStats) Encode ¶
func (s *RuntimeStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*RuntimeStats) GetGcCount ¶
func (s *RuntimeStats) GetGcCount() int64
GetGcCount returns the value of GcCount.
func (*RuntimeStats) GetGomaxprocs ¶
func (s *RuntimeStats) GetGomaxprocs() int
GetGomaxprocs returns the value of Gomaxprocs.
func (*RuntimeStats) GetGoroutines ¶
func (s *RuntimeStats) GetGoroutines() int64
GetGoroutines returns the value of Goroutines.
func (*RuntimeStats) GetHeapAllocBytes ¶
func (s *RuntimeStats) GetHeapAllocBytes() int64
GetHeapAllocBytes returns the value of HeapAllocBytes.
func (*RuntimeStats) GetHeapInuseBytes ¶
func (s *RuntimeStats) GetHeapInuseBytes() int64
GetHeapInuseBytes returns the value of HeapInuseBytes.
func (*RuntimeStats) GetHeapSysBytes ¶
func (s *RuntimeStats) GetHeapSysBytes() int64
GetHeapSysBytes returns the value of HeapSysBytes.
func (*RuntimeStats) GetMemLimitBytes ¶
func (s *RuntimeStats) GetMemLimitBytes() OptInt64
GetMemLimitBytes returns the value of MemLimitBytes.
func (*RuntimeStats) GetNextGcBytes ¶
func (s *RuntimeStats) GetNextGcBytes() int64
GetNextGcBytes returns the value of NextGcBytes.
func (*RuntimeStats) GetNumCPU ¶
func (s *RuntimeStats) GetNumCPU() int
GetNumCPU returns the value of NumCPU.
func (*RuntimeStats) GetStackInuseBytes ¶
func (s *RuntimeStats) GetStackInuseBytes() int64
GetStackInuseBytes returns the value of StackInuseBytes.
func (*RuntimeStats) MarshalJSON ¶
func (s *RuntimeStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RuntimeStats) SetGcCount ¶
func (s *RuntimeStats) SetGcCount(val int64)
SetGcCount sets the value of GcCount.
func (*RuntimeStats) SetGomaxprocs ¶
func (s *RuntimeStats) SetGomaxprocs(val int)
SetGomaxprocs sets the value of Gomaxprocs.
func (*RuntimeStats) SetGoroutines ¶
func (s *RuntimeStats) SetGoroutines(val int64)
SetGoroutines sets the value of Goroutines.
func (*RuntimeStats) SetHeapAllocBytes ¶
func (s *RuntimeStats) SetHeapAllocBytes(val int64)
SetHeapAllocBytes sets the value of HeapAllocBytes.
func (*RuntimeStats) SetHeapInuseBytes ¶
func (s *RuntimeStats) SetHeapInuseBytes(val int64)
SetHeapInuseBytes sets the value of HeapInuseBytes.
func (*RuntimeStats) SetHeapSysBytes ¶
func (s *RuntimeStats) SetHeapSysBytes(val int64)
SetHeapSysBytes sets the value of HeapSysBytes.
func (*RuntimeStats) SetMemLimitBytes ¶
func (s *RuntimeStats) SetMemLimitBytes(val OptInt64)
SetMemLimitBytes sets the value of MemLimitBytes.
func (*RuntimeStats) SetNextGcBytes ¶
func (s *RuntimeStats) SetNextGcBytes(val int64)
SetNextGcBytes sets the value of NextGcBytes.
func (*RuntimeStats) SetNumCPU ¶
func (s *RuntimeStats) SetNumCPU(val int)
SetNumCPU sets the value of NumCPU.
func (*RuntimeStats) SetStackInuseBytes ¶
func (s *RuntimeStats) SetStackInuseBytes(val int64)
SetStackInuseBytes sets the value of StackInuseBytes.
func (*RuntimeStats) UnmarshalJSON ¶
func (s *RuntimeStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type Signal ¶
type Signal string
Telemetry signal. Ref: #/components/schemas/Signal
func (Signal) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (Signal) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Signal) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*Signal) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type SignalEfficiency ¶
type SignalEfficiency struct {
Signal Signal `json:"signal"`
// Distinct series/streams (head and flushed).
Series int64 `json:"series"`
// Flushed part count.
Parts int64 `json:"parts"`
// Total samples (metrics) or records (logs/traces/profiles).
Points int64 `json:"points"`
// Sum of the parts' backend object sizes on this node.
StoredBytes int64 `json:"stored_bytes"`
// Stored bytes per point — the per-sample storage cost.
BytesPerPoint float64 `json:"bytes_per_point"`
// Uncompressed logical size of the stored points; present only for metrics (points x 16), the record
// signals' per-record logical size is not recorded.
LogicalBytes OptInt64 `json:"logical_bytes"`
// Logical/stored ratio (e.g. 8.0 = stored at 1/8th of logical); present only when logical size is
// known.
CompressionRatio OptFloat64 `json:"compression_ratio"`
}
One (tenant, signal)'s flushed-data shape: how many points it stores, in how many bytes, and how well they compress. Stored bytes are this node's on-disk footprint — under erasure coding with slot filtering that is the local shard, not the cluster-wide total. Ref: #/components/schemas/SignalEfficiency
func (*SignalEfficiency) Decode ¶
func (s *SignalEfficiency) Decode(d *jx.Decoder) error
Decode decodes SignalEfficiency from json.
func (*SignalEfficiency) Encode ¶
func (s *SignalEfficiency) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SignalEfficiency) GetBytesPerPoint ¶
func (s *SignalEfficiency) GetBytesPerPoint() float64
GetBytesPerPoint returns the value of BytesPerPoint.
func (*SignalEfficiency) GetCompressionRatio ¶
func (s *SignalEfficiency) GetCompressionRatio() OptFloat64
GetCompressionRatio returns the value of CompressionRatio.
func (*SignalEfficiency) GetLogicalBytes ¶
func (s *SignalEfficiency) GetLogicalBytes() OptInt64
GetLogicalBytes returns the value of LogicalBytes.
func (*SignalEfficiency) GetParts ¶
func (s *SignalEfficiency) GetParts() int64
GetParts returns the value of Parts.
func (*SignalEfficiency) GetPoints ¶
func (s *SignalEfficiency) GetPoints() int64
GetPoints returns the value of Points.
func (*SignalEfficiency) GetSeries ¶
func (s *SignalEfficiency) GetSeries() int64
GetSeries returns the value of Series.
func (*SignalEfficiency) GetSignal ¶
func (s *SignalEfficiency) GetSignal() Signal
GetSignal returns the value of Signal.
func (*SignalEfficiency) GetStoredBytes ¶
func (s *SignalEfficiency) GetStoredBytes() int64
GetStoredBytes returns the value of StoredBytes.
func (*SignalEfficiency) MarshalJSON ¶
func (s *SignalEfficiency) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SignalEfficiency) SetBytesPerPoint ¶
func (s *SignalEfficiency) SetBytesPerPoint(val float64)
SetBytesPerPoint sets the value of BytesPerPoint.
func (*SignalEfficiency) SetCompressionRatio ¶
func (s *SignalEfficiency) SetCompressionRatio(val OptFloat64)
SetCompressionRatio sets the value of CompressionRatio.
func (*SignalEfficiency) SetLogicalBytes ¶
func (s *SignalEfficiency) SetLogicalBytes(val OptInt64)
SetLogicalBytes sets the value of LogicalBytes.
func (*SignalEfficiency) SetParts ¶
func (s *SignalEfficiency) SetParts(val int64)
SetParts sets the value of Parts.
func (*SignalEfficiency) SetPoints ¶
func (s *SignalEfficiency) SetPoints(val int64)
SetPoints sets the value of Points.
func (*SignalEfficiency) SetSeries ¶
func (s *SignalEfficiency) SetSeries(val int64)
SetSeries sets the value of Series.
func (*SignalEfficiency) SetSignal ¶
func (s *SignalEfficiency) SetSignal(val Signal)
SetSignal sets the value of Signal.
func (*SignalEfficiency) SetStoredBytes ¶
func (s *SignalEfficiency) SetStoredBytes(val int64)
SetStoredBytes sets the value of StoredBytes.
func (*SignalEfficiency) UnmarshalJSON ¶
func (s *SignalEfficiency) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SignalEfficiency) Validate ¶
func (s *SignalEfficiency) Validate() error
type SignalInfo ¶
type SignalInfo struct {
Signal Signal `json:"signal"`
// Storage backend serving this signal (clickhouse, storage or none).
Backend string `json:"backend"`
// Whether a query API is wired for this signal.
Queryable bool `json:"queryable"`
// Listen address of the signal's query API, when queryable.
Bind OptString `json:"bind"`
}
Ref: #/components/schemas/SignalInfo
func (*SignalInfo) Decode ¶
func (s *SignalInfo) Decode(d *jx.Decoder) error
Decode decodes SignalInfo from json.
func (*SignalInfo) Encode ¶
func (s *SignalInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SignalInfo) GetBackend ¶
func (s *SignalInfo) GetBackend() string
GetBackend returns the value of Backend.
func (*SignalInfo) GetBind ¶
func (s *SignalInfo) GetBind() OptString
GetBind returns the value of Bind.
func (*SignalInfo) GetQueryable ¶
func (s *SignalInfo) GetQueryable() bool
GetQueryable returns the value of Queryable.
func (*SignalInfo) GetSignal ¶
func (s *SignalInfo) GetSignal() Signal
GetSignal returns the value of Signal.
func (*SignalInfo) MarshalJSON ¶
func (s *SignalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SignalInfo) SetBackend ¶
func (s *SignalInfo) SetBackend(val string)
SetBackend sets the value of Backend.
func (*SignalInfo) SetBind ¶
func (s *SignalInfo) SetBind(val OptString)
SetBind sets the value of Bind.
func (*SignalInfo) SetQueryable ¶
func (s *SignalInfo) SetQueryable(val bool)
SetQueryable sets the value of Queryable.
func (*SignalInfo) SetSignal ¶
func (s *SignalInfo) SetSignal(val Signal)
SetSignal sets the value of Signal.
func (*SignalInfo) UnmarshalJSON ¶
func (s *SignalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SignalInfo) Validate ¶
func (s *SignalInfo) Validate() error
type SpanID ¶
type SpanID string
func (SpanID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SpanID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type StorageStats ¶
type StorageStats struct {
// Whether the embedded oteldb/storage engine is active.
StorageEnabled bool `json:"storage_enabled"`
// Whether the (deprecated) ClickHouse storage is active.
ClickhouseEnabled bool `json:"clickhouse_enabled"`
Engine OptEngineStats `json:"engine"`
Clickhouse OptClickHouseStats `json:"clickhouse"`
}
Storage statistics for the embedded engine (primary) and ClickHouse (deprecated). Ref: #/components/schemas/StorageStats
func (*StorageStats) Decode ¶
func (s *StorageStats) Decode(d *jx.Decoder) error
Decode decodes StorageStats from json.
func (*StorageStats) Encode ¶
func (s *StorageStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*StorageStats) GetClickhouse ¶
func (s *StorageStats) GetClickhouse() OptClickHouseStats
GetClickhouse returns the value of Clickhouse.
func (*StorageStats) GetClickhouseEnabled ¶
func (s *StorageStats) GetClickhouseEnabled() bool
GetClickhouseEnabled returns the value of ClickhouseEnabled.
func (*StorageStats) GetEngine ¶
func (s *StorageStats) GetEngine() OptEngineStats
GetEngine returns the value of Engine.
func (*StorageStats) GetStorageEnabled ¶
func (s *StorageStats) GetStorageEnabled() bool
GetStorageEnabled returns the value of StorageEnabled.
func (*StorageStats) MarshalJSON ¶
func (s *StorageStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*StorageStats) SetClickhouse ¶
func (s *StorageStats) SetClickhouse(val OptClickHouseStats)
SetClickhouse sets the value of Clickhouse.
func (*StorageStats) SetClickhouseEnabled ¶
func (s *StorageStats) SetClickhouseEnabled(val bool)
SetClickhouseEnabled sets the value of ClickhouseEnabled.
func (*StorageStats) SetEngine ¶
func (s *StorageStats) SetEngine(val OptEngineStats)
SetEngine sets the value of Engine.
func (*StorageStats) SetStorageEnabled ¶
func (s *StorageStats) SetStorageEnabled(val bool)
SetStorageEnabled sets the value of StorageEnabled.
func (*StorageStats) UnmarshalJSON ¶
func (s *StorageStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*StorageStats) Validate ¶
func (s *StorageStats) Validate() error
type TableStats ¶
type TableStats struct {
Database string `json:"database"`
Table string `json:"table"`
Rows int64 `json:"rows"`
// Compressed on-disk size.
BytesOnDisk int64 `json:"bytes_on_disk"`
DataUncompressedBytes int64 `json:"data_uncompressed_bytes"`
// Number of active parts.
Parts int64 `json:"parts"`
// Earliest partition time, when available.
MinTime OptDateTime `json:"min_time"`
// Latest partition time, when available.
MaxTime OptDateTime `json:"max_time"`
}
Ref: #/components/schemas/TableStats
func (*TableStats) Decode ¶
func (s *TableStats) Decode(d *jx.Decoder) error
Decode decodes TableStats from json.
func (*TableStats) Encode ¶
func (s *TableStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TableStats) GetBytesOnDisk ¶
func (s *TableStats) GetBytesOnDisk() int64
GetBytesOnDisk returns the value of BytesOnDisk.
func (*TableStats) GetDataUncompressedBytes ¶
func (s *TableStats) GetDataUncompressedBytes() int64
GetDataUncompressedBytes returns the value of DataUncompressedBytes.
func (*TableStats) GetDatabase ¶
func (s *TableStats) GetDatabase() string
GetDatabase returns the value of Database.
func (*TableStats) GetMaxTime ¶
func (s *TableStats) GetMaxTime() OptDateTime
GetMaxTime returns the value of MaxTime.
func (*TableStats) GetMinTime ¶
func (s *TableStats) GetMinTime() OptDateTime
GetMinTime returns the value of MinTime.
func (*TableStats) GetParts ¶
func (s *TableStats) GetParts() int64
GetParts returns the value of Parts.
func (*TableStats) GetRows ¶
func (s *TableStats) GetRows() int64
GetRows returns the value of Rows.
func (*TableStats) GetTable ¶
func (s *TableStats) GetTable() string
GetTable returns the value of Table.
func (*TableStats) MarshalJSON ¶
func (s *TableStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TableStats) SetBytesOnDisk ¶
func (s *TableStats) SetBytesOnDisk(val int64)
SetBytesOnDisk sets the value of BytesOnDisk.
func (*TableStats) SetDataUncompressedBytes ¶
func (s *TableStats) SetDataUncompressedBytes(val int64)
SetDataUncompressedBytes sets the value of DataUncompressedBytes.
func (*TableStats) SetDatabase ¶
func (s *TableStats) SetDatabase(val string)
SetDatabase sets the value of Database.
func (*TableStats) SetMaxTime ¶
func (s *TableStats) SetMaxTime(val OptDateTime)
SetMaxTime sets the value of MaxTime.
func (*TableStats) SetMinTime ¶
func (s *TableStats) SetMinTime(val OptDateTime)
SetMinTime sets the value of MinTime.
func (*TableStats) SetParts ¶
func (s *TableStats) SetParts(val int64)
SetParts sets the value of Parts.
func (*TableStats) SetRows ¶
func (s *TableStats) SetRows(val int64)
SetRows sets the value of Rows.
func (*TableStats) SetTable ¶
func (s *TableStats) SetTable(val string)
SetTable sets the value of Table.
func (*TableStats) UnmarshalJSON ¶
func (s *TableStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TenantEfficiency ¶
type TenantEfficiency struct {
// Tenant identifier.
Tenant string `json:"tenant"`
Signals []SignalEfficiency `json:"signals"`
}
One tenant's per-signal efficiency breakdown. Ref: #/components/schemas/TenantEfficiency
func (*TenantEfficiency) Decode ¶
func (s *TenantEfficiency) Decode(d *jx.Decoder) error
Decode decodes TenantEfficiency from json.
func (*TenantEfficiency) Encode ¶
func (s *TenantEfficiency) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TenantEfficiency) GetSignals ¶
func (s *TenantEfficiency) GetSignals() []SignalEfficiency
GetSignals returns the value of Signals.
func (*TenantEfficiency) GetTenant ¶
func (s *TenantEfficiency) GetTenant() string
GetTenant returns the value of Tenant.
func (*TenantEfficiency) MarshalJSON ¶
func (s *TenantEfficiency) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TenantEfficiency) SetSignals ¶
func (s *TenantEfficiency) SetSignals(val []SignalEfficiency)
SetSignals sets the value of Signals.
func (*TenantEfficiency) SetTenant ¶
func (s *TenantEfficiency) SetTenant(val string)
SetTenant sets the value of Tenant.
func (*TenantEfficiency) UnmarshalJSON ¶
func (s *TenantEfficiency) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*TenantEfficiency) Validate ¶
func (s *TenantEfficiency) Validate() error
type TenantStats ¶
type TenantStats struct {
// Tenant identifier.
Tenant string `json:"tenant"`
// Sum of series across all signals.
TotalSeries int64 `json:"total_series"`
// Sum of flushed parts across all signals.
TotalParts int64 `json:"total_parts"`
Admission AdmissionStats `json:"admission"`
Signals []EngineSignalStats `json:"signals"`
}
Ref: #/components/schemas/TenantStats
func (*TenantStats) Decode ¶
func (s *TenantStats) Decode(d *jx.Decoder) error
Decode decodes TenantStats from json.
func (*TenantStats) Encode ¶
func (s *TenantStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TenantStats) GetAdmission ¶
func (s *TenantStats) GetAdmission() AdmissionStats
GetAdmission returns the value of Admission.
func (*TenantStats) GetSignals ¶
func (s *TenantStats) GetSignals() []EngineSignalStats
GetSignals returns the value of Signals.
func (*TenantStats) GetTenant ¶
func (s *TenantStats) GetTenant() string
GetTenant returns the value of Tenant.
func (*TenantStats) GetTotalParts ¶
func (s *TenantStats) GetTotalParts() int64
GetTotalParts returns the value of TotalParts.
func (*TenantStats) GetTotalSeries ¶
func (s *TenantStats) GetTotalSeries() int64
GetTotalSeries returns the value of TotalSeries.
func (*TenantStats) MarshalJSON ¶
func (s *TenantStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TenantStats) SetAdmission ¶
func (s *TenantStats) SetAdmission(val AdmissionStats)
SetAdmission sets the value of Admission.
func (*TenantStats) SetSignals ¶
func (s *TenantStats) SetSignals(val []EngineSignalStats)
SetSignals sets the value of Signals.
func (*TenantStats) SetTenant ¶
func (s *TenantStats) SetTenant(val string)
SetTenant sets the value of Tenant.
func (*TenantStats) SetTotalParts ¶
func (s *TenantStats) SetTotalParts(val int64)
SetTotalParts sets the value of TotalParts.
func (*TenantStats) SetTotalSeries ¶
func (s *TenantStats) SetTotalSeries(val int64)
SetTotalSeries sets the value of TotalSeries.
func (*TenantStats) UnmarshalJSON ¶
func (s *TenantStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*TenantStats) Validate ¶
func (s *TenantStats) Validate() error
type TraceID ¶
type TraceID string
func (TraceID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TraceID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) GetEfficiency ¶
func (UnimplementedHandler) GetEfficiency(ctx context.Context) (r *EfficiencyStats, _ error)
GetEfficiency implements getEfficiency operation.
Per-tenant, per-signal capacity and efficiency breakdown of the embedded storage engine: series, parts, points, stored bytes, bytes per point and compression ratios. Unlike the other storage endpoints this one performs backend I/O (per-part object sizes) — poll it at dashboard cadence, not per request. Empty when the embedded engine is not active.
GET /api/v1/storage/efficiency
func (UnimplementedHandler) GetHealth ¶
func (UnimplementedHandler) GetHealth(ctx context.Context) (r *HealthReport, _ error)
GetHealth implements getHealth operation.
Health of each wired service (query APIs, collector, storage).
GET /api/v1/health
func (UnimplementedHandler) GetInfo ¶
func (UnimplementedHandler) GetInfo(ctx context.Context) (r *InstanceInfo, _ error)
GetInfo implements getInfo operation.
Build information, uptime and per-signal backend configuration.
GET /api/v1/info
func (UnimplementedHandler) GetRuntime ¶
func (UnimplementedHandler) GetRuntime(ctx context.Context) (r *RuntimeStats, _ error)
GetRuntime implements getRuntime operation.
Live heap, GC and goroutine counters of the running process.
GET /api/v1/runtime
func (UnimplementedHandler) GetStorage ¶
func (UnimplementedHandler) GetStorage(ctx context.Context) (r *StorageStats, _ error)
GetStorage implements getStorage operation.
Per-table statistics (rows, on-disk and uncompressed bytes, parts, min/max timestamp) collected from ClickHouse system tables. Empty when no signal is served from ClickHouse.
GET /api/v1/storage
func (UnimplementedHandler) NewError ¶
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
NewError creates *ErrorStatusCode from error returned by handler.
Used for common default response.
func (UnimplementedHandler) RunAction ¶
func (UnimplementedHandler) RunAction(ctx context.Context, params RunActionParams) (r *ActionResult, _ error)
RunAction implements runAction operation.
Execute a maintenance action against the running process.
POST /api/v1/actions/{action}
Source Files
¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_operations_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go