Documentation
¶
Index ¶
- type CreateAlertRule
- type CreateAlertRuleInput
- type CreateAlertRuleOutput
- type DeleteAlertRule
- type DeleteAlertRuleInput
- type GetAlertRule
- type GetAlertRuleInput
- type GetAlertRuleOutput
- type GetDashboard
- type GetDashboardOption
- type GetDashboardOutput
- type ListAlertRules
- type ListAlertRulesOutput
- type ListAlerts
- type ListAlertsOutput
- type UpdateAlertRule
- type UpdateAlertRuleInput
- type UpdateAlertRuleOutput
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 ¶
func (uc *CreateAlertRule) Execute(ctx context.Context, input CreateAlertRuleInput) (*CreateAlertRuleOutput, error)
type CreateAlertRuleInput ¶
type CreateAlertRuleOutput ¶
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 ¶
func (uc *GetAlertRule) Execute(ctx context.Context, input GetAlertRuleInput) (*GetAlertRuleOutput, error)
type GetAlertRuleInput ¶
type GetAlertRuleInput struct {
ID string
}
type GetAlertRuleOutput ¶
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 ¶
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 ¶
func (uc *ListAlertRules) Execute(ctx context.Context) (*ListAlertRulesOutput, error)
type ListAlertRulesOutput ¶
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 UpdateAlertRule ¶
type UpdateAlertRule struct {
// contains filtered or unexported fields
}
func NewUpdateAlertRule ¶
func NewUpdateAlertRule(alertRuleRepo port.AlertRuleRepository) *UpdateAlertRule
func (*UpdateAlertRule) Execute ¶
func (uc *UpdateAlertRule) Execute(ctx context.Context, input UpdateAlertRuleInput) (*UpdateAlertRuleOutput, error)
type UpdateAlertRuleInput ¶
type UpdateAlertRuleOutput ¶
Click to show internal directories.
Click to hide internal directories.