bugspb

package
v0.0.0-...-261f787 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BugManagementState

type BugManagementState struct {

	// Whether the association of the rule to the bug has been notified.
	// This is set to true whenever LUCI Analysis comments on a bug for any reason.
	// This is set to false whenever the bug associated with a rule changes.
	RuleAssociationNotified bool `` /* 133-byte string literal not displayed */
	// A mapping from bug management policy identifier to policy state.
	PolicyState map[string]*BugManagementState_PolicyState `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

Automatic bug-management state for a single failure association rule.

func (*BugManagementState) Descriptor deprecated

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

Deprecated: Use BugManagementState.ProtoReflect.Descriptor instead.

func (*BugManagementState) GetPolicyState

func (x *BugManagementState) GetPolicyState() map[string]*BugManagementState_PolicyState

func (*BugManagementState) GetRuleAssociationNotified

func (x *BugManagementState) GetRuleAssociationNotified() bool

func (*BugManagementState) ProtoMessage

func (*BugManagementState) ProtoMessage()

func (*BugManagementState) ProtoReflect

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

func (*BugManagementState) Reset

func (x *BugManagementState) Reset()

func (*BugManagementState) String

func (x *BugManagementState) String() string

type BugManagementState_PolicyState

type BugManagementState_PolicyState struct {

	// Whether the given policy is active for the rule.
	// Updated on every bug-filing run as follows:
	// - Set to true if the policy activation criteria was met.
	// - Set to false if the policy deactivation criteria was met.
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// The last time the policy was made active.
	// Allows detecting if policy is made active for the first time (as a
	// zero last_activation_time indicates the policy was never active).
	// Allows UI to filter to showing policies that were at least once active.
	// Allows UI to sort which policy was most recently active.
	// Allows UI to show when a policy last activated.
	LastActivationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_activation_time,json=lastActivationTime,proto3" json:"last_activation_time,omitempty"`
	// The last time the policy was made inactive.
	// Allows UI to show when a policy last deactivated.
	LastDeactivationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_deactivation_time,json=lastDeactivationTime,proto3" json:"last_deactivation_time,omitempty"`
	// Whether the policy's activation was ever notified to the bug.
	// This is set to true whenever the policy state becomes active and the
	// the activation was notified to the bug.
	// This is set to false whenever the bug associated with a rule changes.
	ActivationNotified bool `protobuf:"varint,4,opt,name=activation_notified,json=activationNotified,proto3" json:"activation_notified,omitempty"`
	// contains filtered or unexported fields
}

func (*BugManagementState_PolicyState) Descriptor deprecated

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

Deprecated: Use BugManagementState_PolicyState.ProtoReflect.Descriptor instead.

func (*BugManagementState_PolicyState) GetActivationNotified

func (x *BugManagementState_PolicyState) GetActivationNotified() bool

func (*BugManagementState_PolicyState) GetIsActive

func (x *BugManagementState_PolicyState) GetIsActive() bool

func (*BugManagementState_PolicyState) GetLastActivationTime

func (x *BugManagementState_PolicyState) GetLastActivationTime() *timestamppb.Timestamp

func (*BugManagementState_PolicyState) GetLastDeactivationTime

func (x *BugManagementState_PolicyState) GetLastDeactivationTime() *timestamppb.Timestamp

func (*BugManagementState_PolicyState) ProtoMessage

func (*BugManagementState_PolicyState) ProtoMessage()

func (*BugManagementState_PolicyState) ProtoReflect

func (*BugManagementState_PolicyState) Reset

func (x *BugManagementState_PolicyState) Reset()

func (*BugManagementState_PolicyState) String

Jump to

Keyboard shortcuts

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