-
Notifications
You must be signed in to change notification settings - Fork 13
/
apiusagerow.go
70 lines (42 loc) · 1.9 KB
/
apiusagerow.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
70
package platformclientv2
import (
"time"
"encoding/json"
"strconv"
"strings"
)
// Apiusagerow
type Apiusagerow struct {
// ClientId - Client Id associated with this query result
ClientId *string `json:"clientId,omitempty"`
// ClientName - Client Name associated with this query result
ClientName *string `json:"clientName,omitempty"`
// OrganizationId - Organization Id associated with this query result
OrganizationId *string `json:"organizationId,omitempty"`
// UserId - User Id associated with this query result
UserId *string `json:"userId,omitempty"`
// TemplateUri - Template Uri associated with this query result
TemplateUri *string `json:"templateUri,omitempty"`
// HttpMethod - HTTP Method associated with this query result
HttpMethod *string `json:"httpMethod,omitempty"`
// Status200 - Number of requests resulting in a 2xx HTTP status code
Status200 *int `json:"status200,omitempty"`
// Status300 - Number of requests resulting in a 3xx HTTP status code
Status300 *int `json:"status300,omitempty"`
// Status400 - Number of requests resulting in a 4xx HTTP status code
Status400 *int `json:"status400,omitempty"`
// Status500 - Number of requests resulting in a 5xx HTTP status code
Status500 *int `json:"status500,omitempty"`
// Status429 - Number of requests resulting in a 429 HTTP status code, this is a subset of the count returned with status400
Status429 *int `json:"status429,omitempty"`
// Requests - Total number of requests
Requests *int `json:"requests,omitempty"`
// Date - Date of requests, based on granularity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
Date *time.Time `json:"date,omitempty"`
}
// String returns a JSON representation of the model
func (o *Apiusagerow) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}