tasksv1

package
v0.2.0-dev.9 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: AGPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TaskKind_name = map[int32]string{
		0: "TASK_KIND_UNSPECIFIED",
		1: "TASK_KIND_CHECK",
		2: "TASK_KIND_ASSISTANT",
	}
	TaskKind_value = map[string]int32{
		"TASK_KIND_UNSPECIFIED": 0,
		"TASK_KIND_CHECK":       1,
		"TASK_KIND_ASSISTANT":   2,
	}
)

Enum value maps for TaskKind.

View Source
var (
	ScheduleKind_name = map[int32]string{
		0: "SCHEDULE_KIND_UNSPECIFIED",
		1: "SCHEDULE_KIND_EVERY",
		2: "SCHEDULE_KIND_DAILY",
		3: "SCHEDULE_KIND_WEEKLY",
	}
	ScheduleKind_value = map[string]int32{
		"SCHEDULE_KIND_UNSPECIFIED": 0,
		"SCHEDULE_KIND_EVERY":       1,
		"SCHEDULE_KIND_DAILY":       2,
		"SCHEDULE_KIND_WEEKLY":      3,
	}
)

Enum value maps for ScheduleKind.

View Source
var (
	RunStatus_name = map[int32]string{
		0: "RUN_STATUS_UNSPECIFIED",
		1: "RUN_STATUS_RUNNING",
		2: "RUN_STATUS_OK",
		3: "RUN_STATUS_PROBLEM",
		4: "RUN_STATUS_FAILED",
		5: "RUN_STATUS_SKIPPED",
	}
	RunStatus_value = map[string]int32{
		"RUN_STATUS_UNSPECIFIED": 0,
		"RUN_STATUS_RUNNING":     1,
		"RUN_STATUS_OK":          2,
		"RUN_STATUS_PROBLEM":     3,
		"RUN_STATUS_FAILED":      4,
		"RUN_STATUS_SKIPPED":     5,
	}
)

Enum value maps for RunStatus.

View Source
var File_mistgate_tasks_v1_tasks_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckStep

type CheckStep struct {

	// An MCP tool from ListCheckTools.
	Tool string `protobuf:"bytes,1,opt,name=tool,proto3" json:"tool,omitempty"`
	// Its arguments: a JSON object, at most 4 KiB, checked against the tool's schema. Ids and names, never a secret.
	ArgsJson string `protobuf:"bytes,2,opt,name=args_json,json=argsJson,proto3" json:"args_json,omitempty"`
	// At most 5.
	Conditions []*Condition `protobuf:"bytes,3,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// The tool failing (a node offline, a probe refused) counts as a problem; otherwise it fails the run.
	ErrorIsProblem bool `protobuf:"varint,4,opt,name=error_is_problem,json=errorIsProblem,proto3" json:"error_is_problem,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckStep) Descriptor deprecated

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

Deprecated: Use CheckStep.ProtoReflect.Descriptor instead.

func (*CheckStep) GetArgsJson

func (x *CheckStep) GetArgsJson() string

func (*CheckStep) GetConditions

func (x *CheckStep) GetConditions() []*Condition

func (*CheckStep) GetErrorIsProblem

func (x *CheckStep) GetErrorIsProblem() bool

func (*CheckStep) GetTool

func (x *CheckStep) GetTool() string

func (*CheckStep) ProtoMessage

func (*CheckStep) ProtoMessage()

func (*CheckStep) ProtoReflect

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

func (*CheckStep) Reset

func (x *CheckStep) Reset()

func (*CheckStep) String

func (x *CheckStep) String() string

type CheckTool

type CheckTool struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The tool's JSON schema of its arguments.
	InputSchemaJson string `protobuf:"bytes,3,opt,name=input_schema_json,json=inputSchemaJson,proto3" json:"input_schema_json,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckTool) Descriptor deprecated

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

Deprecated: Use CheckTool.ProtoReflect.Descriptor instead.

func (*CheckTool) GetDescription

func (x *CheckTool) GetDescription() string

func (*CheckTool) GetInputSchemaJson

func (x *CheckTool) GetInputSchemaJson() string

func (*CheckTool) GetName

func (x *CheckTool) GetName() string

func (*CheckTool) ProtoMessage

func (*CheckTool) ProtoMessage()

func (*CheckTool) ProtoReflect

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

func (*CheckTool) Reset

func (x *CheckTool) Reset()

func (*CheckTool) String

func (x *CheckTool) String() string

type Condition

type Condition struct {

	// Dotted names; "name[]" walks every element of the list name; "**." finds the next name at any depth ("**.severity" is
	// every severity field of the result). Empty: the whole result. At most 200 characters.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// severity_at_least (value info, warning, error or critical; "warn" and "fail" are read as warning and error), eq, ne,
	// in, not_in (value: a comma-separated list), gt, gte, lt, lte (value: a number), nonempty (a list, an object or a text
	// that is not empty, true, a number other than 0), contains (a text, ignoring case).
	Op    string `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
	Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A condition on a step's result (the tool's JSON). It holds when any value at path matches; a step with a condition that holds found a problem.

