Documentation ¶
Index ¶
- Variables
- type Condition
- type Main
- func (main Main) FindAll() ([]MetricsGroup, errors.Error)
- func (main Main) FindAllByWorkspaceID(workspaceID uuid.UUID) ([]MetricsGroup, errors.Error)
- func (main Main) FindByID(id string) (MetricsGroup, errors.Error)
- func (main Main) ListAllByCircle(circleID string) ([]MetricsGroupRepresentation, errors.Error)
- func (main Main) Parse(metricsGroup io.ReadCloser) (MetricsGroup, errors.Error)
- func (main Main) PeriodValidate(currentPeriod string) (datasource.Period, errors.Error)
- func (main Main) QueryByGroupID(id string, period, interval datasource.Period) ([]datasource.MetricValues, errors.Error)
- func (main Main) Remove(id string) errors.Error
- func (main Main) ResultByGroup(group MetricsGroup) ([]datasource.MetricResult, errors.Error)
- func (main Main) ResultByID(id string) ([]datasource.MetricResult, errors.Error)
- func (main Main) ResumeByCircle(circleID string) ([]MetricGroupResume, errors.Error)
- func (main Main) Save(metricsGroup MetricsGroup) (MetricsGroup, errors.Error)
- func (main Main) Update(id string, metricsGroup MetricsGroup) (MetricsGroup, errors.Error)
- func (main Main) UpdateName(id string, metricsGroup MetricsGroup) (MetricsGroup, errors.Error)
- func (main Main) Validate(metricsGroup MetricsGroup) errors.ErrorList
- type MetricGroupResume
- type MetricsGroup
- type MetricsGroupRepresentation
- type UseCases
Constants ¶
This section is empty.
Variables ¶
View Source
var Periods = map[string]string{
"s": "s",
"m": "m",
"h": "h",
"d": "d",
"w": "w",
"y": "y",
"MAX": "MAX",
}
Functions ¶
This section is empty.
Types ¶
type Main ¶
type Main struct {
// contains filtered or unexported fields
}
func (Main) FindAllByWorkspaceID ¶
func (Main) ListAllByCircle ¶
func (main Main) ListAllByCircle(circleID string) ([]MetricsGroupRepresentation, errors.Error)
func (Main) Parse ¶
func (main Main) Parse(metricsGroup io.ReadCloser) (MetricsGroup, errors.Error)
func (Main) PeriodValidate ¶
func (Main) QueryByGroupID ¶
func (main Main) QueryByGroupID(id string, period, interval datasource.Period) ([]datasource.MetricValues, errors.Error)
func (Main) ResultByGroup ¶
func (main Main) ResultByGroup(group MetricsGroup) ([]datasource.MetricResult, errors.Error)
func (Main) ResultByID ¶
func (main Main) ResultByID(id string) ([]datasource.MetricResult, errors.Error)
func (Main) ResumeByCircle ¶
func (main Main) ResumeByCircle(circleID string) ([]MetricGroupResume, errors.Error)
func (Main) Save ¶
func (main Main) Save(metricsGroup MetricsGroup) (MetricsGroup, errors.Error)
func (Main) Update ¶
func (main Main) Update(id string, metricsGroup MetricsGroup) (MetricsGroup, errors.Error)
func (Main) UpdateName ¶
func (main Main) UpdateName(id string, metricsGroup MetricsGroup) (MetricsGroup, errors.Error)
type MetricGroupResume ¶
type MetricsGroup ¶
type MetricsGroupRepresentation ¶
type MetricsGroupRepresentation struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Metrics []metric.Metric `json:"metrics"` Actions []metricsgroupaction.GroupActionExecutionStatusResume `json:"actions"` }
type UseCases ¶
type UseCases interface { PeriodValidate(currentPeriod string) (datasourcePKG.Period, errors.Error) Parse(metricsGroup io.ReadCloser) (MetricsGroup, errors.Error) FindAll() ([]MetricsGroup, errors.Error) FindAllByWorkspaceID(workspaceID uuid.UUID) ([]MetricsGroup, errors.Error) ResumeByCircle(circleID string) ([]MetricGroupResume, errors.Error) Save(metricsGroup MetricsGroup) (MetricsGroup, errors.Error) FindByID(id string) (MetricsGroup, errors.Error) Update(id string, metricsGroup MetricsGroup) (MetricsGroup, errors.Error) UpdateName(id string, metricsGroup MetricsGroup) (MetricsGroup, errors.Error) Remove(id string) errors.Error QueryByGroupID(id string, period, interval datasourcePKG.Period) ([]datasourcePKG.MetricValues, errors.Error) ResultByGroup(group MetricsGroup) ([]datasourcePKG.MetricResult, errors.Error) ResultByID(id string) ([]datasourcePKG.MetricResult, errors.Error) ListAllByCircle(circleID string) ([]MetricsGroupRepresentation, errors.Error) Validate(metricsGroup MetricsGroup) errors.ErrorList }
Click to show internal directories.
Click to hide internal directories.