-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_performance_advisor_op_stats.go
184 lines (154 loc) · 5.4 KB
/
model_performance_advisor_op_stats.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
)
// PerformanceAdvisorOpStats Details that this resource returned about the specified query.
type PerformanceAdvisorOpStats struct {
// Length of time expressed during which the query finds suggested indexes among the managed namespaces in the cluster. This parameter expresses its value in milliseconds. This parameter relates to the **duration** query parameter.
// Read only field.
Ms *int64 `json:"ms,omitempty"`
// Number of results that the query returns.
// Read only field.
NReturned *int64 `json:"nReturned,omitempty"`
// Number of documents that the query read.
// Read only field.
NScanned *int64 `json:"nScanned,omitempty"`
// Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). This parameter relates to the **since** query parameter.
// Read only field.
Ts *int64 `json:"ts,omitempty"`
}
// NewPerformanceAdvisorOpStats instantiates a new PerformanceAdvisorOpStats object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewPerformanceAdvisorOpStats() *PerformanceAdvisorOpStats {
this := PerformanceAdvisorOpStats{}
return &this
}
// NewPerformanceAdvisorOpStatsWithDefaults instantiates a new PerformanceAdvisorOpStats object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewPerformanceAdvisorOpStatsWithDefaults() *PerformanceAdvisorOpStats {
this := PerformanceAdvisorOpStats{}
return &this
}
// GetMs returns the Ms field value if set, zero value otherwise
func (o *PerformanceAdvisorOpStats) GetMs() int64 {
if o == nil || IsNil(o.Ms) {
var ret int64
return ret
}
return *o.Ms
}
// GetMsOk returns a tuple with the Ms field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PerformanceAdvisorOpStats) GetMsOk() (*int64, bool) {
if o == nil || IsNil(o.Ms) {
return nil, false
}
return o.Ms, true
}
// HasMs returns a boolean if a field has been set.
func (o *PerformanceAdvisorOpStats) HasMs() bool {
if o != nil && !IsNil(o.Ms) {
return true
}
return false
}
// SetMs gets a reference to the given int64 and assigns it to the Ms field.
func (o *PerformanceAdvisorOpStats) SetMs(v int64) {
o.Ms = &v
}
// GetNReturned returns the NReturned field value if set, zero value otherwise
func (o *PerformanceAdvisorOpStats) GetNReturned() int64 {
if o == nil || IsNil(o.NReturned) {
var ret int64
return ret
}
return *o.NReturned
}
// GetNReturnedOk returns a tuple with the NReturned field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PerformanceAdvisorOpStats) GetNReturnedOk() (*int64, bool) {
if o == nil || IsNil(o.NReturned) {
return nil, false
}
return o.NReturned, true
}
// HasNReturned returns a boolean if a field has been set.
func (o *PerformanceAdvisorOpStats) HasNReturned() bool {
if o != nil && !IsNil(o.NReturned) {
return true
}
return false
}
// SetNReturned gets a reference to the given int64 and assigns it to the NReturned field.
func (o *PerformanceAdvisorOpStats) SetNReturned(v int64) {
o.NReturned = &v
}
// GetNScanned returns the NScanned field value if set, zero value otherwise
func (o *PerformanceAdvisorOpStats) GetNScanned() int64 {
if o == nil || IsNil(o.NScanned) {
var ret int64
return ret
}
return *o.NScanned
}
// GetNScannedOk returns a tuple with the NScanned field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PerformanceAdvisorOpStats) GetNScannedOk() (*int64, bool) {
if o == nil || IsNil(o.NScanned) {
return nil, false
}
return o.NScanned, true
}
// HasNScanned returns a boolean if a field has been set.
func (o *PerformanceAdvisorOpStats) HasNScanned() bool {
if o != nil && !IsNil(o.NScanned) {
return true
}
return false
}
// SetNScanned gets a reference to the given int64 and assigns it to the NScanned field.
func (o *PerformanceAdvisorOpStats) SetNScanned(v int64) {
o.NScanned = &v
}
// GetTs returns the Ts field value if set, zero value otherwise
func (o *PerformanceAdvisorOpStats) GetTs() int64 {
if o == nil || IsNil(o.Ts) {
var ret int64
return ret
}
return *o.Ts
}
// GetTsOk returns a tuple with the Ts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PerformanceAdvisorOpStats) GetTsOk() (*int64, bool) {
if o == nil || IsNil(o.Ts) {
return nil, false
}
return o.Ts, true
}
// HasTs returns a boolean if a field has been set.
func (o *PerformanceAdvisorOpStats) HasTs() bool {
if o != nil && !IsNil(o.Ts) {
return true
}
return false
}
// SetTs gets a reference to the given int64 and assigns it to the Ts field.
func (o *PerformanceAdvisorOpStats) SetTs(v int64) {
o.Ts = &v
}
func (o PerformanceAdvisorOpStats) MarshalJSONWithoutReadOnly() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PerformanceAdvisorOpStats) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
return toSerialize, nil
}