One gRPC service per domain in state.v1 (tasks, executions, accounts, identities, packages, captures, bindings, access, orgs, alerts and so on), each with its own server type in staterpc. RPC and message names and numbers are unchanged.
711 lines
21 KiB
Go
711 lines
21 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: state/v1/stats.proto
|
|
|
|
package statev1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// WorkflowStat mirrors storecontract.WorkflowStat.
|
|
type WorkflowStat struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Workflow string `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"`
|
|
Runs int64 `protobuf:"varint,2,opt,name=runs,proto3" json:"runs,omitempty"`
|
|
Merged int64 `protobuf:"varint,3,opt,name=merged,proto3" json:"merged,omitempty"`
|
|
PrOpen int64 `protobuf:"varint,4,opt,name=pr_open,json=prOpen,proto3" json:"pr_open,omitempty"`
|
|
Parked int64 `protobuf:"varint,5,opt,name=parked,proto3" json:"parked,omitempty"`
|
|
AvgTokens int64 `protobuf:"varint,6,opt,name=avg_tokens,json=avgTokens,proto3" json:"avg_tokens,omitempty"`
|
|
AvgSteps float64 `protobuf:"fixed64,7,opt,name=avg_steps,json=avgSteps,proto3" json:"avg_steps,omitempty"`
|
|
TotalTokens int64 `protobuf:"varint,8,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
|
|
Completed int64 `protobuf:"varint,9,opt,name=completed,proto3" json:"completed,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WorkflowStat) Reset() {
|
|
*x = WorkflowStat{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WorkflowStat) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WorkflowStat) ProtoMessage() {}
|
|
|
|
func (x *WorkflowStat) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WorkflowStat.ProtoReflect.Descriptor instead.
|
|
func (*WorkflowStat) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *WorkflowStat) GetWorkflow() string {
|
|
if x != nil {
|
|
return x.Workflow
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WorkflowStat) GetRuns() int64 {
|
|
if x != nil {
|
|
return x.Runs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WorkflowStat) GetMerged() int64 {
|
|
if x != nil {
|
|
return x.Merged
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WorkflowStat) GetPrOpen() int64 {
|
|
if x != nil {
|
|
return x.PrOpen
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WorkflowStat) GetParked() int64 {
|
|
if x != nil {
|
|
return x.Parked
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WorkflowStat) GetAvgTokens() int64 {
|
|
if x != nil {
|
|
return x.AvgTokens
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WorkflowStat) GetAvgSteps() float64 {
|
|
if x != nil {
|
|
return x.AvgSteps
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WorkflowStat) GetTotalTokens() int64 {
|
|
if x != nil {
|
|
return x.TotalTokens
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WorkflowStat) GetCompleted() int64 {
|
|
if x != nil {
|
|
return x.Completed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// StageStat mirrors storecontract.StageStat.
|
|
type StageStat struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Workflow string `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"`
|
|
Stage string `protobuf:"bytes,2,opt,name=stage,proto3" json:"stage,omitempty"`
|
|
Runs int64 `protobuf:"varint,3,opt,name=runs,proto3" json:"runs,omitempty"`
|
|
AvgMs int64 `protobuf:"varint,4,opt,name=avg_ms,json=avgMs,proto3" json:"avg_ms,omitempty"`
|
|
Errors int64 `protobuf:"varint,5,opt,name=errors,proto3" json:"errors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StageStat) Reset() {
|
|
*x = StageStat{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StageStat) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StageStat) ProtoMessage() {}
|
|
|
|
func (x *StageStat) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StageStat.ProtoReflect.Descriptor instead.
|
|
func (*StageStat) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *StageStat) GetWorkflow() string {
|
|
if x != nil {
|
|
return x.Workflow
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StageStat) GetStage() string {
|
|
if x != nil {
|
|
return x.Stage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StageStat) GetRuns() int64 {
|
|
if x != nil {
|
|
return x.Runs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StageStat) GetAvgMs() int64 {
|
|
if x != nil {
|
|
return x.AvgMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StageStat) GetErrors() int64 {
|
|
if x != nil {
|
|
return x.Errors
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// DayTokens mirrors storecontract.DayTokens.
|
|
type DayTokens struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Day string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"`
|
|
Tokens int64 `protobuf:"varint,2,opt,name=tokens,proto3" json:"tokens,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DayTokens) Reset() {
|
|
*x = DayTokens{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DayTokens) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DayTokens) ProtoMessage() {}
|
|
|
|
func (x *DayTokens) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DayTokens.ProtoReflect.Descriptor instead.
|
|
func (*DayTokens) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DayTokens) GetDay() string {
|
|
if x != nil {
|
|
return x.Day
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DayTokens) GetTokens() int64 {
|
|
if x != nil {
|
|
return x.Tokens
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type StatusCountsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatusCountsRequest) Reset() {
|
|
*x = StatusCountsRequest{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatusCountsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusCountsRequest) ProtoMessage() {}
|
|
|
|
func (x *StatusCountsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StatusCountsRequest.ProtoReflect.Descriptor instead.
|
|
func (*StatusCountsRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type StatusCountsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Counts map[string]int64 `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatusCountsResponse) Reset() {
|
|
*x = StatusCountsResponse{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatusCountsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusCountsResponse) ProtoMessage() {}
|
|
|
|
func (x *StatusCountsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StatusCountsResponse.ProtoReflect.Descriptor instead.
|
|
func (*StatusCountsResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *StatusCountsResponse) GetCounts() map[string]int64 {
|
|
if x != nil {
|
|
return x.Counts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WorkflowStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WorkflowStatsRequest) Reset() {
|
|
*x = WorkflowStatsRequest{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WorkflowStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WorkflowStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *WorkflowStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WorkflowStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*WorkflowStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type WorkflowStatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Stats []*WorkflowStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WorkflowStatsResponse) Reset() {
|
|
*x = WorkflowStatsResponse{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WorkflowStatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WorkflowStatsResponse) ProtoMessage() {}
|
|
|
|
func (x *WorkflowStatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WorkflowStatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*WorkflowStatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *WorkflowStatsResponse) GetStats() []*WorkflowStat {
|
|
if x != nil {
|
|
return x.Stats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type StageStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StageStatsRequest) Reset() {
|
|
*x = StageStatsRequest{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StageStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StageStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *StageStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StageStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*StageStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type StageStatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Stats []*StageStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StageStatsResponse) Reset() {
|
|
*x = StageStatsResponse{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StageStatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StageStatsResponse) ProtoMessage() {}
|
|
|
|
func (x *StageStatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StageStatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*StageStatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *StageStatsResponse) GetStats() []*StageStat {
|
|
if x != nil {
|
|
return x.Stats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TokensByDayRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Days int64 `protobuf:"varint,1,opt,name=days,proto3" json:"days,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TokensByDayRequest) Reset() {
|
|
*x = TokensByDayRequest{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TokensByDayRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TokensByDayRequest) ProtoMessage() {}
|
|
|
|
func (x *TokensByDayRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TokensByDayRequest.ProtoReflect.Descriptor instead.
|
|
func (*TokensByDayRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *TokensByDayRequest) GetDays() int64 {
|
|
if x != nil {
|
|
return x.Days
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TokensByDayResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Tokens []*DayTokens `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TokensByDayResponse) Reset() {
|
|
*x = TokensByDayResponse{}
|
|
mi := &file_state_v1_stats_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TokensByDayResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TokensByDayResponse) ProtoMessage() {}
|
|
|
|
func (x *TokensByDayResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_stats_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TokensByDayResponse.ProtoReflect.Descriptor instead.
|
|
func (*TokensByDayResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_stats_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *TokensByDayResponse) GetTokens() []*DayTokens {
|
|
if x != nil {
|
|
return x.Tokens
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_state_v1_stats_proto protoreflect.FileDescriptor
|
|
|
|
const file_state_v1_stats_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x14state/v1/stats.proto\x12\bstate.v1\"\x84\x02\n" +
|
|
"\fWorkflowStat\x12\x1a\n" +
|
|
"\bworkflow\x18\x01 \x01(\tR\bworkflow\x12\x12\n" +
|
|
"\x04runs\x18\x02 \x01(\x03R\x04runs\x12\x16\n" +
|
|
"\x06merged\x18\x03 \x01(\x03R\x06merged\x12\x17\n" +
|
|
"\apr_open\x18\x04 \x01(\x03R\x06prOpen\x12\x16\n" +
|
|
"\x06parked\x18\x05 \x01(\x03R\x06parked\x12\x1d\n" +
|
|
"\n" +
|
|
"avg_tokens\x18\x06 \x01(\x03R\tavgTokens\x12\x1b\n" +
|
|
"\tavg_steps\x18\a \x01(\x01R\bavgSteps\x12!\n" +
|
|
"\ftotal_tokens\x18\b \x01(\x03R\vtotalTokens\x12\x1c\n" +
|
|
"\tcompleted\x18\t \x01(\x03R\tcompleted\"\x80\x01\n" +
|
|
"\tStageStat\x12\x1a\n" +
|
|
"\bworkflow\x18\x01 \x01(\tR\bworkflow\x12\x14\n" +
|
|
"\x05stage\x18\x02 \x01(\tR\x05stage\x12\x12\n" +
|
|
"\x04runs\x18\x03 \x01(\x03R\x04runs\x12\x15\n" +
|
|
"\x06avg_ms\x18\x04 \x01(\x03R\x05avgMs\x12\x16\n" +
|
|
"\x06errors\x18\x05 \x01(\x03R\x06errors\"5\n" +
|
|
"\tDayTokens\x12\x10\n" +
|
|
"\x03day\x18\x01 \x01(\tR\x03day\x12\x16\n" +
|
|
"\x06tokens\x18\x02 \x01(\x03R\x06tokens\"\x15\n" +
|
|
"\x13StatusCountsRequest\"\x95\x01\n" +
|
|
"\x14StatusCountsResponse\x12B\n" +
|
|
"\x06counts\x18\x01 \x03(\v2*.state.v1.StatusCountsResponse.CountsEntryR\x06counts\x1a9\n" +
|
|
"\vCountsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\"\x16\n" +
|
|
"\x14WorkflowStatsRequest\"E\n" +
|
|
"\x15WorkflowStatsResponse\x12,\n" +
|
|
"\x05stats\x18\x01 \x03(\v2\x16.state.v1.WorkflowStatR\x05stats\"\x13\n" +
|
|
"\x11StageStatsRequest\"?\n" +
|
|
"\x12StageStatsResponse\x12)\n" +
|
|
"\x05stats\x18\x01 \x03(\v2\x13.state.v1.StageStatR\x05stats\"(\n" +
|
|
"\x12TokensByDayRequest\x12\x12\n" +
|
|
"\x04days\x18\x01 \x01(\x03R\x04days\"B\n" +
|
|
"\x13TokensByDayResponse\x12+\n" +
|
|
"\x06tokens\x18\x01 \x03(\v2\x13.state.v1.DayTokensR\x06tokens2\xc4\x02\n" +
|
|
"\fStatsService\x12M\n" +
|
|
"\fStatusCounts\x12\x1d.state.v1.StatusCountsRequest\x1a\x1e.state.v1.StatusCountsResponse\x12P\n" +
|
|
"\rWorkflowStats\x12\x1e.state.v1.WorkflowStatsRequest\x1a\x1f.state.v1.WorkflowStatsResponse\x12G\n" +
|
|
"\n" +
|
|
"StageStats\x12\x1b.state.v1.StageStatsRequest\x1a\x1c.state.v1.StageStatsResponse\x12J\n" +
|
|
"\vTokensByDay\x12\x1c.state.v1.TokensByDayRequest\x1a\x1d.state.v1.TokensByDayResponseB\xa4\x01\n" +
|
|
"\fcom.state.v1B\n" +
|
|
"StatsProtoP\x01ZGgithub.com/samcharles93/archie-core/internal/contracts/state/v1;statev1\xa2\x02\x03SXX\xaa\x02\bState.V1\xca\x02\bState\\V1\xe2\x02\x14State\\V1\\GPBMetadata\xea\x02\tState::V1b\x06proto3"
|
|
|
|
var (
|
|
file_state_v1_stats_proto_rawDescOnce sync.Once
|
|
file_state_v1_stats_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_state_v1_stats_proto_rawDescGZIP() []byte {
|
|
file_state_v1_stats_proto_rawDescOnce.Do(func() {
|
|
file_state_v1_stats_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_stats_proto_rawDesc), len(file_state_v1_stats_proto_rawDesc)))
|
|
})
|
|
return file_state_v1_stats_proto_rawDescData
|
|
}
|
|
|
|
var file_state_v1_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_state_v1_stats_proto_goTypes = []any{
|
|
(*WorkflowStat)(nil), // 0: state.v1.WorkflowStat
|
|
(*StageStat)(nil), // 1: state.v1.StageStat
|
|
(*DayTokens)(nil), // 2: state.v1.DayTokens
|
|
(*StatusCountsRequest)(nil), // 3: state.v1.StatusCountsRequest
|
|
(*StatusCountsResponse)(nil), // 4: state.v1.StatusCountsResponse
|
|
(*WorkflowStatsRequest)(nil), // 5: state.v1.WorkflowStatsRequest
|
|
(*WorkflowStatsResponse)(nil), // 6: state.v1.WorkflowStatsResponse
|
|
(*StageStatsRequest)(nil), // 7: state.v1.StageStatsRequest
|
|
(*StageStatsResponse)(nil), // 8: state.v1.StageStatsResponse
|
|
(*TokensByDayRequest)(nil), // 9: state.v1.TokensByDayRequest
|
|
(*TokensByDayResponse)(nil), // 10: state.v1.TokensByDayResponse
|
|
nil, // 11: state.v1.StatusCountsResponse.CountsEntry
|
|
}
|
|
var file_state_v1_stats_proto_depIdxs = []int32{
|
|
11, // 0: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry
|
|
0, // 1: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat
|
|
1, // 2: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat
|
|
2, // 3: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens
|
|
3, // 4: state.v1.StatsService.StatusCounts:input_type -> state.v1.StatusCountsRequest
|
|
5, // 5: state.v1.StatsService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest
|
|
7, // 6: state.v1.StatsService.StageStats:input_type -> state.v1.StageStatsRequest
|
|
9, // 7: state.v1.StatsService.TokensByDay:input_type -> state.v1.TokensByDayRequest
|
|
4, // 8: state.v1.StatsService.StatusCounts:output_type -> state.v1.StatusCountsResponse
|
|
6, // 9: state.v1.StatsService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse
|
|
8, // 10: state.v1.StatsService.StageStats:output_type -> state.v1.StageStatsResponse
|
|
10, // 11: state.v1.StatsService.TokensByDay:output_type -> state.v1.TokensByDayResponse
|
|
8, // [8:12] is the sub-list for method output_type
|
|
4, // [4:8] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_state_v1_stats_proto_init() }
|
|
func file_state_v1_stats_proto_init() {
|
|
if File_state_v1_stats_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_stats_proto_rawDesc), len(file_state_v1_stats_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_state_v1_stats_proto_goTypes,
|
|
DependencyIndexes: file_state_v1_stats_proto_depIdxs,
|
|
MessageInfos: file_state_v1_stats_proto_msgTypes,
|
|
}.Build()
|
|
File_state_v1_stats_proto = out.File
|
|
file_state_v1_stats_proto_goTypes = nil
|
|
file_state_v1_stats_proto_depIdxs = nil
|
|
}
|