Documentation
¶
Index ¶
- type Alert
- type AlertDetail
- type AlertsResponse
- type AssetsResponse
- type PlaywrightTianqing
- func (pt *PlaywrightTianqing) Close()
- func (pt *PlaywrightTianqing) GetAlertDetails(alertid string) (*AlertDetail, error)
- func (pt *PlaywrightTianqing) GetAlerts() (*AlertsResponse, error)
- func (pt *PlaywrightTianqing) GetAssets() (*AssetsResponse, error)
- func (pt *PlaywrightTianqing) Login()
- func (pt *PlaywrightTianqing) Query(query string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
AlertID string `json:"alertId"` // 告警ID
AlertTime string `json:"alertTime"` // 告警时间 (改用string接收避免格式解析异常)
AlertType string `json:"alertType"` // 告警类型
AlertDesc string `json:"alertDesc"` // 告警描述
ClientIP string `json:"clientIp"` // 客户端IP
ClientName string `json:"clientName"` // 客户端名称
ClientMac string `json:"clientMac"` // 客户端MAC地址
OSVersion string `json:"osVersion"` // 操作系统版本
GroupName string `json:"groupName"` // 资产分组名称
Severity string `json:"severity"` // 威胁级别 (可能是数字或者字符串)
Status string `json:"status"` // 状态 (New/Investigating/Resolved)
AlertName string `json:"alertName"` // 告警名称
}
Alert represents the alert data structure
type AlertDetail ¶
type AlertsResponse ¶
type AlertsResponse struct {
Total int `json:"total"` // 总告警数量
Pages int `json:"pages"` // 总页数
Alerts []Alert `json:"alerts"` // 告警列表
}
AlertsResponse is the full response from the script
type AssetsResponse ¶
type PlaywrightTianqing ¶
type PlaywrightTianqing struct {
// contains filtered or unexported fields
}
func NewPlaywrightTianqing ¶
func NewPlaywrightTianqing() (*PlaywrightTianqing, error)
func (*PlaywrightTianqing) Close ¶ added in v0.0.2
func (pt *PlaywrightTianqing) Close()
func (*PlaywrightTianqing) GetAlertDetails ¶
func (pt *PlaywrightTianqing) GetAlertDetails(alertid string) (*AlertDetail, error)
func (*PlaywrightTianqing) GetAlerts ¶
func (pt *PlaywrightTianqing) GetAlerts() (*AlertsResponse, error)
func (*PlaywrightTianqing) GetAssets ¶
func (pt *PlaywrightTianqing) GetAssets() (*AssetsResponse, error)
func (*PlaywrightTianqing) Login ¶
func (pt *PlaywrightTianqing) Login()
Click to show internal directories.
Click to hide internal directories.