Documentation ¶
Index ¶
- Variables
- type Class
- type Insight
- func (*Insight) Descriptor() ([]byte, []int)deprecated
- func (x *Insight) GetApplication() *Insight_Subject
- func (x *Insight) GetClass() Class
- func (x *Insight) GetDescription() string
- func (x *Insight) GetOrganization() *Insight_Subject
- func (x *Insight) GetService() *Insight_Subject
- func (m *Insight) GetSubjectOneof() isInsight_SubjectOneof
- func (x *Insight) GetTitle() string
- func (*Insight) ProtoMessage()
- func (x *Insight) ProtoReflect() protoreflect.Message
- func (x *Insight) Reset()
- func (x *Insight) String() string
- func (m *Insight) Validate() error
- func (m *Insight) ValidateAll() error
- type InsightMultiError
- type InsightValidationError
- type Insight_Application
- type Insight_Organization
- type Insight_Service
- type Insight_Subject
- func (*Insight_Subject) Descriptor() ([]byte, []int)deprecated
- func (x *Insight_Subject) GetId() string
- func (x *Insight_Subject) GetName() string
- func (*Insight_Subject) ProtoMessage()
- func (x *Insight_Subject) ProtoReflect() protoreflect.Message
- func (x *Insight_Subject) Reset()
- func (x *Insight_Subject) String() string
- func (m *Insight_Subject) Validate() error
- func (m *Insight_Subject) ValidateAll() error
- type Insight_SubjectMultiError
- type Insight_SubjectValidationError
- func (e Insight_SubjectValidationError) Cause() error
- func (e Insight_SubjectValidationError) Error() string
- func (e Insight_SubjectValidationError) ErrorName() string
- func (e Insight_SubjectValidationError) Field() string
- func (e Insight_SubjectValidationError) Key() bool
- func (e Insight_SubjectValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( Class_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESSFUL_DEPLOYMENT_FREQUENCY_DECREASE", 2: "DEPLOYMENT_FAILURE_RATE_INCREASE", 3: "MEDIAN_SUCCESSFUL_DEPLOYMENT_DURATION_INCREASE", 4: "MEDIAN_SUCCESSFUL_ROLLBACK_DURATION_INCREASE", } Class_value = map[string]int32{ "UNKNOWN": 0, "SUCCESSFUL_DEPLOYMENT_FREQUENCY_DECREASE": 1, "DEPLOYMENT_FAILURE_RATE_INCREASE": 2, "MEDIAN_SUCCESSFUL_DEPLOYMENT_DURATION_INCREASE": 3, "MEDIAN_SUCCESSFUL_ROLLBACK_DURATION_INCREASE": 4, } )
Enum value maps for Class.
var File_prodvana_insights_insights_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class int32
func (Class) Descriptor ¶
func (Class) Descriptor() protoreflect.EnumDescriptor
func (Class) EnumDescriptor
deprecated
func (Class) Number ¶
func (x Class) Number() protoreflect.EnumNumber
func (Class) Type ¶
func (Class) Type() protoreflect.EnumType
type Insight ¶
type Insight struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Class Class `protobuf:"varint,6,opt,name=class,proto3,enum=prodvana.insights.Class" json:"class,omitempty"` // Types that are assignable to SubjectOneof: // // *Insight_Service // *Insight_Application // *Insight_Organization SubjectOneof isInsight_SubjectOneof `protobuf_oneof:"subject_oneof"` // contains filtered or unexported fields }
func (*Insight) Descriptor
deprecated
func (*Insight) GetApplication ¶
func (x *Insight) GetApplication() *Insight_Subject
func (*Insight) GetDescription ¶
func (*Insight) GetOrganization ¶
func (x *Insight) GetOrganization() *Insight_Subject
func (*Insight) GetService ¶
func (x *Insight) GetService() *Insight_Subject
func (*Insight) GetSubjectOneof ¶
func (m *Insight) GetSubjectOneof() isInsight_SubjectOneof
func (*Insight) ProtoMessage ¶
func (*Insight) ProtoMessage()
func (*Insight) ProtoReflect ¶
func (x *Insight) ProtoReflect() protoreflect.Message
func (*Insight) Validate ¶
Validate checks the field values on Insight with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Insight) ValidateAll ¶
ValidateAll checks the field values on Insight with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InsightMultiError, or nil if none found.
type InsightMultiError ¶
type InsightMultiError []error
InsightMultiError is an error wrapping multiple validation errors returned by Insight.ValidateAll() if the designated constraints aren't met.
func (InsightMultiError) AllErrors ¶
func (m InsightMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InsightMultiError) Error ¶
func (m InsightMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InsightValidationError ¶
type InsightValidationError struct {
// contains filtered or unexported fields
}
InsightValidationError is the validation error returned by Insight.Validate if the designated constraints aren't met.
func (InsightValidationError) Cause ¶
func (e InsightValidationError) Cause() error
Cause function returns cause value.
func (InsightValidationError) Error ¶
func (e InsightValidationError) Error() string
Error satisfies the builtin error interface
func (InsightValidationError) ErrorName ¶
func (e InsightValidationError) ErrorName() string
ErrorName returns error name.
func (InsightValidationError) Field ¶
func (e InsightValidationError) Field() string
Field function returns field value.
func (InsightValidationError) Key ¶
func (e InsightValidationError) Key() bool
Key function returns key value.
func (InsightValidationError) Reason ¶
func (e InsightValidationError) Reason() string
Reason function returns reason value.
type Insight_Application ¶
type Insight_Application struct {
Application *Insight_Subject `protobuf:"bytes,4,opt,name=application,proto3,oneof"`
}
type Insight_Organization ¶
type Insight_Organization struct {
Organization *Insight_Subject `protobuf:"bytes,5,opt,name=organization,proto3,oneof"`
}
type Insight_Service ¶
type Insight_Service struct {
Service *Insight_Subject `protobuf:"bytes,3,opt,name=service,proto3,oneof"`
}
type Insight_Subject ¶
type Insight_Subject struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Insight_Subject) Descriptor
deprecated
func (*Insight_Subject) Descriptor() ([]byte, []int)
Deprecated: Use Insight_Subject.ProtoReflect.Descriptor instead.
func (*Insight_Subject) GetId ¶
func (x *Insight_Subject) GetId() string
func (*Insight_Subject) GetName ¶
func (x *Insight_Subject) GetName() string
func (*Insight_Subject) ProtoMessage ¶
func (*Insight_Subject) ProtoMessage()
func (*Insight_Subject) ProtoReflect ¶
func (x *Insight_Subject) ProtoReflect() protoreflect.Message
func (*Insight_Subject) Reset ¶
func (x *Insight_Subject) Reset()
func (*Insight_Subject) String ¶
func (x *Insight_Subject) String() string
func (*Insight_Subject) Validate ¶
func (m *Insight_Subject) Validate() error
Validate checks the field values on Insight_Subject with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Insight_Subject) ValidateAll ¶
func (m *Insight_Subject) ValidateAll() error
ValidateAll checks the field values on Insight_Subject with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Insight_SubjectMultiError, or nil if none found.
type Insight_SubjectMultiError ¶
type Insight_SubjectMultiError []error
Insight_SubjectMultiError is an error wrapping multiple validation errors returned by Insight_Subject.ValidateAll() if the designated constraints aren't met.
func (Insight_SubjectMultiError) AllErrors ¶
func (m Insight_SubjectMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Insight_SubjectMultiError) Error ¶
func (m Insight_SubjectMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Insight_SubjectValidationError ¶
type Insight_SubjectValidationError struct {
// contains filtered or unexported fields
}
Insight_SubjectValidationError is the validation error returned by Insight_Subject.Validate if the designated constraints aren't met.
func (Insight_SubjectValidationError) Cause ¶
func (e Insight_SubjectValidationError) Cause() error
Cause function returns cause value.
func (Insight_SubjectValidationError) Error ¶
func (e Insight_SubjectValidationError) Error() string
Error satisfies the builtin error interface
func (Insight_SubjectValidationError) ErrorName ¶
func (e Insight_SubjectValidationError) ErrorName() string
ErrorName returns error name.
func (Insight_SubjectValidationError) Field ¶
func (e Insight_SubjectValidationError) Field() string
Field function returns field value.
func (Insight_SubjectValidationError) Key ¶
func (e Insight_SubjectValidationError) Key() bool
Key function returns key value.
func (Insight_SubjectValidationError) Reason ¶
func (e Insight_SubjectValidationError) Reason() string
Reason function returns reason value.