Documentation
¶
Index ¶
- Variables
- type Build
- func (*Build) Descriptor() ([]byte, []int)deprecated
- func (x *Build) GetBbid() int64
- func (x *Build) GetBoard() string
- func (x *Build) GetBuildTarget() string
- func (x *Build) GetBuildUuid() string
- func (x *Build) GetCreateTime() *timestamppb.Timestamp
- func (x *Build) GetImagePath() string
- func (x *Build) GetMilestone() int64
- func (x *Build) GetReleaseOrchBbid() int64
- func (x *Build) GetRunUuid() string
- func (x *Build) GetVariant() string
- func (x *Build) GetVersion() string
- func (*Build) ProtoMessage()
- func (x *Build) ProtoReflect() protoreflect.Message
- func (x *Build) Reset()
- func (x *Build) String() string
- type DecisionType
- func (DecisionType) Descriptor() protoreflect.EnumDescriptor
- func (x DecisionType) Enum() *DecisionType
- func (DecisionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DecisionType) Number() protoreflect.EnumNumber
- func (x DecisionType) String() string
- func (DecisionType) Type() protoreflect.EnumType
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetBbid() int64
- func (x *Event) GetBoard() string
- func (x *Event) GetBuildTarget() string
- func (x *Event) GetBuildUuid() string
- func (x *Event) GetConfigName() string
- func (x *Event) GetDecision() *SchedulingDecision
- func (x *Event) GetEventTime() *timestamppb.Timestamp
- func (x *Event) GetEventUuid() string
- func (x *Event) GetModel() string
- func (x *Event) GetRunUuid() string
- func (x *Event) GetSuiteName() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Run
- func (*Run) Descriptor() ([]byte, []int)deprecated
- func (x *Run) GetEndTime() *timestamppb.Timestamp
- func (x *Run) GetRunUuid() string
- func (x *Run) GetStartTime() *timestamppb.Timestamp
- func (*Run) ProtoMessage()
- func (x *Run) ProtoReflect() protoreflect.Message
- func (x *Run) Reset()
- func (x *Run) String() string
- type SchedulingDecision
- func (*SchedulingDecision) Descriptor() ([]byte, []int)deprecated
- func (x *SchedulingDecision) GetFailedReason() string
- func (x *SchedulingDecision) GetScheduled() bool
- func (x *SchedulingDecision) GetType() DecisionType
- func (*SchedulingDecision) ProtoMessage()
- func (x *SchedulingDecision) ProtoReflect() protoreflect.Message
- func (x *SchedulingDecision) Reset()
- func (x *SchedulingDecision) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DecisionType_name = map[int32]string{ 0: "UNKNOWN", 1: "SCHEDULED", 3: "BUILD_NOT_FOUND", 4: "NO_PASSING_BUILD", 5: "STALE_BUILD", } DecisionType_value = map[string]int32{ "UNKNOWN": 0, "SCHEDULED": 1, "BUILD_NOT_FOUND": 3, "NO_PASSING_BUILD": 4, "STALE_BUILD": 5, } )
Enum value maps for DecisionType.
View Source
var File_test_platform_kron_builds_proto protoreflect.FileDescriptor
View Source
var File_test_platform_kron_metrics_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { // build_uid is a unique identifier for the build image. BuildUuid string `protobuf:"bytes,1,opt,name=build_uuid,json=buildUuid,proto3" json:"build_uuid,omitempty"` // run_uid represents the unique identifier of the Kron run which // processed this run. RunUuid string `protobuf:"bytes,2,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"` // create_time represents the time that the image row was read and inserted // into the DB, NOT when then image was made by it's respective builder. CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // bbid is the id of the specific build which created the image. Bbid int64 `protobuf:"varint,4,opt,name=bbid,proto3" json:"bbid,omitempty"` // build_image is the name of the build target, I.e, <board>(-variant)-release BuildTarget string `protobuf:"bytes,5,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"` // e.g 101 Milestone int64 `protobuf:"varint,6,opt,name=milestone,proto3" json:"milestone,omitempty"` // e.g. 15111.0.0 Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"` // image_path points towards the GS location of the image zip. in the form // of: gs://<image-bucket>/<build-target>/R<milestone>-<version>/image.zip ImagePath string `protobuf:"bytes,8,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"` Board string `protobuf:"bytes,9,opt,name=board,proto3" json:"board,omitempty"` Variant string `protobuf:"bytes,10,opt,name=variant,proto3" json:"variant,omitempty"` // parent orchestrator build bucket id ReleaseOrchBbid int64 `protobuf:"varint,11,opt,name=release_orch_bbid,json=releaseOrchBbid,proto3" json:"release_orch_bbid,omitempty"` // contains filtered or unexported fields }
func (*Build) Descriptor
deprecated
func (*Build) GetBuildTarget ¶
func (*Build) GetBuildUuid ¶
func (*Build) GetCreateTime ¶
func (x *Build) GetCreateTime() *timestamppb.Timestamp
func (*Build) GetImagePath ¶
func (*Build) GetMilestone ¶
func (*Build) GetReleaseOrchBbid ¶
func (*Build) GetRunUuid ¶
func (*Build) GetVariant ¶
func (*Build) GetVersion ¶
func (*Build) ProtoMessage ¶
func (*Build) ProtoMessage()
func (*Build) ProtoReflect ¶
func (x *Build) ProtoReflect() protoreflect.Message
type DecisionType ¶
type DecisionType int32
const ( // UNKNOWN is the null option for the enum. If this decision is reached then // it should be treated as an error and handled accordingly. DecisionType_UNKNOWN DecisionType = 0 DecisionType_SCHEDULED DecisionType = 1 // BUILD_NOT_FOUND means that the requested image was not fetched from long // term storage. DecisionType_BUILD_NOT_FOUND DecisionType = 3 DecisionType_NO_PASSING_BUILD DecisionType = 4 // STALE_BUILD build means that Kron has determined that the fetched image is // too old for use in testing. DecisionType_STALE_BUILD DecisionType = 5 )
func (DecisionType) Descriptor ¶
func (DecisionType) Descriptor() protoreflect.EnumDescriptor
func (DecisionType) Enum ¶
func (x DecisionType) Enum() *DecisionType
func (DecisionType) EnumDescriptor
deprecated
func (DecisionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DecisionType.Descriptor instead.
func (DecisionType) Number ¶
func (x DecisionType) Number() protoreflect.EnumNumber
func (DecisionType) String ¶
func (x DecisionType) String() string
func (DecisionType) Type ¶
func (DecisionType) Type() protoreflect.EnumType
type Event ¶
type Event struct { // run_uuid is the unique identifier of the Kron run. RunUuid string `protobuf:"bytes,1,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"` // event_uuid is the unique identifier of the event being described. EventUuid string `protobuf:"bytes,2,opt,name=event_uuid,json=eventUuid,proto3" json:"event_uuid,omitempty"` // config_name is the name of the SuiteScheduler name, not the name of the // test suite being ran. ConfigName string `protobuf:"bytes,3,opt,name=config_name,json=configName,proto3" json:"config_name,omitempty"` // suite_name is the name of the test suite being ran SuiteName string `protobuf:"bytes,4,opt,name=suite_name,json=suiteName,proto3" json:"suite_name,omitempty"` // event_time is captured once a choice, to schedule or not, was made. EventTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` Decision *SchedulingDecision `protobuf:"bytes,6,opt,name=decision,proto3" json:"decision,omitempty"` // Attach the coorsponding BBID for this event. Bbid int64 `protobuf:"varint,7,opt,name=bbid,proto3" json:"bbid,omitempty"` // build_uuid is the unique identifier of the build used to kick off this // event. BuildUuid string `protobuf:"bytes,8,opt,name=build_uuid,json=buildUuid,proto3" json:"build_uuid,omitempty"` // board is the name of the board targeted in this event request. This must // always be filled for a successful CTP request. Board string `protobuf:"bytes,9,opt,name=board,proto3" json:"board,omitempty"` // model is the made of the model targeted in this event request. This field // is optional when forming a CTP request. Model string `protobuf:"bytes,10,opt,name=model,proto3" json:"model,omitempty"` // build_target is the form of board(?-)(?<variant>) and is the basis for the // image being fetched from storage. BuildTarget string `protobuf:"bytes,11,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetBuildTarget ¶
func (*Event) GetBuildUuid ¶
func (*Event) GetConfigName ¶
func (*Event) GetDecision ¶
func (x *Event) GetDecision() *SchedulingDecision
func (*Event) GetEventTime ¶
func (x *Event) GetEventTime() *timestamppb.Timestamp
func (*Event) GetEventUuid ¶
func (*Event) GetRunUuid ¶
func (*Event) GetSuiteName ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Run ¶
type Run struct { // run_uuid represents the unique identifier of the Kron run. RunUuid string `protobuf:"bytes,1,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"` // Timestamps used to deduce the runtime of application invocations. StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*Run) Descriptor
deprecated
func (*Run) GetEndTime ¶
func (x *Run) GetEndTime() *timestamppb.Timestamp
func (*Run) GetRunUuid ¶
func (*Run) GetStartTime ¶
func (x *Run) GetStartTime() *timestamppb.Timestamp
func (*Run) ProtoMessage ¶
func (*Run) ProtoMessage()
func (*Run) ProtoReflect ¶
func (x *Run) ProtoReflect() protoreflect.Message
type SchedulingDecision ¶
type SchedulingDecision struct { Type DecisionType `protobuf:"varint,1,opt,name=type,proto3,enum=test_platform.kron.DecisionType" json:"type,omitempty"` // If scheduled this will be false, for all other types this will be false. Scheduled bool `protobuf:"varint,2,opt,name=scheduled,proto3" json:"scheduled,omitempty"` // failed_reason contains a short snippet of why the decsion was made. E.g. // BUILD_NOT_FOUND -> Build R120-X-X was not found in 'ABC'. FailedReason string `protobuf:"bytes,3,opt,name=failed_reason,json=failedReason,proto3" json:"failed_reason,omitempty"` // contains filtered or unexported fields }
func (*SchedulingDecision) Descriptor
deprecated
func (*SchedulingDecision) Descriptor() ([]byte, []int)
Deprecated: Use SchedulingDecision.ProtoReflect.Descriptor instead.
func (*SchedulingDecision) GetFailedReason ¶
func (x *SchedulingDecision) GetFailedReason() string
func (*SchedulingDecision) GetScheduled ¶
func (x *SchedulingDecision) GetScheduled() bool
func (*SchedulingDecision) GetType ¶
func (x *SchedulingDecision) GetType() DecisionType
func (*SchedulingDecision) ProtoMessage ¶
func (*SchedulingDecision) ProtoMessage()
func (*SchedulingDecision) ProtoReflect ¶
func (x *SchedulingDecision) ProtoReflect() protoreflect.Message
func (*SchedulingDecision) Reset ¶
func (x *SchedulingDecision) Reset()
func (*SchedulingDecision) String ¶
func (x *SchedulingDecision) String() string
Click to show internal directories.
Click to hide internal directories.