Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlertsData ¶
type Client ¶
type Client interface {
ListCases(ctx context.Context, req *ListCasesReq) (*ListCasesRes, error)
ListAlerts(ctx context.Context, req *ListAlertsReq) (*ListAlertsRes, error)
}
type ListAlertsReq ¶
type ListAlertsReq struct {
Page int `url:"page"`
PerPage *int `url:"per_page,omitempty"`
Sort *string `url:"sort,omitempty"`
AlertIDs IntList `url:"alert_ids,omitempty"`
AlertTags StringList `url:"alert_tags,omitempty"`
AlertSource *string `url:"alert_source,omitempty"`
CaseID *int `url:"case_id,omitempty"`
AlertOwnerID *int `url:"alert_owner_id,omitempty"`
AlertStatusID *int `url:"alert_status_id,omitempty"`
AlertSeverityID *int `url:"alert_severity_id,omitempty"`
AlertClassificationID *int `url:"alert_classification_id,omitempty"`
AlertCustomerID *int `url:"alert_customer_id,omitempty"`
AlertStartDate *string `url:"alert_start_date,omitempty"`
AlertEndDate *string `url:"alert_end_date,omitempty"`
}
type ListAlertsRes ¶
type ListAlertsRes struct {
Status string `json:"status"`
Message string `json:"message"`
Data *AlertsData `json:"data"`
}
type ListCasesReq ¶
type ListCasesReq struct {
Page int `url:"page"`
PerPage *int `url:"per_page,omitempty"`
CaseIDs IntList `url:"case_ids,omitempty"`
CaseCustomerID *int `url:"case_customer_id,omitempty"`
CaseOwnerID *int `url:"case_owner_id,omitempty"`
CaseSeverityID *int `url:"case_severity_id,omitempty"`
CaseStateID *int `url:"case_state_id,omitempty"`
CaseSocID *string `url:"case_soc_id,omitempty"`
Sort *string `url:"sort,omitempty"`
StartOpenDate *string `url:"start_open_date,omitempty"`
EndOpenDate *string `url:"end_open_date,omitempty"`
}
type ListCasesRes ¶
type StringList ¶
type StringList []string
func (StringList) EncodeValues ¶
func (list StringList) EncodeValues(key string, v *url.Values) error
Click to show internal directories.
Click to hide internal directories.