| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.9
- // protoc v6.32.1
- // source: kubemodel/diagnostic.proto
- package kubemodel
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- 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)
- )
- // DiagnosticResult represents the result of a diagnostic run
- // This matches the JSON structure from core/pkg/diagnostics/diagnostics.go
- type DiagnosticResult struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // Unique Identifier for the diagnostic run result
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- // Name of the diagnostic that ran
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- // Description of the diagnostic run, human readable description
- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
- // Category of the diagnostic run, used to group similar diagnostics
- Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
- // Timestamp when the diagnostic run was executed
- Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
- // Error message if the diagnostic run failed (optional)
- Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
- // Additional custom information about the diagnostic run
- // Using string values to match map[string]any from JSON
- Details map[string]string `protobuf:"bytes,7,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *DiagnosticResult) Reset() {
- *x = DiagnosticResult{}
- mi := &file_kubemodel_diagnostic_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *DiagnosticResult) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DiagnosticResult) ProtoMessage() {}
- func (x *DiagnosticResult) ProtoReflect() protoreflect.Message {
- mi := &file_kubemodel_diagnostic_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 DiagnosticResult.ProtoReflect.Descriptor instead.
- func (*DiagnosticResult) Descriptor() ([]byte, []int) {
- return file_kubemodel_diagnostic_proto_rawDescGZIP(), []int{0}
- }
- func (x *DiagnosticResult) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *DiagnosticResult) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *DiagnosticResult) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- func (x *DiagnosticResult) GetCategory() string {
- if x != nil {
- return x.Category
- }
- return ""
- }
- func (x *DiagnosticResult) GetTimestamp() *timestamppb.Timestamp {
- if x != nil {
- return x.Timestamp
- }
- return nil
- }
- func (x *DiagnosticResult) GetError() string {
- if x != nil {
- return x.Error
- }
- return ""
- }
- func (x *DiagnosticResult) GetDetails() map[string]string {
- if x != nil {
- return x.Details
- }
- return nil
- }
- // DiagnosticsRunReport contains the start time and all diagnostic results
- // This matches the JSON structure from core/pkg/diagnostics/diagnostics.go
- type DiagnosticsRunReport struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // Application name that the diagnostics run belongs to
- Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
- // Time when the full diagnostics run started
- StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
- // All results of the diagnostics run
- Results []*DiagnosticResult `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *DiagnosticsRunReport) Reset() {
- *x = DiagnosticsRunReport{}
- mi := &file_kubemodel_diagnostic_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *DiagnosticsRunReport) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DiagnosticsRunReport) ProtoMessage() {}
- func (x *DiagnosticsRunReport) ProtoReflect() protoreflect.Message {
- mi := &file_kubemodel_diagnostic_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 DiagnosticsRunReport.ProtoReflect.Descriptor instead.
- func (*DiagnosticsRunReport) Descriptor() ([]byte, []int) {
- return file_kubemodel_diagnostic_proto_rawDescGZIP(), []int{1}
- }
- func (x *DiagnosticsRunReport) GetApplication() string {
- if x != nil {
- return x.Application
- }
- return ""
- }
- func (x *DiagnosticsRunReport) GetStartTime() *timestamppb.Timestamp {
- if x != nil {
- return x.StartTime
- }
- return nil
- }
- func (x *DiagnosticsRunReport) GetResults() []*DiagnosticResult {
- if x != nil {
- return x.Results
- }
- return nil
- }
- var File_kubemodel_diagnostic_proto protoreflect.FileDescriptor
- const file_kubemodel_diagnostic_proto_rawDesc = "" +
- "\n" +
- "\x1akubemodel/diagnostic.proto\x12\tkubemodel\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x02\n" +
- "\x10DiagnosticResult\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
- "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
- "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1a\n" +
- "\bcategory\x18\x04 \x01(\tR\bcategory\x128\n" +
- "\ttimestamp\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12\x14\n" +
- "\x05error\x18\x06 \x01(\tR\x05error\x12B\n" +
- "\adetails\x18\a \x03(\v2(.kubemodel.DiagnosticResult.DetailsEntryR\adetails\x1a:\n" +
- "\fDetailsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa9\x01\n" +
- "\x14DiagnosticsRunReport\x12 \n" +
- "\vapplication\x18\x01 \x01(\tR\vapplication\x128\n" +
- "\tstartTime\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x125\n" +
- "\aresults\x18\x03 \x03(\v2\x1b.kubemodel.DiagnosticResultR\aresultsB:Z8github.com/opencost/opencost/core/pkg/model/pb/kubemodelb\x06proto3"
- var (
- file_kubemodel_diagnostic_proto_rawDescOnce sync.Once
- file_kubemodel_diagnostic_proto_rawDescData []byte
- )
- func file_kubemodel_diagnostic_proto_rawDescGZIP() []byte {
- file_kubemodel_diagnostic_proto_rawDescOnce.Do(func() {
- file_kubemodel_diagnostic_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kubemodel_diagnostic_proto_rawDesc), len(file_kubemodel_diagnostic_proto_rawDesc)))
- })
- return file_kubemodel_diagnostic_proto_rawDescData
- }
- var file_kubemodel_diagnostic_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_kubemodel_diagnostic_proto_goTypes = []any{
- (*DiagnosticResult)(nil), // 0: kubemodel.DiagnosticResult
- (*DiagnosticsRunReport)(nil), // 1: kubemodel.DiagnosticsRunReport
- nil, // 2: kubemodel.DiagnosticResult.DetailsEntry
- (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
- }
- var file_kubemodel_diagnostic_proto_depIdxs = []int32{
- 3, // 0: kubemodel.DiagnosticResult.timestamp:type_name -> google.protobuf.Timestamp
- 2, // 1: kubemodel.DiagnosticResult.details:type_name -> kubemodel.DiagnosticResult.DetailsEntry
- 3, // 2: kubemodel.DiagnosticsRunReport.startTime:type_name -> google.protobuf.Timestamp
- 0, // 3: kubemodel.DiagnosticsRunReport.results:type_name -> kubemodel.DiagnosticResult
- 4, // [4:4] is the sub-list for method output_type
- 4, // [4:4] is the sub-list for method input_type
- 4, // [4:4] is the sub-list for extension type_name
- 4, // [4:4] is the sub-list for extension extendee
- 0, // [0:4] is the sub-list for field type_name
- }
- func init() { file_kubemodel_diagnostic_proto_init() }
- func file_kubemodel_diagnostic_proto_init() {
- if File_kubemodel_diagnostic_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_kubemodel_diagnostic_proto_rawDesc), len(file_kubemodel_diagnostic_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_kubemodel_diagnostic_proto_goTypes,
- DependencyIndexes: file_kubemodel_diagnostic_proto_depIdxs,
- MessageInfos: file_kubemodel_diagnostic_proto_msgTypes,
- }.Build()
- File_kubemodel_diagnostic_proto = out.File
- file_kubemodel_diagnostic_proto_goTypes = nil
- file_kubemodel_diagnostic_proto_depIdxs = nil
- }
|