service.xpcool.com/internal/model/entity/server_security_log.go

15 lines
912 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package entity 定义服务器安全日志表结构(手写,未跑 gf gen
package entity
// ServerSecurityLog 服务器安全监控日志(宿主机采集脚本上报)。
type ServerSecurityLog struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
LogTime string `json:"logTime" orm:"log_time" description:"事件发生时间"`
SrcIp string `json:"srcIp" orm:"src_ip" description:"来源IP"`
SrcPort int `json:"srcPort" orm:"src_port" description:"来源端口"`
DestPort int `json:"destPort" orm:"dest_port" description:"目标端口"`
EventType string `json:"eventType" orm:"event_type" description:"事件类型 failed_ssh/accepted_ssh/banned/unbanned"`
Detail string `json:"detail" orm:"detail" description:"日志详情/原文"`
CreatedAt string `json:"createdAt" orm:"created_at" description:"入库时间"`
}