func (*Condition) Descriptor deprecated

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

Deprecated: Use Condition.ProtoReflect.Descriptor instead.

func (*Condition) GetOp

func (x *Condition) GetOp() string

func (*Condition) GetPath

func (x *Condition) GetPath() string

func (*Condition) GetValue

func (x *Condition) GetValue() string

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) ProtoReflect

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

func (*Condition) Reset

func (x *Condition) Reset()

func (*Condition) String

func (x *Condition) String() string

type CreateTaskRequest

type CreateTaskRequest struct {
	Task *TaskInput `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTaskRequest) Descriptor deprecated

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

Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead.

func (*CreateTaskRequest) GetTask

func (x *CreateTaskRequest) GetTask() *TaskInput

func (*CreateTaskRequest) ProtoMessage

func (*CreateTaskRequest) ProtoMessage()

func (*CreateTaskRequest) ProtoReflect

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

func (*CreateTaskRequest) Reset

func (x *CreateTaskRequest) Reset()

func (*CreateTaskRequest) String

func (x *CreateTaskRequest) String() string

type CreateTaskResponse

type CreateTaskResponse struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTaskResponse) Descriptor deprecated

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

Deprecated: Use CreateTaskResponse.ProtoReflect.Descriptor instead.

func (*CreateTaskResponse) GetTask

func (x *CreateTaskResponse) GetTask() *Task

func (*CreateTaskResponse) ProtoMessage

func (*CreateTaskResponse) ProtoMessage()

func (*CreateTaskResponse) ProtoReflect

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

func (*CreateTaskResponse) Reset

func (x *CreateTaskResponse) Reset()

func (*CreateTaskResponse) String

func (x *CreateTaskResponse) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTaskRequest) Descriptor deprecated

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

Deprecated: Use DeleteTaskRequest.ProtoReflect.Descriptor instead.

func (*DeleteTaskRequest) GetId

func (x *DeleteTaskRequest) GetId() string

func (*DeleteTaskRequest) ProtoMessage

func (*DeleteTaskRequest) ProtoMessage()

func (*DeleteTaskRequest) ProtoReflect

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

func (*DeleteTaskRequest) Reset

func (x *DeleteTaskRequest) Reset()

func (*DeleteTaskRequest) String

func (x *DeleteTaskRequest) String() string

type DeleteTaskResponse

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

func (*DeleteTaskResponse) Descriptor deprecated

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

Deprecated: Use DeleteTaskResponse.ProtoReflect.Descriptor instead.

func (*DeleteTaskResponse) ProtoMessage

func (*DeleteTaskResponse) ProtoMessage()

func (*DeleteTaskResponse) ProtoReflect

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

func (*DeleteTaskResponse) Reset

func (x *DeleteTaskResponse) Reset()

func (*DeleteTaskResponse) String

func (x *DeleteTaskResponse) String() string

type GetTaskRequest

type GetTaskRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTaskRequest) Descriptor deprecated

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

Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead.

func (*GetTaskRequest) GetId

func (x *GetTaskRequest) GetId() string

func (*GetTaskRequest) ProtoMessage

func (*GetTaskRequest) ProtoMessage()

func (*GetTaskRequest) ProtoReflect

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

func (*GetTaskRequest) Reset

func (x *GetTaskRequest) Reset()

func (*GetTaskRequest) String

func (x *GetTaskRequest) String() string

type GetTaskResponse

type GetTaskResponse struct {
	Task                  *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	TimezoneOffsetMinutes int32 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetTaskResponse) Descriptor deprecated

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

Deprecated: Use GetTaskResponse.ProtoReflect.Descriptor instead.

func (*GetTaskResponse) GetTask

func (x *GetTaskResponse) GetTask() *Task

func (*GetTaskResponse) GetTimezoneOffsetMinutes

func (x *GetTaskResponse) GetTimezoneOffsetMinutes() int32

func (*GetTaskResponse) ProtoMessage

func (*GetTaskResponse) ProtoMessage()

func (*GetTaskResponse) ProtoReflect

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

func (*GetTaskResponse) Reset

func (x *GetTaskResponse) Reset()

func (*GetTaskResponse) String

func (x *GetTaskResponse) String() string

type ListCheckToolsRequest

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

func (*ListCheckToolsRequest) Descriptor deprecated

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

Deprecated: Use ListCheckToolsRequest.ProtoReflect.Descriptor instead.

func (*ListCheckToolsRequest) ProtoMessage

func (*ListCheckToolsRequest) ProtoMessage()

func (*ListCheckToolsRequest) ProtoReflect

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

func (*ListCheckToolsRequest) Reset

func (x *ListCheckToolsRequest) Reset()

func (*ListCheckToolsRequest) String

func (x *ListCheckToolsRequest) String() string

type ListCheckToolsResponse

type ListCheckToolsResponse struct {
	Tools []*CheckTool `protobuf:"bytes,1,rep,name=tools,proto3" json:"tools,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCheckToolsResponse) Descriptor deprecated

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

Deprecated: Use ListCheckToolsResponse.ProtoReflect.Descriptor instead.

func (*ListCheckToolsResponse) GetTools

func (x *ListCheckToolsResponse) GetTools() []*CheckTool

func (*ListCheckToolsResponse) ProtoMessage

func (*ListCheckToolsResponse) ProtoMessage()

func (*ListCheckToolsResponse) ProtoReflect

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

func (*ListCheckToolsResponse) Reset

func (x *ListCheckToolsResponse) Reset()

func (*ListCheckToolsResponse) String

func (x *ListCheckToolsResponse) String() string

type ListTaskRunsRequest

type ListTaskRunsRequest struct {
	TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// 1 to 50; 0 means 20.
	Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTaskRunsRequest) Descriptor deprecated

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

Deprecated: Use ListTaskRunsRequest.ProtoReflect.Descriptor instead.

func (*ListTaskRunsRequest) GetLimit

func (x *ListTaskRunsRequest) GetLimit() uint32

func (*ListTaskRunsRequest) GetTaskId

func (x *ListTaskRunsRequest) GetTaskId() string

func (*ListTaskRunsRequest) ProtoMessage

func (*ListTaskRunsRequest) ProtoMessage()

func (*ListTaskRunsRequest) ProtoReflect

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

func (*ListTaskRunsRequest) Reset

func (x *ListTaskRunsRequest) Reset()

func (*ListTaskRunsRequest) String

func (x *ListTaskRunsRequest) String() string

type ListTaskRunsResponse

type ListTaskRunsResponse struct {
	Runs []*TaskRun `protobuf:"bytes,1,rep,name=runs,proto3" json:"runs,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTaskRunsResponse) Descriptor deprecated

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

Deprecated: Use ListTaskRunsResponse.ProtoReflect.Descriptor instead.

func (*ListTaskRunsResponse) GetRuns

func (x *ListTaskRunsResponse) GetRuns() []*TaskRun

func (*ListTaskRunsResponse) ProtoMessage

func (*ListTaskRunsResponse) ProtoMessage()

func (*ListTaskRunsResponse) ProtoReflect

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

func (*ListTaskRunsResponse) Reset

func (x *ListTaskRunsResponse) Reset()

func (*ListTaskRunsResponse) String

func (x *ListTaskRunsResponse) String() string

type ListTasksRequest

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

func (*ListTasksRequest) Descriptor deprecated

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

Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.

func (*ListTasksRequest) ProtoMessage

func (*ListTasksRequest) ProtoMessage()

func (*ListTasksRequest) ProtoReflect

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

func (*ListTasksRequest) Reset

func (x *ListTasksRequest) Reset()

func (*ListTasksRequest) String

func (x *ListTasksRequest) String() string

type ListTasksResponse

type ListTasksResponse struct {
	Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
	// The panel's time zone, the one schedules are in.
	TimezoneOffsetMinutes int32 `` /* 127-byte string literal not displayed */
	NowUnix               int64 `protobuf:"varint,3,opt,name=now_unix,json=nowUnix,proto3" json:"now_unix,omitempty"`
	// At most this many tasks.
	MaxTasks uint32 `protobuf:"varint,4,opt,name=max_tasks,json=maxTasks,proto3" json:"max_tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksResponse) Descriptor deprecated

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

Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.

func (*ListTasksResponse) GetMaxTasks

func (x *ListTasksResponse) GetMaxTasks() uint32

func (*ListTasksResponse) GetNowUnix

func (x *ListTasksResponse) GetNowUnix() int64

func (*ListTasksResponse) GetTasks

func (x *ListTasksResponse) GetTasks() []*Task

func (*ListTasksResponse) GetTimezoneOffsetMinutes

func (x *ListTasksResponse) GetTimezoneOffsetMinutes() int32

func (*ListTasksResponse) ProtoMessage

func (*ListTasksResponse) ProtoMessage()

func (*ListTasksResponse) ProtoReflect

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

func (*ListTasksResponse) Reset

func (x *ListTasksResponse) Reset()

func (*ListTasksResponse) String

func (x *ListTasksResponse) String() string

type RunStatus

type RunStatus int32
const (
	RunStatus_RUN_STATUS_UNSPECIFIED RunStatus = 0
	RunStatus_RUN_STATUS_RUNNING     RunStatus = 1
	// nothing to report
	RunStatus_RUN_STATUS_OK RunStatus = 2
	// a condition held, or the assistant's verdict says so
	RunStatus_RUN_STATUS_PROBLEM RunStatus = 3
	// the run could not do its work: reason says why
	RunStatus_RUN_STATUS_FAILED RunStatus = 4
	// not started: the assistant is off, the budget is spent ... (reason)
	RunStatus_RUN_STATUS_SKIPPED RunStatus = 5
)

func (RunStatus) Descriptor

func (RunStatus) Descriptor() protoreflect.EnumDescriptor

func (RunStatus) Enum

func (x RunStatus) Enum() *RunStatus

func (RunStatus) EnumDescriptor deprecated

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

Deprecated: Use RunStatus.Descriptor instead.

func (RunStatus) Number

func (x RunStatus) Number() protoreflect.EnumNumber

func (RunStatus) String

func (x RunStatus) String() string

func (RunStatus) Type

type RunTaskNowRequest

type RunTaskNowRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RunTaskNowRequest) Descriptor deprecated

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

Deprecated: Use RunTaskNowRequest.ProtoReflect.Descriptor instead.

func (*RunTaskNowRequest) GetId

func (x *RunTaskNowRequest) GetId() string

func (*RunTaskNowRequest) ProtoMessage

func (*RunTaskNowRequest) ProtoMessage()

func (*RunTaskNowRequest) ProtoReflect

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

func (*RunTaskNowRequest) Reset

func (x *RunTaskNowRequest) Reset()

func (*RunTaskNowRequest) String

func (x *RunTaskNowRequest) String() string

type RunTaskNowResponse

type RunTaskNowResponse struct {
	RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RunTaskNowResponse) Descriptor deprecated

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

Deprecated: Use RunTaskNowResponse.ProtoReflect.Descriptor instead.

func (*RunTaskNowResponse) GetRunId

func (x *RunTaskNowResponse) GetRunId() string

func (*RunTaskNowResponse) ProtoMessage

func (*RunTaskNowResponse) ProtoMessage()

func (*RunTaskNowResponse) ProtoReflect

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

func (*RunTaskNowResponse) Reset

func (x *RunTaskNowResponse) Reset()

func (*RunTaskNowResponse) String

func (x *RunTaskNowResponse) String() string

type Schedule

type Schedule struct {
	Kind ScheduleKind `protobuf:"varint,1,opt,name=kind,proto3,enum=mistgate.tasks.v1.ScheduleKind" json:"kind,omitempty"`
	// EVERY: 5 (a check task) or 15 (an assistant task) to 10080 minutes.
	EveryMinutes uint32 `protobuf:"varint,2,opt,name=every_minutes,json=everyMinutes,proto3" json:"every_minutes,omitempty"`
	// DAILY and WEEKLY: the minute of the day, 0 to 1439.
	MinuteOfDay uint32 `protobuf:"varint,3,opt,name=minute_of_day,json=minuteOfDay,proto3" json:"minute_of_day,omitempty"`
	// WEEKLY: 0 Sunday to 6 Saturday.
	Weekday uint32 `protobuf:"varint,4,opt,name=weekday,proto3" json:"weekday,omitempty"`
	// contains filtered or unexported fields
}

When a task runs. Times are in the panel's time zone (ListTasksResponse.timezone_offset_minutes, the one of the update schedules); every run starts up to a few minutes after its time (a fixed delay of the task's own), so tasks do not all start on the same second. A run the panel missed while it was down runs once when it starts, not once per missed time.

