@@ -11,6 +11,10 @@ import (
1111
1212// UsageSDSHour Sensitive Data Scanner usage for a given organization for a given hour.
1313type UsageSDSHour struct {
14+ // The total number of bytes scanned of APM usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
15+ ApmScannedBytes * int64 `json:"apm_scanned_bytes,omitempty"`
16+ // The total number of bytes scanned of Events usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
17+ EventsScannedBytes * int64 `json:"events_scanned_bytes,omitempty"`
1418 // The hour for the usage.
1519 Hour * time.Time `json:"hour,omitempty"`
1620 // The total number of bytes scanned of logs usage by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
@@ -19,6 +23,8 @@ type UsageSDSHour struct {
1923 OrgName * string `json:"org_name,omitempty"`
2024 // The organization public ID.
2125 PublicId * string `json:"public_id,omitempty"`
26+ // The total number of bytes scanned of RUM usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
27+ RumScannedBytes * int64 `json:"rum_scanned_bytes,omitempty"`
2228 // The total number of bytes scanned across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
2329 TotalScannedBytes * int64 `json:"total_scanned_bytes,omitempty"`
2430 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -43,6 +49,62 @@ func NewUsageSDSHourWithDefaults() *UsageSDSHour {
4349 return & this
4450}
4551
52+ // GetApmScannedBytes returns the ApmScannedBytes field value if set, zero value otherwise.
53+ func (o * UsageSDSHour ) GetApmScannedBytes () int64 {
54+ if o == nil || o .ApmScannedBytes == nil {
55+ var ret int64
56+ return ret
57+ }
58+ return * o .ApmScannedBytes
59+ }
60+
61+ // GetApmScannedBytesOk returns a tuple with the ApmScannedBytes field value if set, nil otherwise
62+ // and a boolean to check if the value has been set.
63+ func (o * UsageSDSHour ) GetApmScannedBytesOk () (* int64 , bool ) {
64+ if o == nil || o .ApmScannedBytes == nil {
65+ return nil , false
66+ }
67+ return o .ApmScannedBytes , true
68+ }
69+
70+ // HasApmScannedBytes returns a boolean if a field has been set.
71+ func (o * UsageSDSHour ) HasApmScannedBytes () bool {
72+ return o != nil && o .ApmScannedBytes != nil
73+ }
74+
75+ // SetApmScannedBytes gets a reference to the given int64 and assigns it to the ApmScannedBytes field.
76+ func (o * UsageSDSHour ) SetApmScannedBytes (v int64 ) {
77+ o .ApmScannedBytes = & v
78+ }
79+
80+ // GetEventsScannedBytes returns the EventsScannedBytes field value if set, zero value otherwise.
81+ func (o * UsageSDSHour ) GetEventsScannedBytes () int64 {
82+ if o == nil || o .EventsScannedBytes == nil {
83+ var ret int64
84+ return ret
85+ }
86+ return * o .EventsScannedBytes
87+ }
88+
89+ // GetEventsScannedBytesOk returns a tuple with the EventsScannedBytes field value if set, nil otherwise
90+ // and a boolean to check if the value has been set.
91+ func (o * UsageSDSHour ) GetEventsScannedBytesOk () (* int64 , bool ) {
92+ if o == nil || o .EventsScannedBytes == nil {
93+ return nil , false
94+ }
95+ return o .EventsScannedBytes , true
96+ }
97+
98+ // HasEventsScannedBytes returns a boolean if a field has been set.
99+ func (o * UsageSDSHour ) HasEventsScannedBytes () bool {
100+ return o != nil && o .EventsScannedBytes != nil
101+ }
102+
103+ // SetEventsScannedBytes gets a reference to the given int64 and assigns it to the EventsScannedBytes field.
104+ func (o * UsageSDSHour ) SetEventsScannedBytes (v int64 ) {
105+ o .EventsScannedBytes = & v
106+ }
107+
46108// GetHour returns the Hour field value if set, zero value otherwise.
47109func (o * UsageSDSHour ) GetHour () time.Time {
48110 if o == nil || o .Hour == nil {
@@ -155,6 +217,34 @@ func (o *UsageSDSHour) SetPublicId(v string) {
155217 o .PublicId = & v
156218}
157219
220+ // GetRumScannedBytes returns the RumScannedBytes field value if set, zero value otherwise.
221+ func (o * UsageSDSHour ) GetRumScannedBytes () int64 {
222+ if o == nil || o .RumScannedBytes == nil {
223+ var ret int64
224+ return ret
225+ }
226+ return * o .RumScannedBytes
227+ }
228+
229+ // GetRumScannedBytesOk returns a tuple with the RumScannedBytes field value if set, nil otherwise
230+ // and a boolean to check if the value has been set.
231+ func (o * UsageSDSHour ) GetRumScannedBytesOk () (* int64 , bool ) {
232+ if o == nil || o .RumScannedBytes == nil {
233+ return nil , false
234+ }
235+ return o .RumScannedBytes , true
236+ }
237+
238+ // HasRumScannedBytes returns a boolean if a field has been set.
239+ func (o * UsageSDSHour ) HasRumScannedBytes () bool {
240+ return o != nil && o .RumScannedBytes != nil
241+ }
242+
243+ // SetRumScannedBytes gets a reference to the given int64 and assigns it to the RumScannedBytes field.
244+ func (o * UsageSDSHour ) SetRumScannedBytes (v int64 ) {
245+ o .RumScannedBytes = & v
246+ }
247+
158248// GetTotalScannedBytes returns the TotalScannedBytes field value if set, zero value otherwise.
159249func (o * UsageSDSHour ) GetTotalScannedBytes () int64 {
160250 if o == nil || o .TotalScannedBytes == nil {
@@ -189,6 +279,12 @@ func (o UsageSDSHour) MarshalJSON() ([]byte, error) {
189279 if o .UnparsedObject != nil {
190280 return json .Marshal (o .UnparsedObject )
191281 }
282+ if o .ApmScannedBytes != nil {
283+ toSerialize ["apm_scanned_bytes" ] = o .ApmScannedBytes
284+ }
285+ if o .EventsScannedBytes != nil {
286+ toSerialize ["events_scanned_bytes" ] = o .EventsScannedBytes
287+ }
192288 if o .Hour != nil {
193289 if o .Hour .Nanosecond () == 0 {
194290 toSerialize ["hour" ] = o .Hour .Format ("2006-01-02T15:04:05Z07:00" )
@@ -205,6 +301,9 @@ func (o UsageSDSHour) MarshalJSON() ([]byte, error) {
205301 if o .PublicId != nil {
206302 toSerialize ["public_id" ] = o .PublicId
207303 }
304+ if o .RumScannedBytes != nil {
305+ toSerialize ["rum_scanned_bytes" ] = o .RumScannedBytes
306+ }
208307 if o .TotalScannedBytes != nil {
209308 toSerialize ["total_scanned_bytes" ] = o .TotalScannedBytes
210309 }
@@ -219,11 +318,14 @@ func (o UsageSDSHour) MarshalJSON() ([]byte, error) {
219318func (o * UsageSDSHour ) UnmarshalJSON (bytes []byte ) (err error ) {
220319 raw := map [string ]interface {}{}
221320 all := struct {
222- Hour * time.Time `json:"hour,omitempty"`
223- LogsScannedBytes * int64 `json:"logs_scanned_bytes,omitempty"`
224- OrgName * string `json:"org_name,omitempty"`
225- PublicId * string `json:"public_id,omitempty"`
226- TotalScannedBytes * int64 `json:"total_scanned_bytes,omitempty"`
321+ ApmScannedBytes * int64 `json:"apm_scanned_bytes,omitempty"`
322+ EventsScannedBytes * int64 `json:"events_scanned_bytes,omitempty"`
323+ Hour * time.Time `json:"hour,omitempty"`
324+ LogsScannedBytes * int64 `json:"logs_scanned_bytes,omitempty"`
325+ OrgName * string `json:"org_name,omitempty"`
326+ PublicId * string `json:"public_id,omitempty"`
327+ RumScannedBytes * int64 `json:"rum_scanned_bytes,omitempty"`
328+ TotalScannedBytes * int64 `json:"total_scanned_bytes,omitempty"`
227329 }{}
228330 err = json .Unmarshal (bytes , & all )
229331 if err != nil {
@@ -234,10 +336,13 @@ func (o *UsageSDSHour) UnmarshalJSON(bytes []byte) (err error) {
234336 o .UnparsedObject = raw
235337 return nil
236338 }
339+ o .ApmScannedBytes = all .ApmScannedBytes
340+ o .EventsScannedBytes = all .EventsScannedBytes
237341 o .Hour = all .Hour
238342 o .LogsScannedBytes = all .LogsScannedBytes
239343 o .OrgName = all .OrgName
240344 o .PublicId = all .PublicId
345+ o .RumScannedBytes = all .RumScannedBytes
241346 o .TotalScannedBytes = all .TotalScannedBytes
242347 return nil
243348}
0 commit comments