| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package v3 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 11 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 12 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 13 |
reflect "reflect" |
| 14 |
sync "sync" |
| 15 |
unsafe "unsafe" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
|
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
type OrcaLoadReport struct { |
| 26 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 27 |
CpuUtilization float64 `protobuf:"fixed64,1,opt,name=cpu_utilization,json=cpuUtilization,proto3" json:"cpu_utilization,omitempty"` |
| 28 |
MemUtilization float64 `protobuf:"fixed64,2,opt,name=mem_utilization,json=memUtilization,proto3" json:"mem_utilization,omitempty"` |
| 29 |
|
| 30 |
Rps uint64 `protobuf:"varint,3,opt,name=rps,proto3" json:"rps,omitempty"` |
| 31 |
RequestCost map[string]float64 `protobuf:"bytes,4,rep,name=request_cost,json=requestCost,proto3" json:"request_cost,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| 32 |
Utilization map[string]float64 `protobuf:"bytes,5,rep,name=utilization,proto3" json:"utilization,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| 33 |
RpsFractional float64 `protobuf:"fixed64,6,opt,name=rps_fractional,json=rpsFractional,proto3" json:"rps_fractional,omitempty"` |
| 34 |
Eps float64 `protobuf:"fixed64,7,opt,name=eps,proto3" json:"eps,omitempty"` |
| 35 |
NamedMetrics map[string]float64 `protobuf:"bytes,8,rep,name=named_metrics,json=namedMetrics,proto3" json:"named_metrics,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| 36 |
ApplicationUtilization float64 `protobuf:"fixed64,9,opt,name=application_utilization,json=applicationUtilization,proto3" json:"application_utilization,omitempty"` |
| 37 |
unknownFields protoimpl.UnknownFields |
| 38 |
sizeCache protoimpl.SizeCache |
| 39 |
} |
| 40 |
|
| 41 |
func (x *OrcaLoadReport) Reset() { |
| 42 |
*x = OrcaLoadReport{} |
| 43 |
mi := &file_xds_data_orca_v3_orca_load_report_proto_msgTypes[0] |
| 44 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 45 |
ms.StoreMessageInfo(mi) |
| 46 |
} |
| 47 |
|
| 48 |
func (x *OrcaLoadReport) String() string { |
| 49 |
return protoimpl.X.MessageStringOf(x) |
| 50 |
} |
| 51 |
|
| 52 |
func (*OrcaLoadReport) ProtoMessage() {} |
| 53 |
|
| 54 |
func (x *OrcaLoadReport) ProtoReflect() protoreflect.Message { |
| 55 |
mi := &file_xds_data_orca_v3_orca_load_report_proto_msgTypes[0] |
| 56 |
if x != nil { |
| 57 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 58 |
if ms.LoadMessageInfo() == nil { |
| 59 |
ms.StoreMessageInfo(mi) |
| 60 |
} |
| 61 |
return ms |
| 62 |
} |
| 63 |
return mi.MessageOf(x) |
| 64 |
} |
| 65 |
|
| 66 |
|
| 67 |
func (*OrcaLoadReport) Descriptor() ([]byte, []int) { |
| 68 |
return file_xds_data_orca_v3_orca_load_report_proto_rawDescGZIP(), []int{0} |
| 69 |
} |
| 70 |
|
| 71 |
func (x *OrcaLoadReport) GetCpuUtilization() float64 { |
| 72 |
if x != nil { |
| 73 |
return x.CpuUtilization |
| 74 |
} |
| 75 |
return 0 |
| 76 |
} |
| 77 |
|
| 78 |
func (x *OrcaLoadReport) GetMemUtilization() float64 { |
| 79 |
if x != nil { |
| 80 |
return x.MemUtilization |
| 81 |
} |
| 82 |
return 0 |
| 83 |
} |
| 84 |
|
| 85 |
|
| 86 |
func (x *OrcaLoadReport) GetRps() uint64 { |
| 87 |
if x != nil { |
| 88 |
return x.Rps |
| 89 |
} |
| 90 |
return 0 |
| 91 |
} |
| 92 |
|
| 93 |
func (x *OrcaLoadReport) GetRequestCost() map[string]float64 { |
| 94 |
if x != nil { |
| 95 |
return x.RequestCost |
| 96 |
} |
| 97 |
return nil |
| 98 |
} |
| 99 |
|
| 100 |
func (x *OrcaLoadReport) GetUtilization() map[string]float64 { |
| 101 |
if x != nil { |
| 102 |
return x.Utilization |
| 103 |
} |
| 104 |
return nil |
| 105 |
} |
| 106 |
|
| 107 |
func (x *OrcaLoadReport) GetRpsFractional() float64 { |
| 108 |
if x != nil { |
| 109 |
return x.RpsFractional |
| 110 |
} |
| 111 |
return 0 |
| 112 |
} |
| 113 |
|
| 114 |
func (x *OrcaLoadReport) GetEps() float64 { |
| 115 |
if x != nil { |
| 116 |
return x.Eps |
| 117 |
} |
| 118 |
return 0 |
| 119 |
} |
| 120 |
|
| 121 |
func (x *OrcaLoadReport) GetNamedMetrics() map[string]float64 { |
| 122 |
if x != nil { |
| 123 |
return x.NamedMetrics |
| 124 |
} |
| 125 |
return nil |
| 126 |
} |
| 127 |
|
| 128 |
func (x *OrcaLoadReport) GetApplicationUtilization() float64 { |
| 129 |
if x != nil { |
| 130 |
return x.ApplicationUtilization |
| 131 |
} |
| 132 |
return 0 |
| 133 |
} |
| 134 |
|
| 135 |
var File_xds_data_orca_v3_orca_load_report_proto protoreflect.FileDescriptor |
| 136 |
|
| 137 |
const file_xds_data_orca_v3_orca_load_report_proto_rawDesc = "" + |
| 138 |
"\n" + |
| 139 |
"'xds/data/orca/v3/orca_load_report.proto\x12\x10xds.data.orca.v3\x1a\x17validate/validate.proto\"\xa6\x06\n" + |
| 140 |
"\x0eOrcaLoadReport\x127\n" + |
| 141 |
"\x0fcpu_utilization\x18\x01 \x01(\x01B\x0e\xfaB\v\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x0ecpuUtilization\x12@\n" + |
| 142 |
"\x0fmem_utilization\x18\x02 \x01(\x01B\x17\xfaB\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\xf0?)\x00\x00\x00\x00\x00\x00\x00\x00R\x0ememUtilization\x12\x14\n" + |
| 143 |
"\x03rps\x18\x03 \x01(\x04B\x02\x18\x01R\x03rps\x12T\n" + |
| 144 |
"\frequest_cost\x18\x04 \x03(\v21.xds.data.orca.v3.OrcaLoadReport.RequestCostEntryR\vrequestCost\x12q\n" + |
| 145 |
"\vutilization\x18\x05 \x03(\v21.xds.data.orca.v3.OrcaLoadReport.UtilizationEntryB\x1c\xfaB\x19\x9a\x01\x16*\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\xf0?)\x00\x00\x00\x00\x00\x00\x00\x00R\vutilization\x125\n" + |
| 146 |
"\x0erps_fractional\x18\x06 \x01(\x01B\x0e\xfaB\v\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\rrpsFractional\x12 \n" + |
| 147 |
"\x03eps\x18\a \x01(\x01B\x0e\xfaB\v\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x03eps\x12W\n" + |
| 148 |
"\rnamed_metrics\x18\b \x03(\v22.xds.data.orca.v3.OrcaLoadReport.NamedMetricsEntryR\fnamedMetrics\x12G\n" + |
| 149 |
"\x17application_utilization\x18\t \x01(\x01B\x0e\xfaB\v\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x16applicationUtilization\x1a>\n" + |
| 150 |
"\x10RequestCostEntry\x12\x10\n" + |
| 151 |
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
| 152 |
"\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01\x1a>\n" + |
| 153 |
"\x10UtilizationEntry\x12\x10\n" + |
| 154 |
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
| 155 |
"\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01\x1a?\n" + |
| 156 |
"\x11NamedMetricsEntry\x12\x10\n" + |
| 157 |
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
| 158 |
"\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01B]\n" + |
| 159 |
"\x1bcom.github.xds.data.orca.v3B\x13OrcaLoadReportProtoP\x01Z'github.com/cncf/xds/go/xds/data/orca/v3b\x06proto3" |
| 160 |
|
| 161 |
var ( |
| 162 |
file_xds_data_orca_v3_orca_load_report_proto_rawDescOnce sync.Once |
| 163 |
file_xds_data_orca_v3_orca_load_report_proto_rawDescData []byte |
| 164 |
) |
| 165 |
|
| 166 |
func file_xds_data_orca_v3_orca_load_report_proto_rawDescGZIP() []byte { |
| 167 |
file_xds_data_orca_v3_orca_load_report_proto_rawDescOnce.Do(func() { |
| 168 |
file_xds_data_orca_v3_orca_load_report_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_data_orca_v3_orca_load_report_proto_rawDesc), len(file_xds_data_orca_v3_orca_load_report_proto_rawDesc))) |
| 169 |
}) |
| 170 |
return file_xds_data_orca_v3_orca_load_report_proto_rawDescData |
| 171 |
} |
| 172 |
|
| 173 |
var file_xds_data_orca_v3_orca_load_report_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 174 |
var file_xds_data_orca_v3_orca_load_report_proto_goTypes = []any{ |
| 175 |
(*OrcaLoadReport)(nil), |
| 176 |
nil, |
| 177 |
nil, |
| 178 |
nil, |
| 179 |
} |
| 180 |
var file_xds_data_orca_v3_orca_load_report_proto_depIdxs = []int32{ |
| 181 |
1, |
| 182 |
2, |
| 183 |
3, |
| 184 |
3, |
| 185 |
3, |
| 186 |
3, |
| 187 |
3, |
| 188 |
0, |
| 189 |
} |
| 190 |
|
| 191 |
func init() { file_xds_data_orca_v3_orca_load_report_proto_init() } |
| 192 |
func file_xds_data_orca_v3_orca_load_report_proto_init() { |
| 193 |
if File_xds_data_orca_v3_orca_load_report_proto != nil { |
| 194 |
return |
| 195 |
} |
| 196 |
type x struct{} |
| 197 |
out := protoimpl.TypeBuilder{ |
| 198 |
File: protoimpl.DescBuilder{ |
| 199 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 200 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_data_orca_v3_orca_load_report_proto_rawDesc), len(file_xds_data_orca_v3_orca_load_report_proto_rawDesc)), |
| 201 |
NumEnums: 0, |
| 202 |
NumMessages: 4, |
| 203 |
NumExtensions: 0, |
| 204 |
NumServices: 0, |
| 205 |
}, |
| 206 |
GoTypes: file_xds_data_orca_v3_orca_load_report_proto_goTypes, |
| 207 |
DependencyIndexes: file_xds_data_orca_v3_orca_load_report_proto_depIdxs, |
| 208 |
MessageInfos: file_xds_data_orca_v3_orca_load_report_proto_msgTypes, |
| 209 |
}.Build() |
| 210 |
File_xds_data_orca_v3_orca_load_report_proto = out.File |
| 211 |
file_xds_data_orca_v3_orca_load_report_proto_goTypes = nil |
| 212 |
file_xds_data_orca_v3_orca_load_report_proto_depIdxs = nil |
| 213 |
} |