-
Notifications
You must be signed in to change notification settings - Fork 1
/
usage.pb.go
5010 lines (4847 loc) · 131 KB
/
usage.pb.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: usage.proto
package v1
import (
context "context"
fmt "fmt"
v1 "github.com/arangodb-managed/apis/common/v1"
types "github.com/gogo/protobuf/types"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// A UsageItem message contained usage tracking information for a tracked
// resource (usually deployment) in a specific time period.
type UsageItem struct {
// System identifier of the usage item.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// URL of this resource
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Kind of usage item
Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
// Identification of the resource covered by this usage item
Resource *UsageItem_Resource `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"`
// This usage item covers a time period that starts at this timestamp
StartsAt *types.Timestamp `protobuf:"bytes,5,opt,name=starts_at,json=startsAt,proto3" json:"starts_at,omitempty"`
// This usage item covers a time period that ends at this timestamp.
// If the usage item has not yet ended, this field is is set to the current time.
EndsAt *types.Timestamp `protobuf:"bytes,6,opt,name=ends_at,json=endsAt,proto3" json:"ends_at,omitempty"`
// Set when this usage item has ended.
HasEnded bool `protobuf:"varint,7,opt,name=has_ended,json=hasEnded,proto3" json:"has_ended,omitempty"`
// Identifier of the tier the organization was using at the start of this usage period.
TierId string `protobuf:"bytes,8,opt,name=tier_id,json=tierId,proto3" json:"tier_id,omitempty"`
// Identifier of the invoice that includes this usage item.
// The usage item must be ended when this field it set.
InvoiceId string `protobuf:"bytes,9,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"`
// Amount of (computer) resources used by the resource covered by this usage item.
// This field is only set when the usage item is of kind DeploymentSize.
DeploymentSize *UsageItem_DeploymentSize `protobuf:"bytes,101,opt,name=deployment_size,json=deploymentSize,proto3" json:"deployment_size,omitempty"`
// Amount of network traffic used by the resource covered by this usage item.
// This field is only set when the usage item is of kind NetworkTransferSize.
NetworkTransferSize *UsageItem_NetworkTransferSize `protobuf:"bytes,102,opt,name=network_transfer_size,json=networkTransferSize,proto3" json:"network_transfer_size,omitempty"`
// Amount of backup related cloud storage used by the resource covered by this usage item.
// This field is only set when the usage item is of kind BackupStorageSize.
BackupStorageSize *UsageItem_BackupStorageSize `protobuf:"bytes,103,opt,name=backup_storage_size,json=backupStorageSize,proto3" json:"backup_storage_size,omitempty"`
// Amount of audit log related resources used by the resource covered by this usage item.
// This field is only set when the usage item is of kind AuditLogSize.
AuditlogSize *UsageItem_AuditLogSize `protobuf:"bytes,104,opt,name=auditlog_size,json=auditlogSize,proto3" json:"auditlog_size,omitempty"`
// Amount of audit log storage related resources used by the resource covered by this usage item.
// This field is only set when the usage item is of kind AuditLogCloudSize.
AuditlogStorageSize *UsageItem_AuditLogStorageSize `protobuf:"bytes,105,opt,name=auditlog_storage_size,json=auditlogStorageSize,proto3" json:"auditlog_storage_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UsageItem) Reset() { *m = UsageItem{} }
func (m *UsageItem) String() string { return proto.CompactTextString(m) }
func (*UsageItem) ProtoMessage() {}
func (*UsageItem) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{0}
}
func (m *UsageItem) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UsageItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UsageItem.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UsageItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_UsageItem.Merge(m, src)
}
func (m *UsageItem) XXX_Size() int {
return m.Size()
}
func (m *UsageItem) XXX_DiscardUnknown() {
xxx_messageInfo_UsageItem.DiscardUnknown(m)
}
var xxx_messageInfo_UsageItem proto.InternalMessageInfo
func (m *UsageItem) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *UsageItem) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *UsageItem) GetKind() string {
if m != nil {
return m.Kind
}
return ""
}
func (m *UsageItem) GetResource() *UsageItem_Resource {
if m != nil {
return m.Resource
}
return nil
}
func (m *UsageItem) GetStartsAt() *types.Timestamp {
if m != nil {
return m.StartsAt
}
return nil
}
func (m *UsageItem) GetEndsAt() *types.Timestamp {
if m != nil {
return m.EndsAt
}
return nil
}
func (m *UsageItem) GetHasEnded() bool {
if m != nil {
return m.HasEnded
}
return false
}
func (m *UsageItem) GetTierId() string {
if m != nil {
return m.TierId
}
return ""
}
func (m *UsageItem) GetInvoiceId() string {
if m != nil {
return m.InvoiceId
}
return ""
}
func (m *UsageItem) GetDeploymentSize() *UsageItem_DeploymentSize {
if m != nil {
return m.DeploymentSize
}
return nil
}
func (m *UsageItem) GetNetworkTransferSize() *UsageItem_NetworkTransferSize {
if m != nil {
return m.NetworkTransferSize
}
return nil
}
func (m *UsageItem) GetBackupStorageSize() *UsageItem_BackupStorageSize {
if m != nil {
return m.BackupStorageSize
}
return nil
}
func (m *UsageItem) GetAuditlogSize() *UsageItem_AuditLogSize {
if m != nil {
return m.AuditlogSize
}
return nil
}
func (m *UsageItem) GetAuditlogStorageSize() *UsageItem_AuditLogStorageSize {
if m != nil {
return m.AuditlogStorageSize
}
return nil
}
type UsageItem_Resource struct {
// System identifier of the resource that this usage item covers.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// URL of the resource that this usage item covers
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Kind of resource that this usage item covers.
Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
// Human readable description of the resource that this usage item covers.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Identifier of the organization that owns the resource that this usage item covers.
OrganizationId string `protobuf:"bytes,5,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// Name of the organization that owns the resource that this usage item covers.
OrganizationName string `protobuf:"bytes,6,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"`
// Identifier of the project that owns the resource that this usage item covers.
// This field is optional when the kind is AuditLogSize, depending if the audit log is for a deployment (set) or Oasis platform (empty)
ProjectId string `protobuf:"bytes,7,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Name of the project that owns the resource that this usage item covers.
// This field is optional when the kind is AuditLogSize, depending if the audit log is for a deployment (set) or Oasis platform (empty)
ProjectName string `protobuf:"bytes,8,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
// Identifier of the deployment that owns the resource that this usage item covers.
// This field is optional when the kind is AuditLogSize, depending if the audit log is for a deployment (set) or Oasis platform (empty)
DeploymentId string `protobuf:"bytes,9,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
// Name of the deployment that owns the resource that this usage item covers.
// This field is optional when the kind is AuditLogSize, depending if the audit log is for a deployment (set) or Oasis platform (empty)
DeploymentName string `protobuf:"bytes,10,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"`
// Name of the deployment member that owns the resource that this usage item covers.
// This field is only set when the usage item is specific for a member of the deployment (e.g. network transfer)
DeploymentMemberName string `protobuf:"bytes,11,opt,name=deployment_member_name,json=deploymentMemberName,proto3" json:"deployment_member_name,omitempty"`
// Identifier of the cloud provider that is used to run the deployment.
// This field is optional when the kind is AuditLogSize, depending if the audit log is for a deployment (set) or Oasis platform (empty)
CloudProviderId string `protobuf:"bytes,12,opt,name=cloud_provider_id,json=cloudProviderId,proto3" json:"cloud_provider_id,omitempty"`
// Identifier of the cloud region that is used to run the deployment.
// This field is optional when the kind is AuditLogSize, depending if the audit log is for a deployment (set) or Oasis platform (empty)
CloudRegionId string `protobuf:"bytes,13,opt,name=cloud_region_id,json=cloudRegionId,proto3" json:"cloud_region_id,omitempty"`
// Identifier of the support plan that is attached to the deployment.
// This field is not filled-out when the kind is AuditLogSize
SupportPlanId string `protobuf:"bytes,14,opt,name=support_plan_id,json=supportPlanId,proto3" json:"support_plan_id,omitempty"`
// Model of the deployment
// This field is not filled-out when the kind is AuditLogSize
DeploymentModel string `protobuf:"bytes,15,opt,name=deployment_model,json=deploymentModel,proto3" json:"deployment_model,omitempty"`
// Identifier of the PrepaidDeployment that this deployment is attached to (if any)
PrepaidDeploymentId string `protobuf:"bytes,16,opt,name=prepaid_deployment_id,json=prepaidDeploymentId,proto3" json:"prepaid_deployment_id,omitempty"`
// Timestamp when the prepaid_deployment starts (relevant when prepaid_deployment_id is set only)
PrepaidDeploymentStartsAt *types.Timestamp `protobuf:"bytes,17,opt,name=prepaid_deployment_starts_at,json=prepaidDeploymentStartsAt,proto3" json:"prepaid_deployment_starts_at,omitempty"`
// Timestamp when the prepaid_deployment ends (relevant when prepaid_deployment_id is set only)
PrepaidDeploymentEndsAt *types.Timestamp `protobuf:"bytes,18,opt,name=prepaid_deployment_ends_at,json=prepaidDeploymentEndsAt,proto3" json:"prepaid_deployment_ends_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UsageItem_Resource) Reset() { *m = UsageItem_Resource{} }
func (m *UsageItem_Resource) String() string { return proto.CompactTextString(m) }
func (*UsageItem_Resource) ProtoMessage() {}
func (*UsageItem_Resource) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{0, 0}
}
func (m *UsageItem_Resource) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UsageItem_Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UsageItem_Resource.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UsageItem_Resource) XXX_Merge(src proto.Message) {
xxx_messageInfo_UsageItem_Resource.Merge(m, src)
}
func (m *UsageItem_Resource) XXX_Size() int {
return m.Size()
}
func (m *UsageItem_Resource) XXX_DiscardUnknown() {
xxx_messageInfo_UsageItem_Resource.DiscardUnknown(m)
}
var xxx_messageInfo_UsageItem_Resource proto.InternalMessageInfo
func (m *UsageItem_Resource) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *UsageItem_Resource) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *UsageItem_Resource) GetKind() string {
if m != nil {
return m.Kind
}
return ""
}
func (m *UsageItem_Resource) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *UsageItem_Resource) GetOrganizationId() string {
if m != nil {
return m.OrganizationId
}
return ""
}
func (m *UsageItem_Resource) GetOrganizationName() string {
if m != nil {
return m.OrganizationName
}
return ""
}
func (m *UsageItem_Resource) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *UsageItem_Resource) GetProjectName() string {
if m != nil {
return m.ProjectName
}
return ""
}
func (m *UsageItem_Resource) GetDeploymentId() string {
if m != nil {
return m.DeploymentId
}
return ""
}
func (m *UsageItem_Resource) GetDeploymentName() string {
if m != nil {
return m.DeploymentName
}
return ""
}
func (m *UsageItem_Resource) GetDeploymentMemberName() string {
if m != nil {
return m.DeploymentMemberName
}
return ""
}
func (m *UsageItem_Resource) GetCloudProviderId() string {
if m != nil {
return m.CloudProviderId
}
return ""
}
func (m *UsageItem_Resource) GetCloudRegionId() string {
if m != nil {
return m.CloudRegionId
}
return ""
}
func (m *UsageItem_Resource) GetSupportPlanId() string {
if m != nil {
return m.SupportPlanId
}
return ""
}
func (m *UsageItem_Resource) GetDeploymentModel() string {
if m != nil {
return m.DeploymentModel
}
return ""
}
func (m *UsageItem_Resource) GetPrepaidDeploymentId() string {
if m != nil {
return m.PrepaidDeploymentId
}
return ""
}
func (m *UsageItem_Resource) GetPrepaidDeploymentStartsAt() *types.Timestamp {
if m != nil {
return m.PrepaidDeploymentStartsAt
}
return nil
}
func (m *UsageItem_Resource) GetPrepaidDeploymentEndsAt() *types.Timestamp {
if m != nil {
return m.PrepaidDeploymentEndsAt
}
return nil
}
// Amount of (computer) resources used by the resource covered by this usage item.
type UsageItem_DeploymentSize struct {
// Number of coordinators of the deployment
Coordinators int32 `protobuf:"varint,1,opt,name=coordinators,proto3" json:"coordinators,omitempty"`
// Amount of memory (in GB) allocated for each coordinator.
CoordinatorMemorySize int32 `protobuf:"varint,2,opt,name=coordinator_memory_size,json=coordinatorMemorySize,proto3" json:"coordinator_memory_size,omitempty"`
// Number of dbservers of the deployment
Dbservers int32 `protobuf:"varint,11,opt,name=dbservers,proto3" json:"dbservers,omitempty"`
// Amount of memory (in GB) allocated for each dbserver.
DbserverMemorySize int32 `protobuf:"varint,12,opt,name=dbserver_memory_size,json=dbserverMemorySize,proto3" json:"dbserver_memory_size,omitempty"`
// Amount of disk space (in GB) allocated for each dbserver.
DbserverDiskSize int32 `protobuf:"varint,13,opt,name=dbserver_disk_size,json=dbserverDiskSize,proto3" json:"dbserver_disk_size,omitempty"`
// Number of agents of the deployment
Agents int32 `protobuf:"varint,21,opt,name=agents,proto3" json:"agents,omitempty"`
// Amount of memory (in GB) allocated for each agent.
AgentMemorySize int32 `protobuf:"varint,22,opt,name=agent_memory_size,json=agentMemorySize,proto3" json:"agent_memory_size,omitempty"`
// Amount of disk space (in GB) allocated for each agent.
AgentDiskSize int32 `protobuf:"varint,23,opt,name=agent_disk_size,json=agentDiskSize,proto3" json:"agent_disk_size,omitempty"`
// Identifier of the node-size used for this deployment (empty for flexible)
NodeSizeId string `protobuf:"bytes,31,opt,name=node_size_id,json=nodeSizeId,proto3" json:"node_size_id,omitempty"`
// Identifier of disk performance used for this deployment (if any).
DiskPerformanceId string `protobuf:"bytes,32,opt,name=disk_performance_id,json=diskPerformanceId,proto3" json:"disk_performance_id,omitempty"`
// List of identifiers of addons used by the deployment.
AddonIds []string `protobuf:"bytes,41,rep,name=addon_ids,json=addonIds,proto3" json:"addon_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UsageItem_DeploymentSize) Reset() { *m = UsageItem_DeploymentSize{} }
func (m *UsageItem_DeploymentSize) String() string { return proto.CompactTextString(m) }
func (*UsageItem_DeploymentSize) ProtoMessage() {}
func (*UsageItem_DeploymentSize) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{0, 1}
}
func (m *UsageItem_DeploymentSize) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UsageItem_DeploymentSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UsageItem_DeploymentSize.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UsageItem_DeploymentSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_UsageItem_DeploymentSize.Merge(m, src)
}
func (m *UsageItem_DeploymentSize) XXX_Size() int {
return m.Size()
}
func (m *UsageItem_DeploymentSize) XXX_DiscardUnknown() {
xxx_messageInfo_UsageItem_DeploymentSize.DiscardUnknown(m)
}
var xxx_messageInfo_UsageItem_DeploymentSize proto.InternalMessageInfo
func (m *UsageItem_DeploymentSize) GetCoordinators() int32 {
if m != nil {
return m.Coordinators
}
return 0
}
func (m *UsageItem_DeploymentSize) GetCoordinatorMemorySize() int32 {
if m != nil {
return m.CoordinatorMemorySize
}
return 0
}
func (m *UsageItem_DeploymentSize) GetDbservers() int32 {
if m != nil {
return m.Dbservers
}
return 0
}
func (m *UsageItem_DeploymentSize) GetDbserverMemorySize() int32 {
if m != nil {
return m.DbserverMemorySize
}
return 0
}
func (m *UsageItem_DeploymentSize) GetDbserverDiskSize() int32 {
if m != nil {
return m.DbserverDiskSize
}
return 0
}
func (m *UsageItem_DeploymentSize) GetAgents() int32 {
if m != nil {
return m.Agents
}
return 0
}
func (m *UsageItem_DeploymentSize) GetAgentMemorySize() int32 {
if m != nil {
return m.AgentMemorySize
}
return 0
}
func (m *UsageItem_DeploymentSize) GetAgentDiskSize() int32 {
if m != nil {
return m.AgentDiskSize
}
return 0
}
func (m *UsageItem_DeploymentSize) GetNodeSizeId() string {
if m != nil {
return m.NodeSizeId
}
return ""
}
func (m *UsageItem_DeploymentSize) GetDiskPerformanceId() string {
if m != nil {
return m.DiskPerformanceId
}
return ""
}
func (m *UsageItem_DeploymentSize) GetAddonIds() []string {
if m != nil {
return m.AddonIds
}
return nil
}
// Amount of network traffic used by the resource covered by this usage item.
type UsageItem_NetworkTransferSize struct {
// The destination (or source) the network traffic going to (or coming from)
// Can be 'Internet' or 'InCluster'
// An empty string means 'Internet'
Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
// Total amount of network ingress traffic (in bytes) caused by the use of a deployment.
// Destination 'Internet': This is traffic coming from the internet, so excluding inner cluster traffic
// Destination 'InCluster': This is in-cluster traffic only
// This is always excluding backup traffic (downloads).
TotalTransferIngressSize int64 `protobuf:"varint,2,opt,name=total_transfer_ingress_size,json=totalTransferIngressSize,proto3" json:"total_transfer_ingress_size,omitempty"`
// Total amount of network egress traffic (in bytes) caused by the use of a deployment.
// Destination 'Internet': This is traffic going to the internet, so excluding inner cluster traffic
// Destination 'InCluster': This is in-cluster traffic only
// This is always excluding backup traffic (uploads).
TotalTransferEgressSize int64 `protobuf:"varint,3,opt,name=total_transfer_egress_size,json=totalTransferEgressSize,proto3" json:"total_transfer_egress_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UsageItem_NetworkTransferSize) Reset() { *m = UsageItem_NetworkTransferSize{} }
func (m *UsageItem_NetworkTransferSize) String() string { return proto.CompactTextString(m) }
func (*UsageItem_NetworkTransferSize) ProtoMessage() {}
func (*UsageItem_NetworkTransferSize) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{0, 2}
}
func (m *UsageItem_NetworkTransferSize) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UsageItem_NetworkTransferSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UsageItem_NetworkTransferSize.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UsageItem_NetworkTransferSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_UsageItem_NetworkTransferSize.Merge(m, src)
}
func (m *UsageItem_NetworkTransferSize) XXX_Size() int {
return m.Size()
}
func (m *UsageItem_NetworkTransferSize) XXX_DiscardUnknown() {
xxx_messageInfo_UsageItem_NetworkTransferSize.DiscardUnknown(m)
}
var xxx_messageInfo_UsageItem_NetworkTransferSize proto.InternalMessageInfo
func (m *UsageItem_NetworkTransferSize) GetDestination() string {
if m != nil {
return m.Destination
}
return ""
}
func (m *UsageItem_NetworkTransferSize) GetTotalTransferIngressSize() int64 {
if m != nil {
return m.TotalTransferIngressSize
}
return 0
}
func (m *UsageItem_NetworkTransferSize) GetTotalTransferEgressSize() int64 {
if m != nil {
return m.TotalTransferEgressSize
}
return 0
}
// Amount of backup related cloud storage used by the resource covered by this usage item.
type UsageItem_BackupStorageSize struct {
// Amount of cloud storage (in bytes) used by backups of a deployment.
CloudStorageSize int64 `protobuf:"varint,1,opt,name=cloud_storage_size,json=cloudStorageSize,proto3" json:"cloud_storage_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UsageItem_BackupStorageSize) Reset() { *m = UsageItem_BackupStorageSize{} }
func (m *UsageItem_BackupStorageSize) String() string { return proto.CompactTextString(m) }
func (*UsageItem_BackupStorageSize) ProtoMessage() {}
func (*UsageItem_BackupStorageSize) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{0, 3}
}
func (m *UsageItem_BackupStorageSize) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UsageItem_BackupStorageSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UsageItem_BackupStorageSize.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UsageItem_BackupStorageSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_UsageItem_BackupStorageSize.Merge(m, src)
}
func (m *UsageItem_BackupStorageSize) XXX_Size() int {
return m.Size()
}
func (m *UsageItem_BackupStorageSize) XXX_DiscardUnknown() {
xxx_messageInfo_UsageItem_BackupStorageSize.DiscardUnknown(m)
}
var xxx_messageInfo_UsageItem_BackupStorageSize proto.InternalMessageInfo
func (m *UsageItem_BackupStorageSize) GetCloudStorageSize() int64 {
if m != nil {
return m.CloudStorageSize
}
return 0
}
// Amount of audit log related resources used by the resource covered by this usage item.
type UsageItem_AuditLogSize struct {
// Type of destination.
// Possible values are: "cloud", "https-post"
DestinationType string `protobuf:"bytes,1,opt,name=destination_type,json=destinationType,proto3" json:"destination_type,omitempty"`
// Number of events used by audit log.
// This is the value of DestinationCounters.events (of the timespan covered by this usage item).
EventCount int64 `protobuf:"varint,11,opt,name=event_count,json=eventCount,proto3" json:"event_count,omitempty"`
// Number of bytes used by audit log.
// This is the total of DestinationCounters.bytes_succeeded and bytes_failed (of the timespan covered by this usage item)
// and depending on the destination type send to the cloud or used as the body of a https post request.
EventSize int64 `protobuf:"varint,12,opt,name=event_size,json=eventSize,proto3" json:"event_size,omitempty"`
// Number of https post invocations used by audit log.
// This is the total of DestinationCounters.https_posts_succeeded and https_posts_failed (of the timespan covered by this usage item).
// Set when destination_type is "https-post" only
HttpsPostCount int64 `protobuf:"varint,21,opt,name=https_post_count,json=httpsPostCount,proto3" json:"https_post_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UsageItem_AuditLogSize) Reset() { *m = UsageItem_AuditLogSize{} }
func (m *UsageItem_AuditLogSize) String() string { return proto.CompactTextString(m) }
func (*UsageItem_AuditLogSize) ProtoMessage() {}
func (*UsageItem_AuditLogSize) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{0, 4}
}
func (m *UsageItem_AuditLogSize) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UsageItem_AuditLogSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UsageItem_AuditLogSize.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UsageItem_AuditLogSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_UsageItem_AuditLogSize.Merge(m, src)
}
func (m *UsageItem_AuditLogSize) XXX_Size() int {
return m.Size()
}
func (m *UsageItem_AuditLogSize) XXX_DiscardUnknown() {
xxx_messageInfo_UsageItem_AuditLogSize.DiscardUnknown(m)
}
var xxx_messageInfo_UsageItem_AuditLogSize proto.InternalMessageInfo
func (m *UsageItem_AuditLogSize) GetDestinationType() string {
if m != nil {
return m.DestinationType
}
return ""
}
func (m *UsageItem_AuditLogSize) GetEventCount() int64 {
if m != nil {
return m.EventCount
}
return 0
}
func (m *UsageItem_AuditLogSize) GetEventSize() int64 {
if m != nil {
return m.EventSize
}
return 0
}
func (m *UsageItem_AuditLogSize) GetHttpsPostCount() int64 {
if m != nil {
return m.HttpsPostCount
}
return 0
}
// Amount of audit log storage related resources used by the resource covered by this usage item.
// When this usage type is used, the audit log destination_type is "cloud".
type UsageItem_AuditLogStorageSize struct {
// Amount of cloud storage (in bytes) used by audit log.
CloudStorageSize int64 `protobuf:"varint,1,opt,name=cloud_storage_size,json=cloudStorageSize,proto3" json:"cloud_storage_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UsageItem_AuditLogStorageSize) Reset() { *m = UsageItem_AuditLogStorageSize{} }
func (m *UsageItem_AuditLogStorageSize) String() string { return proto.CompactTextString(m) }
func (*UsageItem_AuditLogStorageSize) ProtoMessage() {}
func (*UsageItem_AuditLogStorageSize) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{0, 5}
}
func (m *UsageItem_AuditLogStorageSize) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UsageItem_AuditLogStorageSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UsageItem_AuditLogStorageSize.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UsageItem_AuditLogStorageSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_UsageItem_AuditLogStorageSize.Merge(m, src)
}
func (m *UsageItem_AuditLogStorageSize) XXX_Size() int {
return m.Size()
}
func (m *UsageItem_AuditLogStorageSize) XXX_DiscardUnknown() {
xxx_messageInfo_UsageItem_AuditLogStorageSize.DiscardUnknown(m)
}
var xxx_messageInfo_UsageItem_AuditLogStorageSize proto.InternalMessageInfo
func (m *UsageItem_AuditLogStorageSize) GetCloudStorageSize() int64 {
if m != nil {
return m.CloudStorageSize
}
return 0
}
// List of UsageItems.
type UsageItemList struct {
Items []*UsageItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UsageItemList) Reset() { *m = UsageItemList{} }
func (m *UsageItemList) String() string { return proto.CompactTextString(m) }
func (*UsageItemList) ProtoMessage() {}
func (*UsageItemList) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{1}
}
func (m *UsageItemList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UsageItemList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UsageItemList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UsageItemList) XXX_Merge(src proto.Message) {
xxx_messageInfo_UsageItemList.Merge(m, src)
}
func (m *UsageItemList) XXX_Size() int {
return m.Size()
}
func (m *UsageItemList) XXX_DiscardUnknown() {
xxx_messageInfo_UsageItemList.DiscardUnknown(m)
}
var xxx_messageInfo_UsageItemList proto.InternalMessageInfo
func (m *UsageItemList) GetItems() []*UsageItem {
if m != nil {
return m.Items
}
return nil
}
// Request arguments for ListUsageItems
type ListUsageItemsRequest struct {
// Request usage items for the organization with this id.
// This is a required field.
OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// Request usage items that overlaps in time with the time period that starts with this timestamp (inclusive).
// This is a required field.
From *types.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
// Request usage items that overlaps in time with the time period that ends with this timestamp (exclusive).
// This is a required field.
To *types.Timestamp `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
// Sort descending (new to old) on started_at field (default is ascending).
SortDescending bool `protobuf:"varint,4,opt,name=sort_descending,json=sortDescending,proto3" json:"sort_descending,omitempty"`
// Limit to usage items of this kind
Kind string `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"`
// Standard list options
// This is an optional field.
Options *v1.ListOptions `protobuf:"bytes,10,opt,name=options,proto3" json:"options,omitempty"`
// Limit to usage items for the resource with this URL.
// This is an optional field.
ResourceUrl string `protobuf:"bytes,11,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
// Limit to usage items for the resource with this kind.
// This is an optional field.
ResourceKind string `protobuf:"bytes,12,opt,name=resource_kind,json=resourceKind,proto3" json:"resource_kind,omitempty"`
// Limit to usage items for the project with this id.
// This is an optional field.
ProjectId string `protobuf:"bytes,13,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Limit to usage items for the deployment with this id.
// This is an optional field.
DeploymentId string `protobuf:"bytes,14,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
// Limit to usage items for deployments with this node size.
// This is an optional field.
NodeSizeId string `protobuf:"bytes,15,opt,name=node_size_id,json=nodeSizeId,proto3" json:"node_size_id,omitempty"`
// Limit to usage items for deployments in this region.
// This is an optional field.
RegionId string `protobuf:"bytes,16,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
// If set, limit to usage items that have no invoice_id set.
HasNoInvoiceId bool `protobuf:"varint,20,opt,name=has_no_invoice_id,json=hasNoInvoiceId,proto3" json:"has_no_invoice_id,omitempty"`
// If set, limit to usage items that have an invoice_id set.
HasInvoiceId bool `protobuf:"varint,21,opt,name=has_invoice_id,json=hasInvoiceId,proto3" json:"has_invoice_id,omitempty"`
// If set, limit to usage items that have the invoice_id set to this specific value.
// This is an optional field.
InvoiceId string `protobuf:"bytes,22,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListUsageItemsRequest) Reset() { *m = ListUsageItemsRequest{} }
func (m *ListUsageItemsRequest) String() string { return proto.CompactTextString(m) }
func (*ListUsageItemsRequest) ProtoMessage() {}
func (*ListUsageItemsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fc9154f4fefb0f53, []int{2}
}
func (m *ListUsageItemsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ListUsageItemsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ListUsageItemsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ListUsageItemsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListUsageItemsRequest.Merge(m, src)
}
func (m *ListUsageItemsRequest) XXX_Size() int {
return m.Size()
}
func (m *ListUsageItemsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListUsageItemsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListUsageItemsRequest proto.InternalMessageInfo
func (m *ListUsageItemsRequest) GetOrganizationId() string {
if m != nil {
return m.OrganizationId
}
return ""
}
func (m *ListUsageItemsRequest) GetFrom() *types.Timestamp {
if m != nil {
return m.From
}
return nil
}
func (m *ListUsageItemsRequest) GetTo() *types.Timestamp {
if m != nil {
return m.To
}
return nil
}
func (m *ListUsageItemsRequest) GetSortDescending() bool {
if m != nil {
return m.SortDescending
}
return false
}
func (m *ListUsageItemsRequest) GetKind() string {
if m != nil {
return m.Kind
}
return ""
}
func (m *ListUsageItemsRequest) GetOptions() *v1.ListOptions {
if m != nil {
return m.Options
}
return nil
}
func (m *ListUsageItemsRequest) GetResourceUrl() string {
if m != nil {
return m.ResourceUrl
}
return ""
}
func (m *ListUsageItemsRequest) GetResourceKind() string {
if m != nil {
return m.ResourceKind
}
return ""
}
func (m *ListUsageItemsRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""