Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) ActiveIncidentExists(ctx context.Context, releaseName, namespace string) (bool, error)
- func (c *Client) AddEventToIncident(ctx context.Context, incidentID string, event *models.PodEvent, ...) error
- func (c *Client) AddLogs(ctx context.Context, incidentID, strLogs string) (string, error)
- func (c *Client) AppendToNotifyWorkQueue(ctx context.Context, packed []byte) error
- func (c *Client) CreateActiveIncident(ctx context.Context, releaseName, namespace string) (string, error)
- func (c *Client) DuplicateLogs(ctx context.Context, incidentID, strLogs string) (bool, error)
- func (c *Client) GetActiveIncident(ctx context.Context, releaseName, namespace string) (string, error)
- func (c *Client) GetAgentCreationTimestamp(ctx context.Context) (int64, error)
- func (c *Client) GetAllActiveIncidents(ctx context.Context) ([]string, error)
- func (c *Client) GetAllIncidents(ctx context.Context) ([]string, error)
- func (c *Client) GetIncidentDetails(ctx context.Context, incidentID string) (*models.Incident, error)
- func (c *Client) GetIncidentEventsByID(ctx context.Context, incidentID string) ([]*models.PodEvent, error)
- func (c *Client) GetIncidentsByReleaseNamespace(ctx context.Context, releaseName, namespace string) ([]string, error)
- func (c *Client) GetItemFromPendingQueue(ctx context.Context) ([]byte, float64, error)
- func (c *Client) GetLatestEventForIncident(ctx context.Context, incidentID string) (*models.PodEvent, error)
- func (c *Client) GetLogs(ctx context.Context, logID string) (string, error)
- func (c *Client) GetPodsForIncident(ctx context.Context, incidentID string) ([]string, error)
- func (c *Client) IncidentExists(ctx context.Context, incident string) (bool, error)
- func (c *Client) IsFirstRun(ctx context.Context) (bool, error)
- func (c *Client) IsIncidentResolved(ctx context.Context, incidentID string) (bool, error)
- func (c *Client) RequeueItemWithScore(ctx context.Context, packed []byte, score float64) error
- func (c *Client) SetAgentCreationTimestamp(ctx context.Context) error
- func (c *Client) SetJobIncidentResolved(ctx context.Context, incidentID string) error
- func (c *Client) SetPodResolved(ctx context.Context, podName, incidentID string) error
Constants ¶
View Source
const (
PODSTORE = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a redis client that also holds the value for max log enteries to hold for each pod
func (*Client) ActiveIncidentExists ¶
func (*Client) AddEventToIncident ¶
func (*Client) AppendToNotifyWorkQueue ¶
func (*Client) CreateActiveIncident ¶
func (*Client) DuplicateLogs ¶
func (*Client) GetActiveIncident ¶
func (*Client) GetAgentCreationTimestamp ¶
func (*Client) GetAllActiveIncidents ¶ added in v1.4.0
func (*Client) GetAllIncidents ¶
func (*Client) GetIncidentDetails ¶
func (*Client) GetIncidentEventsByID ¶
func (*Client) GetIncidentsByReleaseNamespace ¶
func (*Client) GetItemFromPendingQueue ¶
func (*Client) GetLatestEventForIncident ¶
func (*Client) GetPodsForIncident ¶ added in v1.4.0
func (*Client) IncidentExists ¶
func (*Client) IsIncidentResolved ¶
func (*Client) RequeueItemWithScore ¶
func (*Client) SetAgentCreationTimestamp ¶
func (*Client) SetJobIncidentResolved ¶
Click to show internal directories.
Click to hide internal directories.