util

package
v0.0.0-...-a65319e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GeneralParseError = "PARSE_ERROR"
	PluginLookupError = "PLUGIN_LOOKUP_ERROR"
	ResultQueryError  = "RESULT_QUERY_ERROR"
)
View Source
const (
	DatasourceSaveError       = "DATASOURCE_SAVE_ERROR"
	FindDatasourceError       = "FIND_DATASOURCE_ERROR"
	DeleteDatasourceError     = "DELETE_ERROR"
	OpenPluginGetMetricsError = "OPEN_PLUGIN_GET_METRICS_ERROR"
	PluginListError           = "PLUGIN_LIST_ERROR"
)
View Source
const (
	FindMetricByID    = "FIND_METRIC_BY_ID"
	SaveMetricError   = "SAVE_METRIC_ERROR"
	UpdateMetricError = "UPDATE_METRIC_ERROR"
	RemoveMetricError = "REMOVE_METRIC_ERROR"
)
View Source
const (
	FindAllMetricExecutionsError = "FIND_ALL_METRIC_EXECUTIONS_ERROR"
	SaveMetricExecutionError     = "SAVE_METRIC_EXECUTION_ERROR"
	UpdateMetricExecutionError   = "UPDATE_METRIC_EXECUTION_ERROR"
	RemoveMetricExecutionError   = "REMOVE_METRIC_EXECUTION_ERROR"
)
View Source
const (
	PeriodValidateRegexError    = "PERIOD_VALIDATE_REGEX_ERROR"
	PeriodValidateError         = "PERIOD_VALIDATE_ERROR"
	FindMetricsGroupError       = "FIND_METRICS_GROUP_ERROR"
	ResumeByCircleError         = "RESUME_BY_CIRCLE_ERROR"
	SaveMetricsGroupError       = "SAVE_METRICS_GROUP_ERROR"
	UpdateMetricsGroupError     = "UPDATE_METRICS_GROUP_ERROR"
	UpdateNameMetricsGroupError = "UPDATE_NAME_METRICS_GROUP_ERROR"
	RemoveMetricsGroupError     = "REMOVE_METRICS_GROUP_ERROR"
	QueryFindDatasourceError    = "QUERY_FIND_DATASOURCE_ERROR"
	QueryGetPluginError         = "QUERY_GET_PLUGIN_ERROR"
	QueryByGroupIDError         = "QUERY_BY_GROUP_ID_ERROR"
	ListAllByGroupError         = "LIST_ALL_BY_GROUP_ERROR"
)
View Source
const (
	FindPluginError    = "FIND_PLUGIN_ERROR"
	GetPluginByIDError = "GET_PLUGIN_BY_ID_ERROR"
)
View Source
const (
	FindActionError                     = "FIND_ACTION_ERROR"
	SaveActionError                     = "SAVE_ACTION_ERROR"
	UpdateActionError                   = "UPDATE_ACTION_ERROR"
	DeleteActionError                   = "DELETE_ACTION_ERROR"
	ListGroupActionExecutionStatusError = "LIST_GROUP_ACTION_EXECUTION_STATUS_ERROR"
	ActionExecutionValidateError        = "VALIDATE_ACTION_CAN_BE_EXECUTED_ERROR"
)
View Source
const (
	FindActionExecutionError        = "FIND_ACTION_EXECUTION_ERROR"
	CreateActionExecutionError      = "CREATE_ACTION_EXECUTION_ERROR"
	SetExecutionFailedError         = "SET_ACTION_EXECUTION_FAILED_ERROR"
	SetExecutionFailedErrorFinding  = "SET_ACTION_EXECUTION_FAILED_FINDING_ERROR"
	SetExecutionSuccessError        = "SET_ACTION_EXECUTION_SUCCESS_ERROR"
	SetExecutionSuccessErrorFinding = "SET_ACTION_EXECUTION_SUCCESS_FINDING_ERROR"
	ExecutionNotInExecution         = "ACTION_EXECUTION_NOT_IN_EXECUTION"
	CountNumberOfExecutionsError    = "ACTION_EXECUTION_COUNT"
)
View Source
const (
	ResultByGroupMetricError = "RESULT_BY_GROUP_METRIC_ERROR"
)

Variables

This section is empty.

Functions

func IsDeveloperRunning

func IsDeveloperRunning() bool

Types

type BaseModel

type BaseModel struct {
	ID        uuid.UUID `json:"id"`
	CreatedAt time.Time `json:"createdAt"`
}

func (*BaseModel) BeforeCreate

func (BaseModel *BaseModel) BeforeCreate(scope *gorm.Scope) error

type ErrorUtil

type ErrorUtil struct {
	Field string `json:"field"`
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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