-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmetrics_types.go
1933 lines (1415 loc) · 71.8 KB
/
metrics_types.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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
*
* Copyright © 2020-2024 Dell Inc. or its subsidiaries. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package gopowerstore
import "github.com/go-openapi/strfmt"
// CopySessionTypeEnum is a copy session type
type CopySessionTypeEnum string
/*
Intervals of which metrics can be provided
Enum:
[ Twenty_Sec, Five_Mins, One_Hour, One_Day ]
*/
type MetricsIntervalEnum string
const (
// TwentySec is an interval used when retrieving metrics
TwentySec MetricsIntervalEnum = "Twenty_Sec"
// FiveMins is an interval used when retrieving metrics
FiveMins MetricsIntervalEnum = "Five_Mins"
// OneHour is an interval used when retrieving metrics
OneHour MetricsIntervalEnum = "One_Hour"
// OneDay is an interval used when retrieving metrics
OneDay MetricsIntervalEnum = "One_Day"
)
// MetricsRequest parameters to make metrics request
type MetricsRequest struct {
Entity string `json:"entity"`
EntityID string `json:"entity_id"`
Interval string `json:"interval"`
}
// ApplianceMetrics is returned by space_metrics_by_appliance metrics request
type ApplianceMetrics struct {
// Unique identifier of the appliance.
ApplianceID string `json:"appliance_id"`
// Total amount of space
PhysicalTotal int64 `json:"physical_total"`
// Amount of space currently used
PhysicalUsed int64 `json:"physical_used"`
}
// CommonMetricsFields contains fields common across all metrics responses
type CommonMetricsFields struct {
Entity string `json:"entity,omitempty"`
// Number of times the metrics is repeated.
// Maximum: 2.147483647e+09
// Minimum: 0
RepeatCount *int32 `json:"repeat_count,omitempty"`
// End of sample period.
// Format: date-time
Timestamp strfmt.DateTime `json:"timestamp,omitempty"`
}
// CommonMaxAvgIopsBandwidthFields contains common fiels for max/avg I/O, latency, size, and bandwith fields for metrics responses
type CommonMaxAvgIopsBandwidthFields struct {
// Maximum average size of input and output operations in bytes.
MaxAvgIoSize float32 `json:"max_avg_io_size,omitempty"`
// Maximum of average latency in microseconds.
MaxAvgLatency float32 `json:"max_avg_latency,omitempty"`
// Maximum read latency in microseconds.
MaxAvgReadLatency float32 `json:"max_avg_read_latency,omitempty"`
// Maximum of average read size in bytes.
MaxAvgReadSize float32 `json:"max_avg_read_size,omitempty"`
// Maximum of average write latency in microseconds.
MaxAvgWriteLatency float32 `json:"max_avg_write_latency,omitempty"`
// Maximum of average write size in bytes.
MaxAvgWriteSize float32 `json:"max_avg_write_size,omitempty"`
// Maximum read bandwidth in bytes per second.
MaxReadBandwidth float32 `json:"max_read_bandwidth,omitempty"`
// Maximum reads per second.
MaxReadIops float32 `json:"max_read_iops,omitempty"`
// Maximum total bandwidth in bytes per second.
MaxTotalBandwidth float32 `json:"max_total_bandwidth,omitempty"`
// Maximum totals per second.
MaxTotalIops float64 `json:"max_total_iops,omitempty"`
// Maximum write bandwidth in bytes per second.
MaxWriteBandwidth float32 `json:"max_write_bandwidth,omitempty"`
// Maximum writes per second.
MaxWriteIops float32 `json:"max_write_iops,omitempty"`
// Read rate in bytes per second.
ReadBandwidth float32 `json:"read_bandwidth,omitempty"`
// Total read operations per second.
ReadIops float32 `json:"read_iops,omitempty"`
// Total data transfer rate in bytes per second.
TotalBandwidth float32 `json:"total_bandwidth,omitempty"`
// Total read and write operations per second.
TotalIops float64 `json:"total_iops,omitempty"`
// Write rate in byte/sec.
WriteBandwidth float32 `json:"write_bandwidth,omitempty"`
// Total write operations per second.
WriteIops float32 `json:"write_iops,omitempty"`
}
// CommonSMBFields contains common fields for SMB metrics responses
type CommonSMBFields struct {
// Average calls.
AvgCalls float32 `json:"avg_calls,omitempty"`
// Average read and write operations per second.
AvgIops float32 `json:"avg_iops,omitempty"`
// Average read and write size in bytes.
AvgIoSize float32 `json:"avg_io_size,omitempty"`
// Average read and write latency in microseconds.
AvgLatency float32 `json:"avg_latency,omitempty"`
// Average read operations per second.
AvgReadIops float32 `json:"avg_read_iops,omitempty"`
// Average read latency in microseconds.
AvgReadLatency float32 `json:"avg_read_latency,omitempty"`
// Average read size in bytes.
AvgReadSize float32 `json:"avg_read_size,omitempty"`
// Average write operations per second.
AvgWriteIops float32 `json:"avg_write_iops,omitempty"`
// Average write latency in microseconds.
AvgWriteLatency float32 `json:"avg_write_latency,omitempty"`
// Average write size in bytes.
AvgWriteSize float32 `json:"avg_write_size,omitempty"`
// Maximum of average read and write latency in microseconds.
MaxAvgLatency float32 `json:"max_avg_latency,omitempty"`
// Maximum of average read latency in microseconds.
MaxAvgReadLatency float32 `json:"max_avg_read_latency,omitempty"`
// Maximum of average read size in bytes.
MaxAvgReadSize float32 `json:"max_avg_read_size,omitempty"`
// Maximum of average read and write size in bytes.
MaxAvgSize float32 `json:"max_avg_size,omitempty"`
// Maximum of average write latency in microseconds.
MaxAvgWriteLatency float32 `json:"max_avg_write_latency,omitempty"`
// Maximum of average write size in bytes.
MaxAvgWriteSize float32 `json:"max_avg_write_size,omitempty"`
// Maximum calls.
MaxCalls float32 `json:"max_calls,omitempty"`
// Maximum read and write operations per second.
MaxIops float32 `json:"max_iops,omitempty"`
// Maximum read operations per second.
MaxReadIops float32 `json:"max_read_iops,omitempty"`
// Maximum write operations per second.
MaxWriteIops float32 `json:"max_write_iops,omitempty"`
// Unique identifier of the node.
NodeID string `json:"node_id,omitempty"`
// Total read operations per second.
ReadIops float32 `json:"read_iops,omitempty"`
// Total calls.
TotalCalls float32 `json:"total_calls,omitempty"`
// Total read and write operations per second.
TotalIops float32 `json:"total_iops,omitempty"`
// Total write operations per second.
WriteIops float32 `json:"write_iops,omitempty"`
}
// CommonUnalignedFields contains common unaligned fields from metrics responses
type CommonUnalignedFields struct {
// Average unaligned read/write rate in bytes per second.
AvgUnalignedBandwidth float32 `json:"avg_unaligned_bandwidth,omitempty"`
// Average unaligned total input/output per second.
AvgUnalignedIops float32 `json:"avg_unaligned_iops,omitempty"`
// Average unaligned read rate in bytes per second.
AvgUnalignedReadBandwidth float32 `json:"avg_unaligned_read_bandwidth,omitempty"`
// Average unaligned read input/output per second.
AvgUnalignedReadIops float32 `json:"avg_unaligned_read_iops,omitempty"`
// Average unaligned write rate in bytes per second.
AvgUnalignedWriteBandwidth float32 `json:"avg_unaligned_write_bandwidth,omitempty"`
// Average unaligned write input/output per second.
AvgUnalignedWriteIops float32 `json:"avg_unaligned_write_iops,omitempty"`
// Maximum unaligned read/write rate in bytes per second.
MaxUnalignedBandwidth float32 `json:"max_unaligned_bandwidth,omitempty"`
// Maximum unaligned total input/output per second.
MaxUnalignedIops float32 `json:"max_unaligned_iops,omitempty"`
// Maximum unaligned read rate in bytes per second.
MaxUnalignedReadBandwidth float32 `json:"max_unaligned_read_bandwidth,omitempty"`
// Maximum unaligned read input/output per second.
MaxUnalignedReadIops float32 `json:"max_unaligned_read_iops,omitempty"`
// Maximum unaligned write rate in bytes per second.
MaxUnalignedWriteBandwidth float32 `json:"max_unaligned_write_bandwidth,omitempty"`
// Maximum unaligned write input/output per second.
MaxUnalignedWriteIops float32 `json:"max_unaligned_write_iops,omitempty"`
// Unaligned read/write rate in bytes per second.
UnalignedBandwidth float32 `json:"unaligned_bandwidth,omitempty"`
// Unaligned total input/output per second.
UnalignedIops float32 `json:"unaligned_iops,omitempty"`
// Unaligned read rate in bytes per second.
UnalignedReadBandwidth float32 `json:"unaligned_read_bandwidth,omitempty"`
// Unaligned read input/output per second.
UnalignedReadIops float32 `json:"unaligned_read_iops,omitempty"`
// Unaligned write rate in bytes per second.
UnalignedWriteBandwidth float32 `json:"unaligned_write_bandwidth,omitempty"`
// Unaligned write input/output per second.
UnalignedWriteIops float32 `json:"unaligned_write_iops,omitempty"`
}
// CommonEthPortFields contains fields common across all ethernet port metrics responses
type CommonEthPortFields struct {
// The average total bytes received per second.
AvgBytesRxPs float32 `json:"avg_bytes_rx_ps,omitempty"`
// The average total bytes transmitted per second.
AvgBytesTxPs float32 `json:"avg_bytes_tx_ps,omitempty"`
// The average number of packets received with CRC error (and thus dropped) per second.
AvgPktRxCrcErrorPs float32 `json:"avg_pkt_rx_crc_error_ps,omitempty"`
// The average number of packets discarded per second due to lack of buffer space.
AvgPktRxNoBufferErrorPs float32 `json:"avg_pkt_rx_no_buffer_error_ps,omitempty"`
// The average number of packets received per second.
AvgPktRxPs float32 `json:"avg_pkt_rx_ps,omitempty"`
// The average number of packets that failed to be transmitted per second due to error.
AvgPktTxErrorPs float32 `json:"avg_pkt_tx_error_ps,omitempty"`
// The average number of packets transmitted per second.
AvgPktTxPs float32 `json:"avg_pkt_tx_ps,omitempty"`
// The total bytes received per second.
BytesRxPs float32 `json:"bytes_rx_ps,omitempty"`
// The total bytes transmitted per second.
BytesTxPs float32 `json:"bytes_tx_ps,omitempty"`
// The maximum total bytes received per second.
MaxBytesRxPs float32 `json:"max_bytes_rx_ps,omitempty"`
// The maximum total bytes transmitted per second.
MaxBytesTxPs float32 `json:"max_bytes_tx_ps,omitempty"`
// The maximum number of packets received with CRC error (and thus dropped) per second.
MaxPktRxCrcErrorPs float32 `json:"max_pkt_rx_crc_error_ps,omitempty"`
// The maximum number of packets discarded per second due to lack of buffer space.
MaxPktRxNoBufferErrorPs float32 `json:"max_pkt_rx_no_buffer_error_ps,omitempty"`
// The maximum number of packets received per second.
MaxPktRxPs float32 `json:"max_pkt_rx_ps,omitempty"`
// The maximum number of packets that failed to be transmitted per second due to error.
MaxPktTxErrorPs float32 `json:"max_pkt_tx_error_ps,omitempty"`
// The maximum number of packets transmitted per second.
MaxPktTxPs float32 `json:"max_pkt_tx_ps,omitempty"`
// Reference to the associated node on which these metrics were recorded.
NodeID string `json:"node_id,omitempty"`
// The number of packets received with CRC error (and thus dropped) per second.
PktRxCrcErrorPs float32 `json:"pkt_rx_crc_error_ps,omitempty"`
// The number of packets discarded per second due to lack of buffer space.
PktRxNoBufferErrorPs float32 `json:"pkt_rx_no_buffer_error_ps,omitempty"`
// The number of packets received per second.
PktRxPs float32 `json:"pkt_rx_ps,omitempty"`
// The number of packets that failed to be transmitted per second due to error.
PktTxErrorPs float32 `json:"pkt_tx_error_ps,omitempty"`
// The number of packets transmitted per second.
PktTxPs float32 `json:"pkt_tx_ps,omitempty"`
}
// CommonNfsv34ResponseFields contains common fields from Nfs v3/4 metrics responses
type CommonNfsv34ResponseFields struct {
// Average failed operations per second.
AvgFailedMdOps float32 `json:"avg_failed_md_ops,omitempty"`
// Average md latency operations per second.
AvgMdLatency float32 `json:"avg_md_latency,omitempty"`
// Average md operations per second.
AvgMdOps float32 `json:"avg_md_ops,omitempty"`
// Average read operations per second.
AvgReadIops float32 `json:"avg_read_iops,omitempty"`
// Average read and write operations per second.
AvgTotalIops float32 `json:"avg_total_iops,omitempty"`
// Average write operations per second.
AvgWriteIops float32 `json:"avg_write_iops,omitempty"`
// Total failed md operations per second.
FailedMdOps float32 `json:"failed_md_ops,omitempty"`
// Maximum average md latency per second.
MaxAvgMdLatency float32 `json:"max_avg_md_latency,omitempty"`
// Max failed operations per second.
MaxFailedMdOps float32 `json:"max_failed_md_ops,omitempty"`
// Maximum read operations per second.
MaxReadIops float32 `json:"max_read_iops,omitempty"`
// Maximum read and write operations per second.
MaxTotalIops float32 `json:"max_total_iops,omitempty"`
// Maximum write operations per second.
MaxWriteIops float32 `json:"max_write_iops,omitempty"`
// Total md operations per second.
MdOps float32 `json:"md_ops,omitempty"`
// Unique identifier of the nfs.
NodeID string `json:"node_id,omitempty"`
// Total read iops in microseconds.
ReadIops float32 `json:"read_iops,omitempty"`
// Total read and write iops in microseconds.
TotalIops float32 `json:"total_iops,omitempty"`
// Total write iops in microseconds.
WriteIops float32 `json:"write_iops,omitempty"`
}
// CopyMetricsCommonFields is the filed common to all copy metrics
type CopyMetricsCommonFields struct {
// Number of bytes remaining to be copied at the end of this sampling period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
DataRemaining *int64 `json:"data_remaining,omitempty"`
// Number of bytes transferred during this sampling period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
DataTransferred *int64 `json:"data_transferred,omitempty"`
// Time (in milliseconds) spent doing reads during this sampling period.
//
// Maximum: 9.223372036854776e+18
// Minimum: 0
ReadTime *int64 `json:"read_time,omitempty"`
// session type
SessionType CopySessionTypeEnum `json:"session_type,omitempty"`
// Localized message string corresponding to session_type
SessionTypeL10n string `json:"session_type_l10n,omitempty"`
// Data transfer rate (in bytes/second) computed using data_transferred and transfer_time.
//
TransferRate float32 `json:"transfer_rate,omitempty"`
// The time (in milliseconds) spent in copy activity during this sampling period.
//
// Maximum: 9.223372036854776e+18
// Minimum: 0
TransferTime *int64 `json:"transfer_time,omitempty"`
// Time (in milliseconds) spent doing writes during this sampling period.
//
// Maximum: 9.223372036854776e+18
// Minimum: 0
WriteTime *int64 `json:"write_time,omitempty"`
}
// WearMetricsByDriveResponse is returned by wear_metrics_by_drive request
type WearMetricsByDriveResponse struct {
CommonMetricsFields
// Reference to the associated drive which these metrics were recorded.
DriveID string `json:"drive_id,omitempty"`
// The percentage of drive wear remaining.
PercentEnduranceRemaining float32 `json:"percent_endurance_remaining,omitempty"`
}
// SpaceMetricsByClusterResponse is returned by space_metrics_by_cluster request
type SpaceMetricsByClusterResponse struct {
CommonMetricsFields
// Identifier of the cluster.
ClusterID string `json:"cluster_id,omitempty"`
// This metric represents total amount of physical space user data occupies after deduplication and compression.
// Maximum: 9.223372036854776e+18
// Minimum: 0
DataPhysicalUsed *int64 `json:"data_physical_used,omitempty"`
// Ratio of the logical used space to data physical used space which is after deduplication and compression.
DataReduction float32 `json:"data_reduction,omitempty"`
// The overall efficiency is computed as a ratio of the total space provisioned to physical used space. For example, ten 2 GB volumes were provisioned and 1 GB of data is written to each of them.
// Each of the volumes has one snapshot as well, for another ten 2 GB volumes. All volumes are thinly provisioned with deduplication and compression applied, there is 4 GB of physical space used.
// Overall efficiency would be (20 * 2 GB) / 4 GB or 10:1. The efficiency_ratio value will be 10 in this example.
EfficiencyRatio float32 `json:"efficiency_ratio,omitempty"`
// Total configured size of all storage ojects within the cluster. This metric includes all primaries, snaps and clones.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalProvisioned *int64 `json:"logical_provisioned,omitempty"`
// Amount of data in bytes written to all storage objects within the cluster, without any deduplication and/or compression. This metric includes all primaries, snaps and clones.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalUsed *int64 `json:"logical_used,omitempty"`
// The total combined space on the physical drives of the cluster available for data.
// Maximum: 9.223372036854776e+18
// Minimum: 0
PhysicalTotal *int64 `json:"physical_total,omitempty"`
// The total physical space consumed in the cluster, accounting for all efficiency mechanisms, as well as all data protection.
// Maximum: 9.223372036854776e+18
// Minimum: 0
PhysicalUsed *int64 `json:"physical_used,omitempty"`
// Cluster shared logical used is sum of appliances' shared logical used in the cluster.
// Maximum: 9.223372036854776e+18
// Minimum: 0
SharedLogicalUsed *int64 `json:"shared_logical_used,omitempty"`
// Ratio of the amount of space that would have been used by snapshots if space efficiency was not applied to logical space used solely by snapshots.
// For example, an object is provisioned as 1 GB and it has two snapshots.
// Each snapshot has 200 MB of data. Snapshot savings will be (1 GB + 1 GB) / (0.2 GB + 0.2 GB) or 5:1. The snapshot_savings value will be 5 in this case.
SnapshotSavings float32 `json:"snapshot_savings,omitempty"`
// Ratio of all the vVol provisioned to data they contain. This is the ratio of logical_provisioned to logical_used.
// For example, a cluster has two 2 GB objects and have written 500 MB bytes of data to them.
// he thin savings would be (2 * 2 GB) / (2 * 0.5 GB) or 4:1, so the thin_savings value would be 4.0.
ThinSavings float32 `json:"thin_savings,omitempty"`
// Last physical used space for data during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastDataPhysicalUsed *int64 `json:"last_data_physical_used,omitempty"`
// Last data reduction space during the period.
LastDataReduction float32 `json:"last_data_reduction,omitempty"`
// Last efficiency ratio during the period.
LastEfficiencyRatio float32 `json:"last_efficiency_ratio,omitempty"`
// Last logical total space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalProvisioned *int64 `json:"last_logical_provisioned,omitempty"`
// Last logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalUsed *int64 `json:"last_logical_used,omitempty"`
// Last physical total space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastPhysicalTotal *int64 `json:"last_physical_total,omitempty"`
// Last physical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastPhysicalUsed *int64 `json:"last_physical_used,omitempty"`
// Last shared logical used during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastSharedLogicalUsed *int64 `json:"last_shared_logical_used,omitempty"`
// Last snapshot savings space during the period.
LastSnapshotSavings float32 `json:"last_snapshot_savings,omitempty"`
// Last thin savings ratio during the period.
LastThinSavings float32 `json:"last_thin_savings,omitempty"`
// Maximum physical used space for data during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxDataPhysicalUsed *int64 `json:"max_data_physical_used,omitempty"`
// Maximum data reduction space during the period.
MaxDataReduction float32 `json:"max_data_reduction,omitempty"`
// Maximum efficiency ratio during the period.
MaxEfficiencyRatio float32 `json:"max_efficiency_ratio,omitempty"`
// Maximum logical total space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalProvisioned *int64 `json:"max_logical_provisioned,omitempty"`
// Maximum logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalUsed *int64 `json:"max_logical_used,omitempty"`
// Maximum physical total space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxPhysicalTotal *int64 `json:"max_physical_total,omitempty"`
// Maximum physical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxPhysicalUsed *int64 `json:"max_physical_used,omitempty"`
// Maximum shared logical used during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxSharedLogicalUsed *int64 `json:"max_shared_logical_used,omitempty"`
// Maximum snapshot savings space during the period.
MaxSnapshotSavings float32 `json:"max_snapshot_savings,omitempty"`
// Maximum thin savings ratio during the period.
MaxThinSavings float32 `json:"max_thin_savings,omitempty"`
}
// SpaceMetricsByApplianceResponse is returned by space_metrics_by_appliance request
type SpaceMetricsByApplianceResponse struct {
CommonMetricsFields
// Reference to the associated appliance on which these metrics were recorded.
ApplianceID string `json:"appliance_id,omitempty"`
// This metric represents amount of physical space user data occupies after deduplication and compression.
// Maximum: 9.223372036854776e+18
// Minimum: 0
DataPhysicalUsed *int64 `json:"data_physical_used,omitempty"`
// Ratio of the logical used space to data physical used space which is after deduplication and compression.
DataReduction float32 `json:"data_reduction,omitempty"`
// The overall efficiency is computed as a ratio of the total space provisioned to physical used space.
// For example, ten 2 GB volumes were provisioned and 1 GB of data is written to each of them.
// Each of the volumes has one snapshot as well, for another ten 2 GB volumes.
// All volumes are thinly provisioned with deduplication and compression applied, there is 4 GB of physical space used. Overall efficiency would be (20 * 2 GB) / 4 GB or 10:1.
// The efficiency_ratio value will be 10 in this example.
EfficiencyRatio float32 `json:"efficiency_ratio,omitempty"`
// Last physical used space for data during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastDataPhysicalUsed *int64 `json:"last_data_physical_used,omitempty"`
// Last data reduction space during the period.
LastDataReduction float32 `json:"last_data_reduction,omitempty"`
// Last efficiency ratio during the period.
LastEfficiencyRatio float32 `json:"last_efficiency_ratio,omitempty"`
// Last logical total space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalProvisioned *int64 `json:"last_logical_provisioned,omitempty"`
// Last logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalUsed *int64 `json:"last_logical_used,omitempty"`
// Last physical total space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastPhysicalTotal *int64 `json:"last_physical_total,omitempty"`
// Last physical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastPhysicalUsed *int64 `json:"last_physical_used,omitempty"`
// Last shared logical used during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastSharedLogicalUsed *int64 `json:"last_shared_logical_used,omitempty"`
// Last snapshot savings space during the period.
LastSnapshotSavings float32 `json:"last_snapshot_savings,omitempty"`
// Last thin savings ratio during the period.
LastThinSavings float32 `json:"last_thin_savings,omitempty"`
// Total configured size of all storage objects on an appliance. This metric includes all primaries, snaps and clones.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalProvisioned *int64 `json:"logical_provisioned,omitempty"`
// Amount of data in bytes written to all storage objects on an appliance, without any deduplication and/or compression. This metric includes all primaries, snaps and clones.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalUsed *int64 `json:"logical_used,omitempty"`
// Maximum physical used space for data during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxDataPhysicalUsed *int64 `json:"max_data_physical_used,omitempty"`
// Maximum data reduction space during the period.
MaxDataReduction float32 `json:"max_data_reduction,omitempty"`
// Maximum efficiency ratio during the period.
MaxEfficiencyRatio float32 `json:"max_efficiency_ratio,omitempty"`
// Maxiumum logical total space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalProvisioned *int64 `json:"max_logical_provisioned,omitempty"`
// Maxiumum logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalUsed *int64 `json:"max_logical_used,omitempty"`
// Maximum physical total space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxPhysicalTotal *int64 `json:"max_physical_total,omitempty"`
// Maximum physical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxPhysicalUsed *int64 `json:"max_physical_used,omitempty"`
// Max shared logical used during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxSharedLogicalUsed *int64 `json:"max_shared_logical_used,omitempty"`
// Maximum snapshot savings space during the period.
MaxSnapshotSavings float32 `json:"max_snapshot_savings,omitempty"`
// Maximum thin savings ratio during the period.
MaxThinSavings float32 `json:"max_thin_savings,omitempty"`
// Total combined space on the physical drives of the appliance available for data.
// Maximum: 9.223372036854776e+18
// Minimum: 0
PhysicalTotal *int64 `json:"physical_total,omitempty"`
// Total physical space consumed in the appliance, accounting for all efficiency mechanisms, as well as all data protection.
// Maximum: 9.223372036854776e+18
// Minimum: 0
PhysicalUsed *int64 `json:"physical_used,omitempty"`
// Amount of space the volume family needs to hold the data written by host and shared by snaps and fast-clones in the family. This does not include deduplication or compression.
// Maximum: 9.223372036854776e+18
// Minimum: 0
SharedLogicalUsed *int64 `json:"shared_logical_used,omitempty"`
// Ratio of the amount of space that would have been used by snapshots if space efficiency was not applied to logical space used solely by snapshots.
// For example, an object is provisioned as 1 GB and it has two snapshots. Each snapshot has 200 MB of data.
// Snapshot savings will be (1 GB + 1 GB) / (0.2 GB + 0.2 GB) or 5:1. The snapshot_savings value will be 5 in this case.
SnapshotSavings float32 `json:"snapshot_savings,omitempty"`
// Ratio of all the vVol provisioned to data they contain. This is the ratio of logical_provisioned to logical_used.
// For example, a cluster has two 2 GB objects and have written 500 MB bytes of data to them.
// The thin savings would be (2 * 2 GB) / (2 * 0.5 GB) or 4:1, so the thin_savings value would be 4.0.
ThinSavings float32 `json:"thin_savings,omitempty"`
}
// SpaceMetricsByVolumeResponse is returned by space_metrics_by_volume
type SpaceMetricsByVolumeResponse struct {
CommonMetricsFields
// Reference to the associated appliance on which these metrics were recorded.
ApplianceID string `json:"appliance_id,omitempty"`
// Last logical provisioned space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalProvisioned *int64 `json:"last_logical_provisioned,omitempty"`
// Last logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalUsed *int64 `json:"last_logical_used,omitempty"`
// Last thin savings ratio during the period.
LastThinSavings float32 `json:"last_thin_savings,omitempty"`
// Configured size in bytes of a volume which amount of data can be written to. This metric includes primaries, snaps and clones.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalProvisioned *int64 `json:"logical_provisioned,omitempty"`
// Amount of data in bytes host has written to a volume without any deduplication, compression or sharing.
// This metric includes primaries, snaps and clones.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalUsed *int64 `json:"logical_used,omitempty"`
// Max logical provisioned space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalProvisioned *int64 `json:"max_logical_provisioned,omitempty"`
// Max logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalUsed *int64 `json:"max_logical_used,omitempty"`
// Max thin savings ratio during the period.
MaxThinSavings float32 `json:"max_thin_savings,omitempty"`
// Ratio of all the volumes provisioned to data being written to them. For example, an appliance has two 2 GB volumes and have written 500 MB of data to them.
// The thin savings would be (2 GB * 2) / (0.5 GB * 2) or 4:1, so the thin_savings value would be 4.0.
ThinSavings float32 `json:"thin_savings,omitempty"`
// ID of the volume.
VolumeID string `json:"volume_id,omitempty"`
}
// SpaceMetricsByVolumeFamilyResponse is returned by space_metrics_by_volume_family
type SpaceMetricsByVolumeFamilyResponse struct {
CommonMetricsFields
// Reference to the associated appliance on which these metrics were recorded.
ApplianceID string `json:"appliance_id,omitempty"`
// ID of the family.
FamilyID string `json:"family_id,omitempty"`
// Last logical provisioned space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalProvisioned *int64 `json:"last_logical_provisioned,omitempty"`
// Last logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalUsed *int64 `json:"last_logical_used,omitempty"`
// Last shared logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastSharedLogicalUsed *int64 `json:"last_shared_logical_used,omitempty"`
// Last snap and clone logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastSnapCloneLogicalUsed *int64 `json:"last_snap_clone_logical_used,omitempty"`
// Last snapshot savings space during the period.
LastSnapshotSavings float32 `json:"last_snapshot_savings,omitempty"`
// Last unique physical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastUniquePhysicalUsed *int64 `json:"last_unique_physical_used,omitempty"`
// Configured size in bytes of a volume which amount of data can be written to. This metric includes primaries, snaps and clones.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalProvisioned *int64 `json:"logical_provisioned,omitempty"`
// Amount of data in bytes host has written to a volume family without any deduplication, compression or sharing. This metric includes primaries, snaps and clones.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalUsed *int64 `json:"logical_used,omitempty"`
// Max logical provisioned space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalProvisioned *int64 `json:"max_logical_provisioned,omitempty"`
// Max logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalUsed *int64 `json:"max_logical_used,omitempty"`
// Max shared logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxSharedLogicalUsed *int64 `json:"max_shared_logical_used,omitempty"`
// Max snap and clone logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxSnapCloneLogicalUsed *int64 `json:"max_snap_clone_logical_used,omitempty"`
// Max snapshot savings space during the period.
MaxSnapshotSavings float32 `json:"max_snapshot_savings,omitempty"`
// Max unique physical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxUniquePhysicalUsed *int64 `json:"max_unique_physical_used,omitempty"`
// Amount of space the volume family needs to hold the data written by host and shared by snaps and fast-clones in the family. This does not include deduplication or compression.
// Maximum: 9.223372036854776e+18
// Minimum: 0
SharedLogicalUsed *int64 `json:"shared_logical_used,omitempty"`
// Total Amount of data in bytes host has written to all volumes in the volume family without any deduplication, compression or sharing.
// This metric includes snaps and clones in the volume family.
// Maximum: 9.223372036854776e+18
// Minimum: 0
SnapCloneLogicalUsed *int64 `json:"snap_clone_logical_used,omitempty"`
// Ratio of the amount of space that would have been used by snapshots if space efficiency was not applied to logical space used solely by snapshots.
// For example, a volume is provisioned as 1 GB bytes and it has two snapshots. Each snapshot has 200 MB of data.
// Snapshot savings will be (1 GB + 1 GB) / (0.2 GB + 0.2 GB) or 5:1. The snapshot_savings value will be 5 in this case.
SnapshotSavings float32 `json:"snapshot_savings,omitempty"`
// Amount of physical space volume family used after compression and deduplication. This is the space to be freed up if a volume family is removed from the appliance.
// Maximum: 9.223372036854776e+18
// Minimum: 0
UniquePhysicalUsed *int64 `json:"unique_physical_used,omitempty"`
}
// SpaceMetricsByVMResponse is returned by space_metrics_by_vm
type SpaceMetricsByVMResponse struct {
CommonMetricsFields
// Last logical provisioned space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalProvisioned *int64 `json:"last_logical_provisioned,omitempty"`
// Last logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalUsed *int64 `json:"last_logical_used,omitempty"`
// Last snap and clone logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastSnapCloneLogicalUsed *int64 `json:"last_snap_clone_logical_used,omitempty"`
// Last snapshot savings space during the period.
LastSnapshotSavings float32 `json:"last_snapshot_savings,omitempty"`
// Last thin savings ratio during the period.
LastThinSavings float32 `json:"last_thin_savings,omitempty"`
// Last unique physical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastUniquePhysicalUsed *int64 `json:"last_unique_physical_used,omitempty"`
// Total configured size in bytes of all virtual volumes used by virtual machine.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalProvisioned *int64 `json:"logical_provisioned,omitempty"`
// Total amount of data in bytes written to all virtual volumes used by virtual machine.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalUsed *int64 `json:"logical_used,omitempty"`
// Max logical provisioned space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalProvisioned *int64 `json:"max_logical_provisioned,omitempty"`
// Max logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalUsed *int64 `json:"max_logical_used,omitempty"`
// Max snap and clone logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxSnapCloneLogicalUsed *int64 `json:"max_snap_clone_logical_used,omitempty"`
// Max snapshot savings space during the period.
MaxSnapshotSavings float32 `json:"max_snapshot_savings,omitempty"`
// Max thin savings ratio during the period.
MaxThinSavings float32 `json:"max_thin_savings,omitempty"`
// Max unique physical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxUniquePhysicalUsed *int64 `json:"max_unique_physical_used,omitempty"`
// Total Amount of data in bytes host has written to all volumes used by virtual machine without any deduplication, compression or sharing.
// This metric includes snaps and clones in the volume family used by virtual machine.
// Maximum: 9.223372036854776e+18
// Minimum: 0
SnapCloneLogicalUsed *int64 `json:"snap_clone_logical_used,omitempty"`
// Ratio of the amount of space that would have been used by snapshots if space efficiency was not applied to logical space used solely by snapshots of vVols used by virtual machine.
// For example, a vVol is provisioned as 1 GB and it has two snapshots.
// Each snapshot has 200 MB of data. Snapshot savings will be (1 GB + 1 GB) / (0.2 GB + 0.2 GB) or 5:1. The snapshot_savings value will be 5 in this case.
SnapshotSavings float32 `json:"snapshot_savings,omitempty"`
// Ratio of all the vVol provisioned to data they contain. This is the ratio of logical_provisioned to logical_used.
// For example, a VM has two 2 GB vVol's and have written 500 MB of data to them. The thin savings would be (2 * 2GB) / (2 * 0.5 GB) or 4:1, so the thin_savings value would be 4.0.
ThinSavings float32 `json:"thin_savings,omitempty"`
// Amount of physical space virtual machine used after compression and deduplication. This is the space to be freed up if a virtual machine is removed.
// Maximum: 9.223372036854776e+18
// Minimum: 0
UniquePhysicalUsed *int64 `json:"unique_physical_used,omitempty"`
// Unique identifier representing a specific virtual machine.
VMID string `json:"vm_id,omitempty"`
}
// SpaceMetricsByStorageContainerResponse is returned by space_metrics_by_storage_container
type SpaceMetricsByStorageContainerResponse struct {
CommonMetricsFields
// Internal ID of the storage container.
StorageContainerID string `json:"storage_container_id"`
// Last logical provisioned space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalProvisioned *int64 `json:"last_logical_provisioned,omitempty"`
// Last logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LastLogicalUsed *int64 `json:"last_logical_used,omitempty"`
// Last snapshot savings during the period.
LastSnapshotSavings float32 `json:"last_snapshot_savings,omitempty"`
// Total configured size in bytes of the primary and clone virtual volumes within the storage container.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalProvisioned *int64 `json:"logical_provisioned,omitempty"`
// Amount of data in bytes written to primary and clone virtual volumes within the storage container.
// Maximum: 9.223372036854776e+18
// Minimum: 0
LogicalUsed *int64 `json:"logical_used,omitempty"`
// Maximum logical provisioned space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalProvisioned *int64 `json:"max_logical_provisioned,omitempty"`
// Maximum logical used space during the period.
// Maximum: 9.223372036854776e+18
// Minimum: 0
MaxLogicalUsed *int64 `json:"max_logical_used,omitempty"`