func (*Schedule) Descriptor deprecated

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

Deprecated: Use Schedule.ProtoReflect.Descriptor instead.

func (*Schedule) GetEveryMinutes

func (x *Schedule) GetEveryMinutes() uint32

func (*Schedule) GetKind

func (x *Schedule) GetKind() ScheduleKind

func (*Schedule) GetMinuteOfDay

func (x *Schedule) GetMinuteOfDay() uint32

func (*Schedule) GetWeekday

func (x *Schedule) GetWeekday() uint32

func (*Schedule) ProtoMessage

func (*Schedule) ProtoMessage()

func (*Schedule) ProtoReflect

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

func (*Schedule) Reset

func (x *Schedule) Reset()

func (*Schedule) String

func (x *Schedule) String() string

type ScheduleKind

type ScheduleKind int32
const (
	ScheduleKind_SCHEDULE_KIND_UNSPECIFIED ScheduleKind = 0
	// every every_minutes minutes, counted from midnight in the panel's time zone (every 15 minutes: :00, :15, :30, :45)
	ScheduleKind_SCHEDULE_KIND_EVERY ScheduleKind = 1
	// every day at minute_of_day
	ScheduleKind_SCHEDULE_KIND_DAILY ScheduleKind = 2
	// every week on weekday at minute_of_day
	ScheduleKind_SCHEDULE_KIND_WEEKLY ScheduleKind = 3
)

