Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffectedDevicesResponse ¶
type AffectedDevicesResponse struct { Devices []Device `json:"devices"` NextOffset string `json:"next_offset"` }
func GetAffectedDevices ¶
func GetAffectedDevices(ctx context.Context, service *services.Service, alertID string, filters common.GetFromToFilters) (*AffectedDevicesResponse, *http.Response, error)
GetAffectedDevices retrieves the affected devices for a specific alert by ID
type Alert ¶
type Alert struct { ID int `json:"id"` RuleName string `json:"rule_name,omitempty"` Severity string `json:"severity,omitempty"` AlertType string `json:"alert_type,omitempty"` AlertStatus string `json:"alert_status,omitempty"` NumGeolocations int `json:"num_geolocations,omitempty"` NumDevices int `json:"num_devices,omitempty"` StartedOn int `json:"started_on,omitempty"` EndedOn int `json:"ended_on,omitempty"` Application Application `json:"application,omitempty"` Departments []Department `json:"departments,omitempty"` Locations []Location `json:"locations,omitempty"` Geolocations []Geolocation `json:"geolocations,omitempty"` }
type AlertsResponse ¶
type AlertsResponse struct { Alerts []Alert `json:"alerts"` NextOffset string `json:"next_offset"` }
func GetHistoricalAlerts ¶
func GetHistoricalAlerts(ctx context.Context, service *services.Service, filters common.GetFromToFilters) (*AlertsResponse, *http.Response, error)
GetHistoricalAlerts retrieves historical alerts Gets the list of alert history rules defined across an organization. All alert history rules are returned if the search filter is not specified. The default is set to the previous 2 hours. Alert history rules have an Ended On date. The Ended On date is used to pull alerts in conjunction with the provided filters. Cannot exceed the 14-day time range limit for alert rules.
func GetOngoingAlerts ¶
func GetOngoingAlerts(ctx context.Context, service *services.Service, filters common.GetFromToFilters) (*AlertsResponse, *http.Response, error)
GetOngoingAlerts retrieves ongoing alerts with optional filters
type Application ¶
type Department ¶
type Geolocation ¶
Click to show internal directories.
Click to hide internal directories.