insights

package
v0.3.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_prodvana_insights_insights_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Class

type Class int32
const (
	Class_UNKNOWN                                        Class = 0
	Class_SUCCESSFUL_DEPLOYMENT_FREQUENCY_DECREASE       Class = 1
	Class_DEPLOYMENT_FAILURE_RATE_INCREASE               Class = 2
	Class_MEDIAN_SUCCESSFUL_DEPLOYMENT_DURATION_INCREASE Class = 3
	Class_MEDIAN_SUCCESSFUL_ROLLBACK_DURATION_INCREASE   Class = 4
)

func (Class) Descriptor

func (Class) Descriptor() protoreflect.EnumDescriptor

func (Class) Enum

func (x Class) Enum() *Class

func (Class) EnumDescriptor deprecated

func (Class) EnumDescriptor() ([]byte, []int)

Deprecated: Use Class.Descriptor instead.

func (Class) Number

func (x Class) Number() protoreflect.EnumNumber

func (Class) String

func (x Class) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Insight.ProtoReflect.Descriptor instead.

func (*Insight) GetApplication

func (x *Insight) GetApplication() *Insight_Subject

func (*Insight) GetClass

func (x *Insight) GetClass() Class

func (*Insight) GetDescription

func (x *Insight) GetDescription() string

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) GetTitle

func (x *Insight) GetTitle() string

func (*Insight) ProtoMessage

func (*Insight) ProtoMessage()

func (*Insight) ProtoReflect

func (x *Insight) ProtoReflect() protoreflect.Message

func (*Insight) Reset

func (x *Insight) Reset()

func (*Insight) String

func (x *Insight) String() string

func (*Insight) Validate

func (m *Insight) Validate() error

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

func (m *Insight) ValidateAll() error

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

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

Cause function returns cause value.

func (Insight_SubjectValidationError) Error

Error satisfies the builtin error interface

func (Insight_SubjectValidationError) ErrorName

func (e Insight_SubjectValidationError) ErrorName() string

ErrorName returns error name.

func (Insight_SubjectValidationError) Field

Field function returns field value.

func (Insight_SubjectValidationError) Key

Key function returns key value.

func (Insight_SubjectValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL