impact_analysis

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 (
	ImpactCategory_name = map[int32]string{
		0: "UNKNOWN_CATEGORY",
		1: "BACKEND",
		2: "FRONTEND",
		3: "DATA_INTEGRITY",
		4: "SECURITY",
		5: "COST",
		6: "PRODVANA_INTERNAL_ERROR",
	}
	ImpactCategory_value = map[string]int32{
		"UNKNOWN_CATEGORY":        0,
		"BACKEND":                 1,
		"FRONTEND":                2,
		"DATA_INTEGRITY":          3,
		"SECURITY":                4,
		"COST":                    5,
		"PRODVANA_INTERNAL_ERROR": 6,
	}
)

Enum value maps for ImpactCategory.

View Source
var (
	IncidentType_name = map[int32]string{
		0: "UNKNOWN_INCIDENT",
		1: "OUTAGE",
		2: "EXPENSE",
		3: "SECURITY_BREACH",
		4: "USER_ISSUE",
	}
	IncidentType_value = map[string]int32{
		"UNKNOWN_INCIDENT": 0,
		"OUTAGE":           1,
		"EXPENSE":          2,
		"SECURITY_BREACH":  3,
		"USER_ISSUE":       4,
	}
)

Enum value maps for IncidentType.

View Source
var File_prodvana_impact_analysis_impact_analysis_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ImpactAnalysisResult

type ImpactAnalysisResult struct {
	Category            ImpactCategory `protobuf:"varint,1,opt,name=category,proto3,enum=prodvana.impact_analysis.ImpactCategory" json:"category,omitempty"`
	IncidentType        IncidentType   `` /* 141-byte string literal not displayed */
	ImpactScore         float64        `protobuf:"fixed64,3,opt,name=impact_score,json=impactScore,proto3" json:"impact_score,omitempty"`
	ImpactReasoning     string         `protobuf:"bytes,4,opt,name=impact_reasoning,json=impactReasoning,proto3" json:"impact_reasoning,omitempty"`
	LikelihoodScore     float64        `protobuf:"fixed64,5,opt,name=likelihood_score,json=likelihoodScore,proto3" json:"likelihood_score,omitempty"`
	LikelihoodReasoning string         `protobuf:"bytes,6,opt,name=likelihood_reasoning,json=likelihoodReasoning,proto3" json:"likelihood_reasoning,omitempty"`
	OverallScore        float64        `protobuf:"fixed64,7,opt,name=overall_score,json=overallScore,proto3" json:"overall_score,omitempty"`
	// contains filtered or unexported fields
}

func (*ImpactAnalysisResult) Descriptor deprecated

func (*ImpactAnalysisResult) Descriptor() ([]byte, []int)

Deprecated: Use ImpactAnalysisResult.ProtoReflect.Descriptor instead.

func (*ImpactAnalysisResult) GetCategory

func (x *ImpactAnalysisResult) GetCategory() ImpactCategory

func (*ImpactAnalysisResult) GetImpactReasoning

func (x *ImpactAnalysisResult) GetImpactReasoning() string

func (*ImpactAnalysisResult) GetImpactScore

func (x *ImpactAnalysisResult) GetImpactScore() float64

func (*ImpactAnalysisResult) GetIncidentType

func (x *ImpactAnalysisResult) GetIncidentType() IncidentType

func (*ImpactAnalysisResult) GetLikelihoodReasoning

func (x *ImpactAnalysisResult) GetLikelihoodReasoning() string

func (*ImpactAnalysisResult) GetLikelihoodScore

func (x *ImpactAnalysisResult) GetLikelihoodScore() float64

func (*ImpactAnalysisResult) GetOverallScore

func (x *ImpactAnalysisResult) GetOverallScore() float64

func (*ImpactAnalysisResult) ProtoMessage

func (*ImpactAnalysisResult) ProtoMessage()

func (*ImpactAnalysisResult) ProtoReflect

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

func (*ImpactAnalysisResult) Reset

func (x *ImpactAnalysisResult) Reset()

func (*ImpactAnalysisResult) String

func (x *ImpactAnalysisResult) String() string

func (*ImpactAnalysisResult) Validate

func (m *ImpactAnalysisResult) Validate() error

Validate checks the field values on ImpactAnalysisResult 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 (*ImpactAnalysisResult) ValidateAll

func (m *ImpactAnalysisResult) ValidateAll() error

ValidateAll checks the field values on ImpactAnalysisResult 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 ImpactAnalysisResultMultiError, or nil if none found.

type ImpactAnalysisResultMultiError

type ImpactAnalysisResultMultiError []error

ImpactAnalysisResultMultiError is an error wrapping multiple validation errors returned by ImpactAnalysisResult.ValidateAll() if the designated constraints aren't met.

func (ImpactAnalysisResultMultiError) AllErrors

func (m ImpactAnalysisResultMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ImpactAnalysisResultMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ImpactAnalysisResultValidationError

type ImpactAnalysisResultValidationError struct {
	// contains filtered or unexported fields
}

ImpactAnalysisResultValidationError is the validation error returned by ImpactAnalysisResult.Validate if the designated constraints aren't met.

func (ImpactAnalysisResultValidationError) Cause

Cause function returns cause value.

func (ImpactAnalysisResultValidationError) Error

Error satisfies the builtin error interface

func (ImpactAnalysisResultValidationError) ErrorName

ErrorName returns error name.

func (ImpactAnalysisResultValidationError) Field

Field function returns field value.

func (ImpactAnalysisResultValidationError) Key

Key function returns key value.

func (ImpactAnalysisResultValidationError) Reason

Reason function returns reason value.

type ImpactCategory

type ImpactCategory int32
const (
	ImpactCategory_UNKNOWN_CATEGORY ImpactCategory = 0
	ImpactCategory_BACKEND          ImpactCategory = 1
	ImpactCategory_FRONTEND         ImpactCategory = 2
	ImpactCategory_DATA_INTEGRITY   ImpactCategory = 3
	ImpactCategory_SECURITY         ImpactCategory = 4
	ImpactCategory_COST             ImpactCategory = 5
	// Prodvana is having trouble determining the impact of this commit
	ImpactCategory_PRODVANA_INTERNAL_ERROR ImpactCategory = 6
)

func (ImpactCategory) Descriptor

func (ImpactCategory) Enum

func (x ImpactCategory) Enum() *ImpactCategory

func (ImpactCategory) EnumDescriptor deprecated

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

Deprecated: Use ImpactCategory.Descriptor instead.

func (ImpactCategory) Number

func (ImpactCategory) String

func (x ImpactCategory) String() string

func (ImpactCategory) Type

type IncidentType

type IncidentType int32
const (
	IncidentType_UNKNOWN_INCIDENT IncidentType = 0
	IncidentType_OUTAGE           IncidentType = 1
	IncidentType_EXPENSE          IncidentType = 2
	IncidentType_SECURITY_BREACH  IncidentType = 3
	IncidentType_USER_ISSUE       IncidentType = 4
)

func (IncidentType) Descriptor

func (IncidentType) Enum

func (x IncidentType) Enum() *IncidentType

func (IncidentType) EnumDescriptor deprecated

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

Deprecated: Use IncidentType.Descriptor instead.

func (IncidentType) Number

func (IncidentType) String

func (x IncidentType) String() string

func (IncidentType) Type

Jump to

Keyboard shortcuts

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