|
@@ -0,0 +1,198 @@
|
|
|
|
+package cdn
|
|
|
|
+
|
|
|
|
+type Request struct {
|
|
|
|
+ Day string `json:"day" form:"day"`
|
|
|
|
+ ServerID int64 `json:"serverId" form:"serverId"`
|
|
|
|
+ Size int64 `json:"size" form:"size"`
|
|
|
|
+ UserID int64 `json:"userId" form:"userId"`
|
|
|
|
+ HasError *bool `json:"hasError" form:"hasError"`
|
|
|
|
+ Ip string `json:"ip" form:"ip"`
|
|
|
|
+ Domain string `json:"domain" form:"domain"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+type Data struct {
|
|
|
|
+ HasMore bool `json:"hasMore"`
|
|
|
|
+ HTTPAccessLogs []HTTPAccessLog `json:"httpAccessLogs"`
|
|
|
|
+ RequestID string `json:"requestId"`
|
|
|
|
+}
|
|
|
|
+type HTTPAccessLog struct {
|
|
|
|
+ BodyBytesSent int64 `json:"bodyBytesSent"`
|
|
|
|
+ BytesSent int64 `json:"bytesSent"`
|
|
|
|
+ ContentType string `json:"contentType"`
|
|
|
|
+ Header Header `json:"header"`
|
|
|
|
+ Host string `json:"host"`
|
|
|
|
+ Hostname string `json:"hostname"`
|
|
|
|
+ Msec float64 `json:"msec"`
|
|
|
|
+ Node Node `json:"node"`
|
|
|
|
+ NodeID int64 `json:"nodeId"`
|
|
|
|
+ OriginAddress string `json:"originAddress"`
|
|
|
|
+ OriginHeaderResponseTime float64 `json:"originHeaderResponseTime"`
|
|
|
|
+ OriginID int64 `json:"originId"`
|
|
|
|
+ OriginStatus int64 `json:"originStatus"`
|
|
|
|
+ Proto string `json:"proto"`
|
|
|
|
+ RawRemoteAddr string `json:"rawRemoteAddr"`
|
|
|
|
+ Referer string `json:"referer"`
|
|
|
|
+ RemoteAddr string `json:"remoteAddr"`
|
|
|
|
+ RemotePort int64 `json:"remotePort"`
|
|
|
|
+ Request string `json:"request"`
|
|
|
|
+ RequestID string `json:"requestId"`
|
|
|
|
+ RequestMethod string `json:"requestMethod"`
|
|
|
|
+ RequestPath string `json:"requestPath"`
|
|
|
|
+ RequestTime float64 `json:"requestTime"`
|
|
|
|
+ RequestURI string `json:"requestURI"`
|
|
|
|
+ Scheme string `json:"scheme"`
|
|
|
|
+ SentHeader SentHeader `json:"sentHeader"`
|
|
|
|
+ ServerID int64 `json:"serverId"`
|
|
|
|
+ ServerName string `json:"serverName"`
|
|
|
|
+ ServerPort int64 `json:"serverPort"`
|
|
|
|
+ ServerProtocol string `json:"serverProtocol"`
|
|
|
|
+ Status int64 `json:"status"`
|
|
|
|
+ Tags []string `json:"tags,omitempty"`
|
|
|
|
+ TimeISO8601 string `json:"timeISO8601"`
|
|
|
|
+ TimeLocal string `json:"timeLocal"`
|
|
|
|
+ Timestamp int64 `json:"timestamp"`
|
|
|
|
+ UserAgent string `json:"userAgent"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Header struct {
|
|
|
|
+ Accept Accept `json:"Accept"`
|
|
|
|
+ AcceptEncoding AcceptEncoding `json:"Accept-Encoding"`
|
|
|
|
+ AcceptLanguage AcceptLanguage `json:"Accept-Language"`
|
|
|
|
+ CacheControl *HeaderCacheControl `json:"Cache-Control,omitempty"`
|
|
|
|
+ Connection Connection `json:"Connection"`
|
|
|
|
+ IfModifiedSince *IfModifiedSince `json:"If-Modified-Since,omitempty"`
|
|
|
|
+ IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
|
|
|
|
+ Referer Referer `json:"Referer"`
|
|
|
|
+ UpgradeInsecureRequests *UpgradeInsecureRequests `json:"Upgrade-Insecure-Requests,omitempty"`
|
|
|
|
+ UserAgent UserAgent `json:"User-Agent"`
|
|
|
|
+ XForwardedBy XForwardedBy `json:"X-Forwarded-By"`
|
|
|
|
+ XForwardedFor XForwardedFor `json:"X-Forwarded-For"`
|
|
|
|
+ XForwardedHost XForwardedHost `json:"X-Forwarded-Host"`
|
|
|
|
+ XForwardedProto XForwardedProto `json:"X-Forwarded-Proto"`
|
|
|
|
+ XRealIP XRealIP `json:"X-Real-IP"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Accept struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type AcceptEncoding struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type AcceptLanguage struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type HeaderCacheControl struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Connection struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type IfModifiedSince struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type IfNoneMatch struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Referer struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type UpgradeInsecureRequests struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type UserAgent struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type XForwardedBy struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type XForwardedFor struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type XForwardedHost struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type XForwardedProto struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type XRealIP struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Node struct {
|
|
|
|
+ ID int64 `json:"id"`
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
+ NodeCluster NodeCluster `json:"nodeCluster"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type NodeCluster struct {
|
|
|
|
+ ID int64 `json:"id"`
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type SentHeader struct {
|
|
|
|
+ AcceptRanges AcceptRanges `json:"Accept-Ranges"`
|
|
|
|
+ CacheControl SentHeaderCacheControl `json:"Cache-Control"`
|
|
|
|
+ ContentLength ContentLength `json:"Content-Length"`
|
|
|
|
+ ContentType ContentType `json:"Content-Type"`
|
|
|
|
+ Date Date `json:"Date"`
|
|
|
|
+ Etag Etag `json:"Etag"`
|
|
|
|
+ Expires Expires `json:"Expires"`
|
|
|
|
+ LastModified LastModified `json:"Last-Modified"`
|
|
|
|
+ Location *Location `json:"Location,omitempty"`
|
|
|
|
+ Server Server `json:"Server"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type AcceptRanges struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type SentHeaderCacheControl struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type ContentLength struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type ContentType struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Date struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Etag struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Expires struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type LastModified struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Location struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Server struct {
|
|
|
|
+ Values []string `json:"values"`
|
|
|
|
+}
|