mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
Full module path rebrand from Temporal to Hanzo Tasks: - go.mod module: github.com/hanzoai/tasks - All internal Go imports updated (1906 files) - cmd/server renamed to cmd/tasksd - Binary name: tasksd (was temporal-server) - Docker images: hanzoai/tasks (was temporalio/server) - README rewritten with Hanzo Tasks branding - LLM.md created with integration notes - Makefile, goreleaser, CI workflows updated - go.temporal.io/sdk and go.temporal.io/api imports preserved (separate repos) Fork of Temporal.io (MIT license).
325 lines
11 KiB
Go
325 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/health/v1/message.proto
|
|
|
|
package health
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
v1 "github.com/hanzoai/tasks/api/enums/v1"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// Individual health check result.
|
|
// The check_type field uses human-readable strings rather than an enum for extensibility.
|
|
type HealthCheck struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Machine-readable check type identifier for programmatic matching.
|
|
// Known values defined as Go constants in api/health/v1/types.go:
|
|
//
|
|
// "grpc_health", "rpc_latency", "rpc_error_ratio",
|
|
// "persistence_latency", "persistence_error_ratio",
|
|
// "host_availability", "task_queue_backlog"
|
|
//
|
|
// We use strings instead of an enum for flexibility: new check types can be
|
|
// added without proto changes. See HealthCheck.message for human-readable details.
|
|
CheckType string `protobuf:"bytes,1,opt,name=check_type,json=checkType,proto3" json:"check_type,omitempty"`
|
|
State v1.HealthState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.server.api.enums.v1.HealthState" json:"state,omitempty"`
|
|
// Actual observed value (0 if N/A).
|
|
Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
|
|
// Threshold that was exceeded (0 if N/A).
|
|
Threshold float64 `protobuf:"fixed64,4,opt,name=threshold,proto3" json:"threshold,omitempty"`
|
|
// Human-readable detail describing what happened, e.g.
|
|
// "RPC latency 850.00ms exceeded 500.00ms threshold".
|
|
Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HealthCheck) Reset() {
|
|
*x = HealthCheck{}
|
|
mi := &file_temporal_server_api_health_v1_message_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HealthCheck) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HealthCheck) ProtoMessage() {}
|
|
|
|
func (x *HealthCheck) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_health_v1_message_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.
|
|
func (*HealthCheck) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_health_v1_message_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *HealthCheck) GetCheckType() string {
|
|
if x != nil {
|
|
return x.CheckType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HealthCheck) GetState() v1.HealthState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return v1.HealthState(0)
|
|
}
|
|
|
|
func (x *HealthCheck) GetValue() float64 {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HealthCheck) GetThreshold() float64 {
|
|
if x != nil {
|
|
return x.Threshold
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HealthCheck) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Health details for a single host.
|
|
type HostHealthDetail struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
State v1.HealthState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.server.api.enums.v1.HealthState" json:"state,omitempty"`
|
|
Checks []*HealthCheck `protobuf:"bytes,3,rep,name=checks,proto3" json:"checks,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HostHealthDetail) Reset() {
|
|
*x = HostHealthDetail{}
|
|
mi := &file_temporal_server_api_health_v1_message_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HostHealthDetail) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HostHealthDetail) ProtoMessage() {}
|
|
|
|
func (x *HostHealthDetail) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_health_v1_message_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use HostHealthDetail.ProtoReflect.Descriptor instead.
|
|
func (*HostHealthDetail) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_health_v1_message_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *HostHealthDetail) GetAddress() string {
|
|
if x != nil {
|
|
return x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HostHealthDetail) GetState() v1.HealthState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return v1.HealthState(0)
|
|
}
|
|
|
|
func (x *HostHealthDetail) GetChecks() []*HealthCheck {
|
|
if x != nil {
|
|
return x.Checks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Health details for a service (history, frontend, matching).
|
|
type ServiceHealthDetail struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
State v1.HealthState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.server.api.enums.v1.HealthState" json:"state,omitempty"`
|
|
Hosts []*HostHealthDetail `protobuf:"bytes,3,rep,name=hosts,proto3" json:"hosts,omitempty"`
|
|
// Service-level diagnostic message (e.g. "no available hosts", "resolver error").
|
|
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ServiceHealthDetail) Reset() {
|
|
*x = ServiceHealthDetail{}
|
|
mi := &file_temporal_server_api_health_v1_message_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ServiceHealthDetail) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ServiceHealthDetail) ProtoMessage() {}
|
|
|
|
func (x *ServiceHealthDetail) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_health_v1_message_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ServiceHealthDetail.ProtoReflect.Descriptor instead.
|
|
func (*ServiceHealthDetail) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_health_v1_message_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ServiceHealthDetail) GetService() string {
|
|
if x != nil {
|
|
return x.Service
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServiceHealthDetail) GetState() v1.HealthState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return v1.HealthState(0)
|
|
}
|
|
|
|
func (x *ServiceHealthDetail) GetHosts() []*HostHealthDetail {
|
|
if x != nil {
|
|
return x.Hosts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ServiceHealthDetail) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_temporal_server_api_health_v1_message_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_health_v1_message_proto_rawDesc = "" +
|
|
"\n" +
|
|
"+temporal/server/api/health/v1/message.proto\x12\x1dtemporal.server.api.health.v1\x1a*temporal/server/api/enums/v1/cluster.proto\"\xbb\x01\n" +
|
|
"\vHealthCheck\x12\x1d\n" +
|
|
"\n" +
|
|
"check_type\x18\x01 \x01(\tR\tcheckType\x12?\n" +
|
|
"\x05state\x18\x02 \x01(\x0e2).temporal.server.api.enums.v1.HealthStateR\x05state\x12\x14\n" +
|
|
"\x05value\x18\x03 \x01(\x01R\x05value\x12\x1c\n" +
|
|
"\tthreshold\x18\x04 \x01(\x01R\tthreshold\x12\x18\n" +
|
|
"\amessage\x18\x05 \x01(\tR\amessage\"\xb1\x01\n" +
|
|
"\x10HostHealthDetail\x12\x18\n" +
|
|
"\aaddress\x18\x01 \x01(\tR\aaddress\x12?\n" +
|
|
"\x05state\x18\x02 \x01(\x0e2).temporal.server.api.enums.v1.HealthStateR\x05state\x12B\n" +
|
|
"\x06checks\x18\x03 \x03(\v2*.temporal.server.api.health.v1.HealthCheckR\x06checks\"\xd1\x01\n" +
|
|
"\x13ServiceHealthDetail\x12\x18\n" +
|
|
"\aservice\x18\x01 \x01(\tR\aservice\x12?\n" +
|
|
"\x05state\x18\x02 \x01(\x0e2).temporal.server.api.enums.v1.HealthStateR\x05state\x12E\n" +
|
|
"\x05hosts\x18\x03 \x03(\v2/.temporal.server.api.health.v1.HostHealthDetailR\x05hosts\x12\x18\n" +
|
|
"\amessage\x18\x04 \x01(\tR\amessageB,Z*github.com/hanzoai/tasks/api/health/v1;healthb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_health_v1_message_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_health_v1_message_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_health_v1_message_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_health_v1_message_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_health_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_health_v1_message_proto_rawDesc), len(file_temporal_server_api_health_v1_message_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_health_v1_message_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_health_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_temporal_server_api_health_v1_message_proto_goTypes = []any{
|
|
(*HealthCheck)(nil), // 0: temporal.server.api.health.v1.HealthCheck
|
|
(*HostHealthDetail)(nil), // 1: temporal.server.api.health.v1.HostHealthDetail
|
|
(*ServiceHealthDetail)(nil), // 2: temporal.server.api.health.v1.ServiceHealthDetail
|
|
(v1.HealthState)(0), // 3: temporal.server.api.enums.v1.HealthState
|
|
}
|
|
var file_temporal_server_api_health_v1_message_proto_depIdxs = []int32{
|
|
3, // 0: temporal.server.api.health.v1.HealthCheck.state:type_name -> temporal.server.api.enums.v1.HealthState
|
|
3, // 1: temporal.server.api.health.v1.HostHealthDetail.state:type_name -> temporal.server.api.enums.v1.HealthState
|
|
0, // 2: temporal.server.api.health.v1.HostHealthDetail.checks:type_name -> temporal.server.api.health.v1.HealthCheck
|
|
3, // 3: temporal.server.api.health.v1.ServiceHealthDetail.state:type_name -> temporal.server.api.enums.v1.HealthState
|
|
1, // 4: temporal.server.api.health.v1.ServiceHealthDetail.hosts:type_name -> temporal.server.api.health.v1.HostHealthDetail
|
|
5, // [5:5] is the sub-list for method output_type
|
|
5, // [5:5] is the sub-list for method input_type
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
0, // [0:5] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_api_health_v1_message_proto_init() }
|
|
func file_temporal_server_api_health_v1_message_proto_init() {
|
|
if File_temporal_server_api_health_v1_message_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_api_health_v1_message_proto_rawDesc), len(file_temporal_server_api_health_v1_message_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_health_v1_message_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_health_v1_message_proto_depIdxs,
|
|
MessageInfos: file_temporal_server_api_health_v1_message_proto_msgTypes,
|
|
}.Build()
|
|
File_temporal_server_api_health_v1_message_proto = out.File
|
|
file_temporal_server_api_health_v1_message_proto_goTypes = nil
|
|
file_temporal_server_api_health_v1_message_proto_depIdxs = nil
|
|
}
|