Documentation ¶
Index ¶
- type ActionsConfiguration
- type ActionsExecutions
- type GroupActionExecutionStatusResume
- type Main
- func (main Main) CreateNewExecution(groupActionID string) (ActionsExecutions, errors.Error)
- func (main Main) DeleteGroupAction(id string) errors.Error
- func (main Main) FindGroupActionByID(id string) (MetricsGroupAction, errors.Error)
- func (main Main) ListGroupActionExecutionResumeByGroup(groupID string) ([]GroupActionExecutionStatusResume, errors.Error)
- func (main Main) ParseGroupAction(metricsGroupAction io.ReadCloser) (MetricsGroupAction, errors.Error)
- func (main Main) SaveGroupAction(metricsGroupAction MetricsGroupAction) (MetricsGroupAction, errors.Error)
- func (main Main) SetExecutionFailed(actionExecutionID string, executionLog string) (ActionsExecutions, errors.Error)
- func (main Main) SetExecutionSuccess(actionExecutionID string, executionLog string) (ActionsExecutions, errors.Error)
- func (main Main) UpdateGroupAction(id string, metricsGroupAction MetricsGroupAction) (MetricsGroupAction, errors.Error)
- func (main Main) ValidateActionCanBeExecuted(metricsGroupAction MetricsGroupAction) bool
- func (main Main) ValidateGroupAction(metricsGroupAction MetricsGroupAction, workspaceID uuid.UUID) errors.ErrorList
- type MetricsGroupAction
- type UseCases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionsConfiguration ¶
type ActionsExecutions ¶
type Main ¶
type Main struct {
// contains filtered or unexported fields
}
func (Main) CreateNewExecution ¶
func (main Main) CreateNewExecution(groupActionID string) (ActionsExecutions, errors.Error)
func (Main) FindGroupActionByID ¶
func (main Main) FindGroupActionByID(id string) (MetricsGroupAction, errors.Error)
func (Main) ListGroupActionExecutionResumeByGroup ¶
func (main Main) ListGroupActionExecutionResumeByGroup(groupID string) ([]GroupActionExecutionStatusResume, errors.Error)
func (Main) ParseGroupAction ¶
func (main Main) ParseGroupAction(metricsGroupAction io.ReadCloser) (MetricsGroupAction, errors.Error)
func (Main) SaveGroupAction ¶
func (main Main) SaveGroupAction(metricsGroupAction MetricsGroupAction) (MetricsGroupAction, errors.Error)
func (Main) SetExecutionFailed ¶
func (Main) SetExecutionSuccess ¶
func (Main) UpdateGroupAction ¶
func (main Main) UpdateGroupAction(id string, metricsGroupAction MetricsGroupAction) (MetricsGroupAction, errors.Error)
func (Main) ValidateActionCanBeExecuted ¶
func (main Main) ValidateActionCanBeExecuted(metricsGroupAction MetricsGroupAction) bool
func (Main) ValidateGroupAction ¶
type MetricsGroupAction ¶
type MetricsGroupAction struct { util.BaseModel MetricsGroupID uuid.UUID `json:"metricsGroupId"` ActionID uuid.UUID `json:"actionId"` Nickname string `json:"nickname"` ExecutionParameters json.RawMessage `json:"executionParameters"` ActionsConfiguration ActionsConfiguration `json:"configuration"` DeletedAt *time.Time `json:"-"` }
type UseCases ¶
type UseCases interface { ValidateGroupAction(metricsGroupAction MetricsGroupAction, workspaceID uuid.UUID) errors.ErrorList ParseGroupAction(metricsGroupAction io.ReadCloser) (MetricsGroupAction, errors.Error) FindGroupActionByID(id string) (MetricsGroupAction, errors.Error) SaveGroupAction(metricsGroupAction MetricsGroupAction) (MetricsGroupAction, errors.Error) ListGroupActionExecutionResumeByGroup(groupID string) ([]GroupActionExecutionStatusResume, errors.Error) UpdateGroupAction(id string, metricsGroupAction MetricsGroupAction) (MetricsGroupAction, errors.Error) DeleteGroupAction(id string) errors.Error SetExecutionFailed(actionExecutionID string, executionLog string) (ActionsExecutions, errors.Error) SetExecutionSuccess(actionExecutionID string, executionLog string) (ActionsExecutions, errors.Error) ValidateActionCanBeExecuted(metricsGroupAction MetricsGroupAction) bool CreateNewExecution(groupActionID string) (ActionsExecutions, errors.Error) }
Click to show internal directories.
Click to hide internal directories.