func (ScheduleKind) Descriptor

func (ScheduleKind) Enum

func (x ScheduleKind) Enum() *ScheduleKind

func (ScheduleKind) EnumDescriptor deprecated

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

Deprecated: Use ScheduleKind.Descriptor instead.

func (ScheduleKind) Number

func (ScheduleKind) String

func (x ScheduleKind) String() string

func (ScheduleKind) Type

type StepResult

type StepResult struct {
	Tool string `protobuf:"bytes,1,opt,name=tool,proto3" json:"tool,omitempty"`
	// The tool answered.
	Ok      bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"`
	Problem bool `protobuf:"varint,3,opt,name=problem,proto3" json:"problem,omitempty"`
	// The tool's refusal, cleaned.
	Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	// What matched: "<path> = <value>", at most 5.
	Matches []string `protobuf:"bytes,5,rep,name=matches,proto3" json:"matches,omitempty"`
	// The start of the result (at most 2000 characters), scrubbed like every MCP result.
	Excerpt    string `protobuf:"bytes,6,opt,name=excerpt,proto3" json:"excerpt,omitempty"`
	DurationMs uint32 `protobuf:"varint,7,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
	// contains filtered or unexported fields
}

One step of a check run.

func (*StepResult) Descriptor deprecated

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

Deprecated: Use StepResult.ProtoReflect.Descriptor instead.

func (*StepResult) GetDurationMs

func (x *StepResult) GetDurationMs() uint32

func (*StepResult) GetError

func (x *StepResult) GetError() string

func (*StepResult) GetExcerpt

func (x *StepResult) GetExcerpt() string

func (*StepResult) GetMatches

func (x *StepResult) GetMatches() []string

func (*StepResult) GetOk

func (x *StepResult) GetOk() bool

func (*StepResult) GetProblem

func (x *StepResult) GetProblem() bool

func (*StepResult) GetTool

func (x *StepResult) GetTool() string

func (*StepResult) ProtoMessage

func (*StepResult) ProtoMessage()

func (*StepResult) ProtoReflect

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

func (*StepResult) Reset

func (x *StepResult) Reset()

func (*StepResult) String

func (x *StepResult) String() string

type Task

type Task 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"`
	Kind           TaskKind     `protobuf:"varint,3,opt,name=kind,proto3,enum=mistgate.tasks.v1.TaskKind" json:"kind,omitempty"`
	Enabled        bool         `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Schedule       *Schedule    `protobuf:"bytes,5,opt,name=schedule,proto3" json:"schedule,omitempty"`
	Steps          []*CheckStep `protobuf:"bytes,6,rep,name=steps,proto3" json:"steps,omitempty"`
	Prompt         string       `protobuf:"bytes,7,opt,name=prompt,proto3" json:"prompt,omitempty"`
	NotifyTelegram bool         `protobuf:"varint,8,opt,name=notify_telegram,json=notifyTelegram,proto3" json:"notify_telegram,omitempty"`
	// ASSISTANT: the task's conversation (each run is a part of it; the owner can go on from the last one in the chat).
	ConversationId string `protobuf:"bytes,9,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	CreatedUnix    int64  `protobuf:"varint,10,opt,name=created_unix,json=createdUnix,proto3" json:"created_unix,omitempty"`
	UpdatedUnix    int64  `protobuf:"varint,11,opt,name=updated_unix,json=updatedUnix,proto3" json:"updated_unix,omitempty"`
	// 0 when disabled.
	NextRunUnix int64 `protobuf:"varint,12,opt,name=next_run_unix,json=nextRunUnix,proto3" json:"next_run_unix,omitempty"`
	// The newest run, if any.
	LastRun *TaskRun `protobuf:"bytes,13,opt,name=last_run,json=lastRun,proto3" json:"last_run,omitempty"`
	// Failed runs in a row; three open SCHEDULED_TASK_FAILING.
	FailStreak uint32 `protobuf:"varint,14,opt,name=fail_streak,json=failStreak,proto3" json:"fail_streak,omitempty"`
	// The last finished run (not failed or skipped) found a problem: SCHEDULED_CHECK is open.
	Problem        bool   `protobuf:"varint,15,opt,name=problem,proto3" json:"problem,omitempty"`
	ProblemSummary string `protobuf:"bytes,16,opt,name=problem_summary,json=problemSummary,proto3" json:"problem_summary,omitempty"`
	Running        bool   `protobuf:"varint,17,opt,name=running,proto3" json:"running,omitempty"`
	Version        uint64 `protobuf:"varint,18,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetConversationId

func (x *Task) GetConversationId() string

func (*Task) GetCreatedUnix

func (x *Task) GetCreatedUnix() int64

func (*Task) GetEnabled

func (x *Task) GetEnabled() bool

func (*Task) GetFailStreak

func (x *Task) GetFailStreak() uint32

func (*Task) GetId

func (x *Task) GetId() string

func (*Task) GetKind

func (x *Task) GetKind() TaskKind

func (*Task) GetLastRun

func (x *Task) GetLastRun() *TaskRun

func (*Task) GetName

func (x *Task) GetName() string

func (*Task) GetNextRunUnix

func (x *Task) GetNextRunUnix() int64

func (*Task) GetNotifyTelegram

func (x *Task) GetNotifyTelegram() bool

func (*Task) GetProblem

func (x *Task) GetProblem() bool

func (*Task) GetProblemSummary

func (x *Task) GetProblemSummary() string

func (*Task) GetPrompt

func (x *Task) GetPrompt() string

func (*Task) GetRunning

func (x *Task) GetRunning() bool

func (*Task) GetSchedule

func (x *Task) GetSchedule() *Schedule

func (*Task) GetSteps

func (x *Task) GetSteps() []*CheckStep

func (*Task) GetUpdatedUnix

func (x *Task) GetUpdatedUnix() int64

func (*Task) GetVersion

func (x *Task) GetVersion() uint64

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type TaskInput

type TaskInput struct {

	// 1 to 80 characters.
	Name     string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Kind     TaskKind  `protobuf:"varint,2,opt,name=kind,proto3,enum=mistgate.tasks.v1.TaskKind" json:"kind,omitempty"`
	Enabled  bool      `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Schedule *Schedule `protobuf:"bytes,4,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// CHECK: 1 to 8 steps, run in order.
	Steps []*CheckStep `protobuf:"bytes,5,rep,name=steps,proto3" json:"steps,omitempty"`
	// ASSISTANT: what to do, 1 to 4000 characters. The answer ends with a verdict the panel asks for itself.
	Prompt string `protobuf:"bytes,6,opt,name=prompt,proto3" json:"prompt,omitempty"`
	// A problem, and a task that keeps failing, also go to the Telegram chats linked for alerts.
	NotifyTelegram bool `protobuf:"varint,7,opt,name=notify_telegram,json=notifyTelegram,proto3" json:"notify_telegram,omitempty"`
	// contains filtered or unexported fields
}

What the owner writes.

func (*TaskInput) Descriptor deprecated

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

Deprecated: Use TaskInput.ProtoReflect.Descriptor instead.

func (*TaskInput) GetEnabled

func (x *TaskInput) GetEnabled() bool

func (*TaskInput) GetKind

func (x *TaskInput) GetKind() TaskKind

func (*TaskInput) GetName

func (x *TaskInput) GetName() string

func (*TaskInput) GetNotifyTelegram

func (x *TaskInput) GetNotifyTelegram() bool

func (*TaskInput) GetPrompt

func (x *TaskInput) GetPrompt() string

func (*TaskInput) GetSchedule

func (x *TaskInput) GetSchedule() *Schedule

func (*TaskInput) GetSteps

func (x *TaskInput) GetSteps() []*CheckStep

func (*TaskInput) ProtoMessage

func (*TaskInput) ProtoMessage()

func (*TaskInput) ProtoReflect

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

func (*TaskInput) Reset

func (x *TaskInput) Reset()

func (*TaskInput) String

func (x *TaskInput) String() string

type TaskKind

type TaskKind int32
const (
	TaskKind_TASK_KIND_UNSPECIFIED TaskKind = 0
	TaskKind_TASK_KIND_CHECK       TaskKind = 1
	TaskKind_TASK_KIND_ASSISTANT   TaskKind = 2
)

func (TaskKind) Descriptor

func (TaskKind) Descriptor() protoreflect.EnumDescriptor

func (TaskKind) Enum

func (x TaskKind) Enum() *TaskKind

func (TaskKind) EnumDescriptor deprecated

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

Deprecated: Use TaskKind.Descriptor instead.

func (TaskKind) Number

func (x TaskKind) Number() protoreflect.EnumNumber

func (TaskKind) String

func (x TaskKind) String() string

func (TaskKind) Type

type TaskRun

type TaskRun struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// "schedule", "manual" or "missed" (its time passed while the panel was down: one run on start).
	Trigger string    `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`
	Status  RunStatus `protobuf:"varint,4,opt,name=status,proto3,enum=mistgate.tasks.v1.RunStatus" json:"status,omitempty"`
	// A code (see RUN REASONS); empty for ok and for a problem.
	Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"`
	// One line: what the problem is (the matches of a check, the assistant's verdict), or what failed. At most 300 characters,
	// scrubbed; words from the fleet's data are untrusted.
	Summary     string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"`
	StartedUnix int64  `protobuf:"varint,7,opt,name=started_unix,json=startedUnix,proto3" json:"started_unix,omitempty"`
	// 0 while running.
	FinishedUnix int64 `protobuf:"varint,8,opt,name=finished_unix,json=finishedUnix,proto3" json:"finished_unix,omitempty"`
	// CHECK: one per step.
	Steps []*StepResult `protobuf:"bytes,9,rep,name=steps,proto3" json:"steps,omitempty"`
	// ASSISTANT: the conversation the answer is in (the task's own), and the provider, model and cost of the run.
	ConversationId string  `protobuf:"bytes,10,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	Provider       string  `protobuf:"bytes,11,opt,name=provider,proto3" json:"provider,omitempty"`
	Model          string  `protobuf:"bytes,12,opt,name=model,proto3" json:"model,omitempty"`
	Usd            float64 `protobuf:"fixed64,13,opt,name=usd,proto3" json:"usd,omitempty"`
	// The run went to the fallback provider of the assistant settings after the main one failed.
	FellBack bool `protobuf:"varint,14,opt,name=fell_back,json=fellBack,proto3" json:"fell_back,omitempty"`
	// Who started a manual run (an admin's name, or the token's).
	Actor string `protobuf:"bytes,15,opt,name=actor,proto3" json:"actor,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskRun) Descriptor deprecated

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

Deprecated: Use TaskRun.ProtoReflect.Descriptor instead.

func (*TaskRun) GetActor

func (x *TaskRun) GetActor() string

func (*TaskRun) GetConversationId

func (x *TaskRun) GetConversationId() string

func (*TaskRun) GetFellBack

func (x *TaskRun) GetFellBack() bool

func (*TaskRun) GetFinishedUnix

func (x *TaskRun) GetFinishedUnix() int64

func (*TaskRun) GetId

func (x *TaskRun) GetId() string

func (*TaskRun) GetModel

func (x *TaskRun) GetModel() string

func (*TaskRun) GetProvider

func (x *TaskRun) GetProvider() string

func (*TaskRun) GetReason

func (x *TaskRun) GetReason() string

func (*TaskRun) GetStartedUnix

func (x *TaskRun) GetStartedUnix() int64

func (*TaskRun) GetStatus

func (x *TaskRun) GetStatus() RunStatus

func (*TaskRun) GetSteps

func (x *TaskRun) GetSteps() []*StepResult

func (*TaskRun) GetSummary

func (x *TaskRun) GetSummary() string

func (*TaskRun) GetTaskId

func (x *TaskRun) GetTaskId() string

func (*TaskRun) GetTrigger

func (x *TaskRun) GetTrigger() string

func (*TaskRun) GetUsd

func (x *TaskRun) GetUsd() float64

func (*TaskRun) ProtoMessage

func (*TaskRun) ProtoMessage()

func (*TaskRun) ProtoReflect

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

func (*TaskRun) Reset

func (x *TaskRun) Reset()

func (*TaskRun) String

func (x *TaskRun) String() string

type UpdateTaskRequest

type UpdateTaskRequest struct {
	Id   string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Task *TaskInput `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"`
	// A zero value keeps the update behavior used by older clients.
	ExpectedVersion uint64 `protobuf:"varint,3,opt,name=expected_version,json=expectedVersion,proto3" json:"expected_version,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTaskRequest) Descriptor deprecated

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

Deprecated: Use UpdateTaskRequest.ProtoReflect.Descriptor instead.

func (*UpdateTaskRequest) GetExpectedVersion

func (x *UpdateTaskRequest) GetExpectedVersion() uint64

func (*UpdateTaskRequest) GetId

func (x *UpdateTaskRequest) GetId() string

func (*UpdateTaskRequest) GetTask

func (x *UpdateTaskRequest) GetTask() *TaskInput

func (*UpdateTaskRequest) ProtoMessage

func (*UpdateTaskRequest) ProtoMessage()

func (*UpdateTaskRequest) ProtoReflect

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

func (*UpdateTaskRequest) Reset

func (x *UpdateTaskRequest) Reset()

func (*UpdateTaskRequest) String

func (x *UpdateTaskRequest) String() string

type UpdateTaskResponse

type UpdateTaskResponse struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTaskResponse) Descriptor deprecated

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

Deprecated: Use UpdateTaskResponse.ProtoReflect.Descriptor instead.

func (*UpdateTaskResponse) GetTask

func (x *UpdateTaskResponse) GetTask() *Task

func (*UpdateTaskResponse) ProtoMessage

func (*UpdateTaskResponse) ProtoMessage()

func (*UpdateTaskResponse) ProtoReflect

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

func (*UpdateTaskResponse) Reset

func (x *UpdateTaskResponse) Reset()

func (*UpdateTaskResponse) String

func (x *UpdateTaskResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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