Documentation ¶
Overview ¶
Package com_hailocab_kernel_platform_healthcheck is a generated protocol buffer package.
It is generated from these files:
github.com/hailocab/h2/go/internal/p/proto/healthcheck/healthcheck.proto
It has these top-level messages:
HealthCheck Request Response
Index ¶
- Variables
- type HealthCheck
- func (m *HealthCheck) GetErrorDescription() string
- func (m *HealthCheck) GetHealthCheckId() string
- func (m *HealthCheck) GetHostname() string
- func (m *HealthCheck) GetInstanceId() string
- func (m *HealthCheck) GetIsHealthy() bool
- func (m *HealthCheck) GetMeasurements() []*HealthCheck_KeyValue
- func (m *HealthCheck) GetPriority() HealthCheck_Priority
- func (m *HealthCheck) GetServiceName() string
- func (m *HealthCheck) GetServiceVersion() uint64
- func (m *HealthCheck) GetTimestamp() int64
- func (*HealthCheck) ProtoMessage()
- func (m *HealthCheck) Reset()
- func (m *HealthCheck) String() string
- type HealthCheck_KeyValue
- type HealthCheck_Priority
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var HealthCheck_Priority_name = map[int32]string{
1: "PAGER",
2: "EMAIL",
3: "WARNING",
}
View Source
var HealthCheck_Priority_value = map[string]int32{
"PAGER": 1,
"EMAIL": 2,
"WARNING": 3,
}
Functions ¶
This section is empty.
Types ¶
type HealthCheck ¶
type HealthCheck struct { Timestamp *int64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"` ServiceName *string `protobuf:"bytes,2,req,name=serviceName" json:"serviceName,omitempty"` ServiceVersion *uint64 `protobuf:"varint,3,req,name=serviceVersion" json:"serviceVersion,omitempty"` Hostname *string `protobuf:"bytes,4,req,name=hostname" json:"hostname,omitempty"` InstanceId *string `protobuf:"bytes,5,req,name=instanceId" json:"instanceId,omitempty"` HealthCheckId *string `protobuf:"bytes,6,req,name=healthCheckId" json:"healthCheckId,omitempty"` IsHealthy *bool `protobuf:"varint,7,req,name=isHealthy" json:"isHealthy,omitempty"` ErrorDescription *string `protobuf:"bytes,8,opt,name=errorDescription" json:"errorDescription,omitempty"` Measurements []*HealthCheck_KeyValue `protobuf:"bytes,9,rep,name=measurements" json:"measurements,omitempty"` Priority *HealthCheck_Priority `` /* 137-byte string literal not displayed */ XXX_unrecognized []byte `json:"-"` }
func (*HealthCheck) GetErrorDescription ¶
func (m *HealthCheck) GetErrorDescription() string
func (*HealthCheck) GetHealthCheckId ¶
func (m *HealthCheck) GetHealthCheckId() string
func (*HealthCheck) GetHostname ¶
func (m *HealthCheck) GetHostname() string
func (*HealthCheck) GetInstanceId ¶
func (m *HealthCheck) GetInstanceId() string
func (*HealthCheck) GetIsHealthy ¶
func (m *HealthCheck) GetIsHealthy() bool
func (*HealthCheck) GetMeasurements ¶
func (m *HealthCheck) GetMeasurements() []*HealthCheck_KeyValue
func (*HealthCheck) GetPriority ¶
func (m *HealthCheck) GetPriority() HealthCheck_Priority
func (*HealthCheck) GetServiceName ¶
func (m *HealthCheck) GetServiceName() string
func (*HealthCheck) GetServiceVersion ¶
func (m *HealthCheck) GetServiceVersion() uint64
func (*HealthCheck) GetTimestamp ¶
func (m *HealthCheck) GetTimestamp() int64
func (*HealthCheck) ProtoMessage ¶
func (*HealthCheck) ProtoMessage()
func (*HealthCheck) Reset ¶
func (m *HealthCheck) Reset()
func (*HealthCheck) String ¶
func (m *HealthCheck) String() string
type HealthCheck_KeyValue ¶
type HealthCheck_KeyValue struct { Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*HealthCheck_KeyValue) GetKey ¶
func (m *HealthCheck_KeyValue) GetKey() string
func (*HealthCheck_KeyValue) GetValue ¶
func (m *HealthCheck_KeyValue) GetValue() string
func (*HealthCheck_KeyValue) ProtoMessage ¶
func (*HealthCheck_KeyValue) ProtoMessage()
func (*HealthCheck_KeyValue) Reset ¶
func (m *HealthCheck_KeyValue) Reset()
func (*HealthCheck_KeyValue) String ¶
func (m *HealthCheck_KeyValue) String() string
type HealthCheck_Priority ¶
type HealthCheck_Priority int32
const ( HealthCheck_PAGER HealthCheck_Priority = 1 HealthCheck_EMAIL HealthCheck_Priority = 2 HealthCheck_WARNING HealthCheck_Priority = 3 )
const Default_HealthCheck_Priority HealthCheck_Priority = HealthCheck_WARNING
func (HealthCheck_Priority) Enum ¶
func (x HealthCheck_Priority) Enum() *HealthCheck_Priority
func (HealthCheck_Priority) MarshalJSON ¶
func (x HealthCheck_Priority) MarshalJSON() ([]byte, error)
func (HealthCheck_Priority) String ¶
func (x HealthCheck_Priority) String() string
func (*HealthCheck_Priority) UnmarshalJSON ¶
func (x *HealthCheck_Priority) UnmarshalJSON(data []byte) error
type Request ¶
type Request struct {
XXX_unrecognized []byte `json:"-"`
}
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct { Healthchecks []*HealthCheck `protobuf:"bytes,1,rep,name=healthchecks" json:"healthchecks,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Response) GetHealthchecks ¶
func (m *Response) GetHealthchecks() []*HealthCheck
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.