usecase

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAlertRule

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

func NewCreateAlertRule

func NewCreateAlertRule(alertRuleRepo port.AlertRuleRepository) *CreateAlertRule

func (*CreateAlertRule) Execute

type CreateAlertRuleInput

type CreateAlertRuleInput struct {
	Name              string
	MetricName        string
	WarningThreshold  float64
	CriticalThreshold float64
	Channel           domain.AlertChannel
	Enabled           bool
}

type CreateAlertRuleOutput

type CreateAlertRuleOutput struct {
	Rule *domain.AlertRule
}

type DeleteAlertRule

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

func NewDeleteAlertRule

func NewDeleteAlertRule(alertRuleRepo port.AlertRuleRepository) *DeleteAlertRule

func (*DeleteAlertRule) Execute

func (uc *DeleteAlertRule) Execute(ctx context.Context, input DeleteAlertRuleInput) error

type DeleteAlertRuleInput

type DeleteAlertRuleInput struct {
	ID string
}

type GetAlertRule

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

func NewGetAlertRule

func NewGetAlertRule(alertRuleRepo port.AlertRuleRepository) *GetAlertRule

func (*GetAlertRule) Execute

type GetAlertRuleInput

type GetAlertRuleInput struct {
	ID string
}

type GetAlertRuleOutput

type GetAlertRuleOutput struct {
	Rule *domain.AlertRule
}

type GetDashboard

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

GetDashboard retrieves the platform observability dashboard.

func NewGetDashboard

func NewGetDashboard(dashboardRepo port.DashboardRepository, opts ...GetDashboardOption) *GetDashboard

NewGetDashboard constructs a GetDashboard use case.

func (*GetDashboard) Execute

func (uc *GetDashboard) Execute(ctx context.Context, orgID string) (*GetDashboardOutput, error)

Execute returns the current dashboard data for the organization.

type GetDashboardOption

type GetDashboardOption func(*GetDashboard)

GetDashboardOption configures optional GetDashboard collaborators.

func WithToolHealth

func WithToolHealth(repo port.ToolHealthRepository) GetDashboardOption

WithToolHealth supplies live OSS health. Without it the dashboard reports whatever tool health the dashboard repository carries (the simulated fallback).

type GetDashboardOutput

type GetDashboardOutput struct {
	Dashboard *domain.Dashboard
}

GetDashboardOutput holds the result of the GetDashboard use case.

type ListAlertRules

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

func NewListAlertRules

func NewListAlertRules(alertRuleRepo port.AlertRuleRepository) *ListAlertRules

func (*ListAlertRules) Execute

type ListAlertRulesOutput

type ListAlertRulesOutput struct {
	Rules []*domain.AlertRule
}

type ListAlerts

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

func NewListAlerts

func NewListAlerts(alertRepo port.AlertRepository) *ListAlerts

func (*ListAlerts) Execute

func (uc *ListAlerts) Execute(ctx context.Context) (*ListAlertsOutput, error)

type ListAlertsOutput

type ListAlertsOutput struct {
	Alerts []*domain.Alert
}

type UpdateAlertRule

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

func NewUpdateAlertRule

func NewUpdateAlertRule(alertRuleRepo port.AlertRuleRepository) *UpdateAlertRule

func (*UpdateAlertRule) Execute

type UpdateAlertRuleInput

type UpdateAlertRuleInput struct {
	ID                string
	Name              *string
	MetricName        *string
	WarningThreshold  *float64
	CriticalThreshold *float64
	Channel           *domain.AlertChannel
	Enabled           *bool
}

type UpdateAlertRuleOutput

type UpdateAlertRuleOutput struct {
	Rule *domain.AlertRule
}

Jump to

Keyboard shortcuts

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