11/*
2- * Copyright (c) 2021, Oracle and/or its affiliates.
2+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates.
33 * Licensed under the Universal Permissive License v 1.0 as shown at
44 * https://oss.oracle.com/licenses/upl.
55 */
@@ -20,6 +20,7 @@ type Cluster struct {
2020 MembersDepartureCount int `json:"membersDepartureCount"`
2121}
2222
23+ // Members contains an array of member objects
2324type Members struct {
2425 Members []Member `json:"items"`
2526}
@@ -39,11 +40,12 @@ type Executor struct {
3940 TraceLogging bool `json:"traceLogging"`
4041}
4142
43+ // Executors contains multiple Executor objects
4244type Executors struct {
4345 Executors []Executor `json:"items"`
4446}
4547
46- // Member describes an individual members output
48+ // Member contains an individual members output
4749type Member struct {
4850 NodeID string `json:"nodeId"`
4951 UnicastAddress string `json:"unicastAddress"`
@@ -60,12 +62,12 @@ type Member struct {
6062 PublisherSuccessRate float32 `json:"publisherSuccessRate"`
6163}
6264
63- // ProxiesSummary provides a summary of individual proxy servers
65+ // ProxiesSummary contains a summary of individual proxy servers
6466type ProxiesSummary struct {
6567 Proxies []ProxySummary `json:"items"`
6668}
6769
68- // ProxySummary describes proxy server summary
70+ // ProxySummary contains proxy server summary details
6971type ProxySummary struct {
7072 HostIP string `json:"hostIP"`
7173 NodeID string `json:"nodeId"`
@@ -91,11 +93,12 @@ type ProxySummary struct {
9193 ResponseCount5xx int64 `json:"responseCount5xx"`
9294}
9395
96+ // HTTPSessionSummaries contains an array of Coherence*Web Sessions
9497type HTTPSessionSummaries struct {
9598 HTTPSessions []HTTPSessionSummary `json:"items"`
9699}
97100
98- // HTTPSessionSummary provides a summary of Coherence*Web Sessions
101+ // HTTPSessionSummary contains a summary of Coherence*Web Sessions
99102type HTTPSessionSummary struct {
100103 NodeID string `json:"nodeId"`
101104 AppID string `json:"appId"`
@@ -115,11 +118,12 @@ type HTTPSessionSummary struct {
115118 MemberCount int32
116119}
117120
121+ // ServicesSummaries contains an array of ServiceSummary
118122type ServicesSummaries struct {
119123 Services []ServiceSummary `json:"items"`
120124}
121125
122- // ServiceSummary provides a summary of individual services
126+ // ServiceSummary contains a summary of individual services
123127type ServiceSummary struct {
124128 NodeID string `json:"nodeId"`
125129 ServiceName string `json:"name"`
@@ -148,6 +152,7 @@ type ServiceSummary struct {
148152 Idle bool
149153}
150154
155+ // StatsSummary contains statistics summaries
151156type StatsSummary struct {
152157 Count int64 `json:"count"`
153158 Average float64 `json:"average"`
@@ -156,10 +161,12 @@ type StatsSummary struct {
156161 Sum float64 `json:"sum"`
157162}
158163
164+ // FederationSummaries contains an array of FederationSummary
159165type FederationSummaries struct {
160166 Services []FederationSummary `json:"items"`
161167}
162168
169+ // FederationSummary contains Federation summary details for a service and participant
163170type FederationSummary struct {
164171 ServiceName string `json:"serviceName"`
165172 ParticipantName string `json:"participantName"`
@@ -181,11 +188,12 @@ type FederationSummary struct {
181188 CurrentConnectionCount StatsSummary `json:"currentConnectionCount"`
182189}
183190
184- // ServiceMemberDetails provides service members details
191+ // ServiceMemberDetails contains service members details
185192type ServiceMemberDetails struct {
186193 Services []ServiceMemberDetail `json:"items"`
187194}
188195
196+ // ServiceMemberDetail contains details about a service and node
189197type ServiceMemberDetail struct {
190198 NodeID string `json:"nodeId"`
191199 ThreadCount int32 `json:"threadCount"`
@@ -200,11 +208,12 @@ type ServiceMemberDetail struct {
200208 TaskAverageDuration float32 `json:"taskAverageDuration"`
201209}
202210
203- // CacheSummaries provides cache summary details
211+ // CacheSummaries contains cache summary details
204212type CacheSummaries struct {
205213 Caches []CacheSummaryDetail `json:"items"`
206214}
207215
216+ // CacheSummaryDetail contains a summary of cache details
208217type CacheSummaryDetail struct {
209218 ServiceName string `json:"service"`
210219 CacheName string `json:"name"`
@@ -217,11 +226,12 @@ type CacheSummaryDetail struct {
217226 CacheMisses int64 `json:"cacheMisses"`
218227}
219228
220- // CacheDetails provides cache details
229+ // CacheDetails contains cache details
221230type CacheDetails struct {
222231 Details []CacheDetail `json:"items"`
223232}
224233
234+ // CacheDetail contains individual cache details for a cache, tier and node
225235type CacheDetail struct {
226236 NodeID string `json:"nodeId"`
227237 Tier string `json:"tier"`
@@ -248,19 +258,20 @@ type CacheDetail struct {
248258 IndexInfo []string `json:"indexInfo"`
249259}
250260
251- // GenericDetails are a slice of generic Json structures
261+ // GenericDetails contains a slice of generic Json structures
252262type GenericDetails struct {
253263 Details []interface {} `json:"items"`
254264}
255265
266+ // PersistenceCoordinator contains details about a persistence coordinator
256267type PersistenceCoordinator struct {
257268 Idle bool `json:"idle"`
258269 OperationStatus string `json:"operationStatus"`
259270 Snapshots []string `json:"snapshots"`
260271 CoordinatorNodeID int32 `json:"coordinatorId"`
261272}
262273
263- // Machine provides machine details
274+ // Machine contains machine details
264275type Machine struct {
265276 MachineName string `json:"operationStatus"`
266277 AvailableProcessors int32 `json:"availableProcessors"`
@@ -273,11 +284,12 @@ type Machine struct {
273284 Version string `json:"version"`
274285}
275286
276- // Reporters provides reporter details
287+ // Reporters contains reporter details
277288type Reporters struct {
278289 Reporters []Reporter `json:"items"`
279290}
280291
292+ // Reporter contains individual node reporter details
281293type Reporter struct {
282294 NodeID string `json:"nodeId"`
283295 State string `json:"state"`
@@ -290,11 +302,12 @@ type Reporter struct {
290302 AutoStart bool `json:"autoStart"`
291303}
292304
293- // ElasticDataValues provides elastic data details
305+ // ElasticDataValues contains elastic data details
294306type ElasticDataValues struct {
295307 ElasticData []ElasticData `json:"items"`
296308}
297309
310+ // ElasticData contains elastic data information for a node and type
298311type ElasticData struct {
299312 NodeID string `json:"nodeId"`
300313 Name string `json:"name"`
@@ -309,36 +322,39 @@ type ElasticData struct {
309322 TotalDataSize int64 `json:"totalDataSize"`
310323}
311324
312- // Links describe any links returned via HTTP
325+ // Links contains any links returned via HTTP
313326type Links struct {
314327 Links []Link `json:"links"`
315328}
316329
330+ // Link contains link details
317331type Link struct {
318332 Rel string `json:"rel"`
319333 Href string `json:"href"`
320334}
321335
336+ // ItemLinks contains links for an item
322337type ItemLinks struct {
323338 Links []Links `json:"items"`
324339}
325340
326- // Snapshots describe snapshots for services
341+ // Snapshots contains snapshots for services
327342type Snapshots struct {
328343 ServiceName string `json:"serviceName"`
329344 Snapshots []string `json:"snapshots"`
330345}
331346
347+ // Archives contains arthived snapshots
332348type Archives struct {
333349 Snapshots []string `json:"archives"`
334350}
335351
336- // StatusValues is a JFR status result
352+ // StatusValues contains JFR status result
337353type StatusValues struct {
338354 Status []string `json:"status"`
339355}
340356
341- // SingleStatusValue is a single JFR status result
357+ // SingleStatusValue contains a single JFR status result
342358type SingleStatusValue struct {
343359 Status string `json:"status"`
344360}
0 commit comments