-
Notifications
You must be signed in to change notification settings - Fork 265
/
Copy pathapi_firewall.go
69 lines (59 loc) · 1.66 KB
/
api_firewall.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* @Copyright Reserved By Janusec (https://www.janusec.com/).
* @Author: U2
* @Date: 2018-07-14 16:39:15
* @Last Modified: U2, 2018-07-14 16:39:15
*/
package models
type APIGroupPolicyRequest struct {
Action string `json:"action"`
Object *GroupPolicy `json:"object"`
}
type APICCPolicyRequest struct {
Action string `json:"action"`
Object *CCPolicy `json:"object"`
}
type APIIPPolicyRequest struct {
Action string `json:"action"`
Object *IPPolicy `json:"object"`
}
// APIRegexMatchRequest for Regex Match Test
type APIRegexMatchRequest struct {
Action string `json:"action"`
Object *RegexMatch `json:"object"`
}
type APIStatCountRequest struct {
Action string `json:"action"`
AppID int64 `json:"app_id,string"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
Count int64 `json:"count"`
}
type HitLogsRequest struct {
AppID int64 `json:"app_id,string"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
RequestCount int64 `json:"request_count"`
Offset int64 `json:"offset"`
}
type APIHitLogsRequest struct {
Action string `json:"action"`
AppID int64 `json:"app_id,string"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
RequestCount int64 `json:"request_count"`
Offset int64 `json:"offset"`
}
/*
type WeekStat struct {
AppID int64 `json:"app_id,string"`
VulnID int64 `json:"vuln_id"`
StartTime int64 `json:"start_time"`
}
*/
type APIWeekStatRequest struct {
Action string `json:"action"`
AppID int64 `json:"app_id,string"`
VulnID int64 `json:"vuln_id"`
StartTime int64 `json:"start_time"`
}