-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_cloud_search_metrics.go
240 lines (202 loc) · 7.01 KB
/
model_cloud_search_metrics.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
)
// CloudSearchMetrics struct for CloudSearchMetrics
type CloudSearchMetrics struct {
// Unique 24-hexadecimal digit string that identifies the project.
// Read only field.
GroupId string `json:"groupId"`
// List that contains all host compute, memory, and storage utilization dedicated to Atlas Search when MongoDB Atlas received this request.
// Read only field.
HardwareMetrics *[]FTSMetric `json:"hardwareMetrics,omitempty"`
// List that contains all performance and utilization measurements that Atlas Search index performed by the time MongoDB Atlas received this request.
// Read only field.
IndexMetrics *[]FTSMetric `json:"indexMetrics,omitempty"`
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.
// Read only field.
Links *[]Link `json:"links,omitempty"`
// Hostname and port that identifies the process.
// Read only field.
ProcessId string `json:"processId"`
// List that contains all available Atlas Search status metrics when MongoDB Atlas received this request.
// Read only field.
StatusMetrics *[]FTSMetric `json:"statusMetrics,omitempty"`
}
// NewCloudSearchMetrics instantiates a new CloudSearchMetrics 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 NewCloudSearchMetrics(groupId string, processId string) *CloudSearchMetrics {
this := CloudSearchMetrics{}
this.GroupId = groupId
this.ProcessId = processId
return &this
}
// NewCloudSearchMetricsWithDefaults instantiates a new CloudSearchMetrics 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 NewCloudSearchMetricsWithDefaults() *CloudSearchMetrics {
this := CloudSearchMetrics{}
return &this
}
// GetGroupId returns the GroupId field value
func (o *CloudSearchMetrics) GetGroupId() string {
if o == nil {
var ret string
return ret
}
return o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value
// and a boolean to check if the value has been set.
func (o *CloudSearchMetrics) GetGroupIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.GroupId, true
}
// SetGroupId sets field value
func (o *CloudSearchMetrics) SetGroupId(v string) {
o.GroupId = v
}
// GetHardwareMetrics returns the HardwareMetrics field value if set, zero value otherwise
func (o *CloudSearchMetrics) GetHardwareMetrics() []FTSMetric {
if o == nil || IsNil(o.HardwareMetrics) {
var ret []FTSMetric
return ret
}
return *o.HardwareMetrics
}
// GetHardwareMetricsOk returns a tuple with the HardwareMetrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudSearchMetrics) GetHardwareMetricsOk() (*[]FTSMetric, bool) {
if o == nil || IsNil(o.HardwareMetrics) {
return nil, false
}
return o.HardwareMetrics, true
}
// HasHardwareMetrics returns a boolean if a field has been set.
func (o *CloudSearchMetrics) HasHardwareMetrics() bool {
if o != nil && !IsNil(o.HardwareMetrics) {
return true
}
return false
}
// SetHardwareMetrics gets a reference to the given []FTSMetric and assigns it to the HardwareMetrics field.
func (o *CloudSearchMetrics) SetHardwareMetrics(v []FTSMetric) {
o.HardwareMetrics = &v
}
// GetIndexMetrics returns the IndexMetrics field value if set, zero value otherwise
func (o *CloudSearchMetrics) GetIndexMetrics() []FTSMetric {
if o == nil || IsNil(o.IndexMetrics) {
var ret []FTSMetric
return ret
}
return *o.IndexMetrics
}
// GetIndexMetricsOk returns a tuple with the IndexMetrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudSearchMetrics) GetIndexMetricsOk() (*[]FTSMetric, bool) {
if o == nil || IsNil(o.IndexMetrics) {
return nil, false
}
return o.IndexMetrics, true
}
// HasIndexMetrics returns a boolean if a field has been set.
func (o *CloudSearchMetrics) HasIndexMetrics() bool {
if o != nil && !IsNil(o.IndexMetrics) {
return true
}
return false
}
// SetIndexMetrics gets a reference to the given []FTSMetric and assigns it to the IndexMetrics field.
func (o *CloudSearchMetrics) SetIndexMetrics(v []FTSMetric) {
o.IndexMetrics = &v
}
// GetLinks returns the Links field value if set, zero value otherwise
func (o *CloudSearchMetrics) GetLinks() []Link {
if o == nil || IsNil(o.Links) {
var ret []Link
return ret
}
return *o.Links
}
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudSearchMetrics) GetLinksOk() (*[]Link, bool) {
if o == nil || IsNil(o.Links) {
return nil, false
}
return o.Links, true
}
// HasLinks returns a boolean if a field has been set.
func (o *CloudSearchMetrics) HasLinks() bool {
if o != nil && !IsNil(o.Links) {
return true
}
return false
}
// SetLinks gets a reference to the given []Link and assigns it to the Links field.
func (o *CloudSearchMetrics) SetLinks(v []Link) {
o.Links = &v
}
// GetProcessId returns the ProcessId field value
func (o *CloudSearchMetrics) GetProcessId() string {
if o == nil {
var ret string
return ret
}
return o.ProcessId
}
// GetProcessIdOk returns a tuple with the ProcessId field value
// and a boolean to check if the value has been set.
func (o *CloudSearchMetrics) GetProcessIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ProcessId, true
}
// SetProcessId sets field value
func (o *CloudSearchMetrics) SetProcessId(v string) {
o.ProcessId = v
}
// GetStatusMetrics returns the StatusMetrics field value if set, zero value otherwise
func (o *CloudSearchMetrics) GetStatusMetrics() []FTSMetric {
if o == nil || IsNil(o.StatusMetrics) {
var ret []FTSMetric
return ret
}
return *o.StatusMetrics
}
// GetStatusMetricsOk returns a tuple with the StatusMetrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudSearchMetrics) GetStatusMetricsOk() (*[]FTSMetric, bool) {
if o == nil || IsNil(o.StatusMetrics) {
return nil, false
}
return o.StatusMetrics, true
}
// HasStatusMetrics returns a boolean if a field has been set.
func (o *CloudSearchMetrics) HasStatusMetrics() bool {
if o != nil && !IsNil(o.StatusMetrics) {
return true
}
return false
}
// SetStatusMetrics gets a reference to the given []FTSMetric and assigns it to the StatusMetrics field.
func (o *CloudSearchMetrics) SetStatusMetrics(v []FTSMetric) {
o.StatusMetrics = &v
}
func (o CloudSearchMetrics) MarshalJSONWithoutReadOnly() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CloudSearchMetrics) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
return toSerialize, nil
}