diff --git a/.apigentools-info b/.apigentools-info index d02e9442722..e4eb05d82ff 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-12-22 15:40:58.067618", - "spec_repo_commit": "fa551a3" + "regenerated": "2021-12-22 20:34:48.873193", + "spec_repo_commit": "1f40730" }, "v2": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-12-22 15:40:58.086721", - "spec_repo_commit": "fa551a3" + "regenerated": "2021-12-22 20:34:48.891364", + "spec_repo_commit": "1f40730" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index b79d6b81089..e3702a8eeb5 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -13070,6 +13070,12 @@ components: description: The hour for the usage. format: date-time type: string + org_name: + description: The organization name. + type: string + public_id: + description: The organization public ID. + type: string session_count: description: Contains the number of RUM Sessions. format: int64 @@ -13495,6 +13501,11 @@ components: in the current date for all organizations. format: int64 type: integer + rum_browser_and_mobile_session_count: + description: Shows the sum of all mobile sessions and all browser lite and + legacy sessions over all hours in the current month for all organizations. + format: int64 + type: integer rum_session_count_sum: description: Shows the sum of all browser RUM Sessions over all hours in the current date for all organizations @@ -13769,6 +13780,11 @@ components: public_id: description: The organization public id. type: string + rum_browser_and_mobile_session_count: + description: Shows the sum of all mobile sessions and all browser lite and + legacy sessions over all hours in the current date for the given org. + format: int64 + type: integer rum_session_count_sum: description: Shows the sum of all browser RUM Sessions over all hours in the current date for the given org. @@ -14083,6 +14099,11 @@ components: December 1, 2020). format: int64 type: integer + rum_browser_and_mobile_session_count: + description: Shows the sum of all mobile sessions and all browser lite and + legacy sessions over all hours in the current month for all organizations. + format: int64 + type: integer rum_session_count_agg_sum: description: Shows the sum of all browser RUM Sessions over all hours in the current months for all organizations. diff --git a/api/v1/datadog/docs/UsageRumSessionsHour.md b/api/v1/datadog/docs/UsageRumSessionsHour.md index ed51d66f554..22c3797990f 100644 --- a/api/v1/datadog/docs/UsageRumSessionsHour.md +++ b/api/v1/datadog/docs/UsageRumSessionsHour.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ---- | ---- | ----------- | ------ **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] +**OrgName** | Pointer to **string** | The organization name. | [optional] +**PublicId** | Pointer to **string** | The organization public ID. | [optional] **SessionCount** | Pointer to **int64** | Contains the number of RUM Sessions. | [optional] **SessionCountAndroid** | Pointer to **int64** | Contains the number of mobile RUM Sessions on Android (data available beginning December 1, 2020). | [optional] **SessionCountIos** | Pointer to **int64** | Contains the number of mobile RUM Sessions on iOS (data available beginning December 1, 2020). | [optional] @@ -53,6 +55,56 @@ SetHour sets Hour field to given value. HasHour returns a boolean if a field has been set. +### GetOrgName + +`func (o *UsageRumSessionsHour) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *UsageRumSessionsHour) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *UsageRumSessionsHour) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *UsageRumSessionsHour) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetPublicId + +`func (o *UsageRumSessionsHour) GetPublicId() string` + +GetPublicId returns the PublicId field if non-nil, zero value otherwise. + +### GetPublicIdOk + +`func (o *UsageRumSessionsHour) GetPublicIdOk() (*string, bool)` + +GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicId + +`func (o *UsageRumSessionsHour) SetPublicId(v string)` + +SetPublicId sets PublicId field to given value. + +### HasPublicId + +`func (o *UsageRumSessionsHour) HasPublicId() bool` + +HasPublicId returns a boolean if a field has been set. + ### GetSessionCount `func (o *UsageRumSessionsHour) GetSessionCount() int64` diff --git a/api/v1/datadog/docs/UsageSummaryDate.md b/api/v1/datadog/docs/UsageSummaryDate.md index 4e8b2f34377..2b4d34e5118 100644 --- a/api/v1/datadog/docs/UsageSummaryDate.md +++ b/api/v1/datadog/docs/UsageSummaryDate.md @@ -48,6 +48,7 @@ Name | Type | Description | Notes **OpentelemetryHostTop99p** | Pointer to **int64** | Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. | [optional] **Orgs** | Pointer to [**[]UsageSummaryDateOrg**](UsageSummaryDateOrg.md) | Organizations associated with a user. | [optional] **ProfilingHostTop99p** | Pointer to **int64** | Shows the 99th percentile of all profiled hosts over all hours in the current date for all organizations. | [optional] +**RumBrowserAndMobileSessionCount** | Pointer to **int64** | Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. | [optional] **RumSessionCountSum** | Pointer to **int64** | Shows the sum of all browser RUM Sessions over all hours in the current date for all organizations | [optional] **RumTotalSessionCountSum** | Pointer to **int64** | Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for all organizations. | [optional] **RumUnitsSum** | Pointer to **int64** | Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations. | [optional] @@ -1178,6 +1179,31 @@ SetProfilingHostTop99p sets ProfilingHostTop99p field to given value. HasProfilingHostTop99p returns a boolean if a field has been set. +### GetRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryDate) GetRumBrowserAndMobileSessionCount() int64` + +GetRumBrowserAndMobileSessionCount returns the RumBrowserAndMobileSessionCount field if non-nil, zero value otherwise. + +### GetRumBrowserAndMobileSessionCountOk + +`func (o *UsageSummaryDate) GetRumBrowserAndMobileSessionCountOk() (*int64, bool)` + +GetRumBrowserAndMobileSessionCountOk returns a tuple with the RumBrowserAndMobileSessionCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryDate) SetRumBrowserAndMobileSessionCount(v int64)` + +SetRumBrowserAndMobileSessionCount sets RumBrowserAndMobileSessionCount field to given value. + +### HasRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryDate) HasRumBrowserAndMobileSessionCount() bool` + +HasRumBrowserAndMobileSessionCount returns a boolean if a field has been set. + ### GetRumSessionCountSum `func (o *UsageSummaryDate) GetRumSessionCountSum() int64` diff --git a/api/v1/datadog/docs/UsageSummaryDateOrg.md b/api/v1/datadog/docs/UsageSummaryDateOrg.md index ed22dfbcfbb..2b655090eb4 100644 --- a/api/v1/datadog/docs/UsageSummaryDateOrg.md +++ b/api/v1/datadog/docs/UsageSummaryDateOrg.md @@ -49,6 +49,7 @@ Name | Type | Description | Notes **OpentelemetryHostTop99p** | Pointer to **int64** | Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. | [optional] **ProfilingHostTop99p** | Pointer to **int64** | Shows the 99th percentile of all profiled hosts over all hours in the current date for the given org. | [optional] **PublicId** | Pointer to **string** | The organization public id. | [optional] +**RumBrowserAndMobileSessionCount** | Pointer to **int64** | Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org. | [optional] **RumSessionCountSum** | Pointer to **int64** | Shows the sum of all browser RUM Sessions over all hours in the current date for the given org. | [optional] **RumTotalSessionCountSum** | Pointer to **int64** | Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. | [optional] **RumUnitsSum** | Pointer to **int64** | Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org. | [optional] @@ -1204,6 +1205,31 @@ SetPublicId sets PublicId field to given value. HasPublicId returns a boolean if a field has been set. +### GetRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryDateOrg) GetRumBrowserAndMobileSessionCount() int64` + +GetRumBrowserAndMobileSessionCount returns the RumBrowserAndMobileSessionCount field if non-nil, zero value otherwise. + +### GetRumBrowserAndMobileSessionCountOk + +`func (o *UsageSummaryDateOrg) GetRumBrowserAndMobileSessionCountOk() (*int64, bool)` + +GetRumBrowserAndMobileSessionCountOk returns a tuple with the RumBrowserAndMobileSessionCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryDateOrg) SetRumBrowserAndMobileSessionCount(v int64)` + +SetRumBrowserAndMobileSessionCount sets RumBrowserAndMobileSessionCount field to given value. + +### HasRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryDateOrg) HasRumBrowserAndMobileSessionCount() bool` + +HasRumBrowserAndMobileSessionCount returns a boolean if a field has been set. + ### GetRumSessionCountSum `func (o *UsageSummaryDateOrg) GetRumSessionCountSum() int64` diff --git a/api/v1/datadog/docs/UsageSummaryResponse.md b/api/v1/datadog/docs/UsageSummaryResponse.md index 8101af2968e..e38d09a22a0 100644 --- a/api/v1/datadog/docs/UsageSummaryResponse.md +++ b/api/v1/datadog/docs/UsageSummaryResponse.md @@ -55,6 +55,7 @@ Name | Type | Description | Notes **ProfilingHostCountTop99pSum** | Pointer to **int64** | Shows the 99th percentile of all profiled hosts over all hours in the current months for all organizations. | [optional] **RehydratedIndexedEventsAggSum** | Pointer to **int64** | Shows the sum of all rehydrated logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). | [optional] **RehydratedIngestedBytesAggSum** | Pointer to **int64** | Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). | [optional] +**RumBrowserAndMobileSessionCount** | Pointer to **int64** | Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. | [optional] **RumSessionCountAggSum** | Pointer to **int64** | Shows the sum of all browser RUM Sessions over all hours in the current months for all organizations. | [optional] **RumTotalSessionCountAggSum** | Pointer to **int64** | Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. | [optional] **RumUnitsAggSum** | Pointer to **int64** | Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations. | [optional] @@ -1362,6 +1363,31 @@ SetRehydratedIngestedBytesAggSum sets RehydratedIngestedBytesAggSum field to giv HasRehydratedIngestedBytesAggSum returns a boolean if a field has been set. +### GetRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryResponse) GetRumBrowserAndMobileSessionCount() int64` + +GetRumBrowserAndMobileSessionCount returns the RumBrowserAndMobileSessionCount field if non-nil, zero value otherwise. + +### GetRumBrowserAndMobileSessionCountOk + +`func (o *UsageSummaryResponse) GetRumBrowserAndMobileSessionCountOk() (*int64, bool)` + +GetRumBrowserAndMobileSessionCountOk returns a tuple with the RumBrowserAndMobileSessionCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryResponse) SetRumBrowserAndMobileSessionCount(v int64)` + +SetRumBrowserAndMobileSessionCount sets RumBrowserAndMobileSessionCount field to given value. + +### HasRumBrowserAndMobileSessionCount + +`func (o *UsageSummaryResponse) HasRumBrowserAndMobileSessionCount() bool` + +HasRumBrowserAndMobileSessionCount returns a boolean if a field has been set. + ### GetRumSessionCountAggSum `func (o *UsageSummaryResponse) GetRumSessionCountAggSum() int64` diff --git a/api/v1/datadog/model_usage_rum_sessions_hour.go b/api/v1/datadog/model_usage_rum_sessions_hour.go index d89d980b1a0..32cffd484d0 100644 --- a/api/v1/datadog/model_usage_rum_sessions_hour.go +++ b/api/v1/datadog/model_usage_rum_sessions_hour.go @@ -17,6 +17,10 @@ import ( type UsageRumSessionsHour struct { // The hour for the usage. Hour *time.Time `json:"hour,omitempty"` + // The organization name. + OrgName *string `json:"org_name,omitempty"` + // The organization public ID. + PublicId *string `json:"public_id,omitempty"` // Contains the number of RUM Sessions. SessionCount *int64 `json:"session_count,omitempty"` // Contains the number of mobile RUM Sessions on Android (data available beginning December 1, 2020). @@ -76,6 +80,70 @@ func (o *UsageRumSessionsHour) SetHour(v time.Time) { o.Hour = &v } +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *UsageRumSessionsHour) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageRumSessionsHour) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *UsageRumSessionsHour) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *UsageRumSessionsHour) SetOrgName(v string) { + o.OrgName = &v +} + +// GetPublicId returns the PublicId field value if set, zero value otherwise. +func (o *UsageRumSessionsHour) GetPublicId() string { + if o == nil || o.PublicId == nil { + var ret string + return ret + } + return *o.PublicId +} + +// GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageRumSessionsHour) GetPublicIdOk() (*string, bool) { + if o == nil || o.PublicId == nil { + return nil, false + } + return o.PublicId, true +} + +// HasPublicId returns a boolean if a field has been set. +func (o *UsageRumSessionsHour) HasPublicId() bool { + if o != nil && o.PublicId != nil { + return true + } + + return false +} + +// SetPublicId gets a reference to the given string and assigns it to the PublicId field. +func (o *UsageRumSessionsHour) SetPublicId(v string) { + o.PublicId = &v +} + // GetSessionCount returns the SessionCount field value if set, zero value otherwise. func (o *UsageRumSessionsHour) GetSessionCount() int64 { if o == nil || o.SessionCount == nil { @@ -180,6 +248,12 @@ func (o UsageRumSessionsHour) MarshalJSON() ([]byte, error) { if o.Hour != nil { toSerialize["hour"] = o.Hour } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.PublicId != nil { + toSerialize["public_id"] = o.PublicId + } if o.SessionCount != nil { toSerialize["session_count"] = o.SessionCount } @@ -196,6 +270,8 @@ func (o *UsageRumSessionsHour) UnmarshalJSON(bytes []byte) (err error) { raw := map[string]interface{}{} all := struct { Hour *time.Time `json:"hour,omitempty"` + OrgName *string `json:"org_name,omitempty"` + PublicId *string `json:"public_id,omitempty"` SessionCount *int64 `json:"session_count,omitempty"` SessionCountAndroid *int64 `json:"session_count_android,omitempty"` SessionCountIos *int64 `json:"session_count_ios,omitempty"` @@ -210,6 +286,8 @@ func (o *UsageRumSessionsHour) UnmarshalJSON(bytes []byte) (err error) { return nil } o.Hour = all.Hour + o.OrgName = all.OrgName + o.PublicId = all.PublicId o.SessionCount = all.SessionCount o.SessionCountAndroid = all.SessionCountAndroid o.SessionCountIos = all.SessionCountIos diff --git a/api/v1/datadog/model_usage_summary_date.go b/api/v1/datadog/model_usage_summary_date.go index f2b6370fe89..a928e87089c 100644 --- a/api/v1/datadog/model_usage_summary_date.go +++ b/api/v1/datadog/model_usage_summary_date.go @@ -103,6 +103,8 @@ type UsageSummaryDate struct { Orgs *[]UsageSummaryDateOrg `json:"orgs,omitempty"` // Shows the 99th percentile of all profiled hosts over all hours in the current date for all organizations. ProfilingHostTop99p *int64 `json:"profiling_host_top99p,omitempty"` + // Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. + RumBrowserAndMobileSessionCount *int64 `json:"rum_browser_and_mobile_session_count,omitempty"` // Shows the sum of all browser RUM Sessions over all hours in the current date for all organizations RumSessionCountSum *int64 `json:"rum_session_count_sum,omitempty"` // Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for all organizations. @@ -1552,6 +1554,38 @@ func (o *UsageSummaryDate) SetProfilingHostTop99p(v int64) { o.ProfilingHostTop99p = &v } +// GetRumBrowserAndMobileSessionCount returns the RumBrowserAndMobileSessionCount field value if set, zero value otherwise. +func (o *UsageSummaryDate) GetRumBrowserAndMobileSessionCount() int64 { + if o == nil || o.RumBrowserAndMobileSessionCount == nil { + var ret int64 + return ret + } + return *o.RumBrowserAndMobileSessionCount +} + +// GetRumBrowserAndMobileSessionCountOk returns a tuple with the RumBrowserAndMobileSessionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageSummaryDate) GetRumBrowserAndMobileSessionCountOk() (*int64, bool) { + if o == nil || o.RumBrowserAndMobileSessionCount == nil { + return nil, false + } + return o.RumBrowserAndMobileSessionCount, true +} + +// HasRumBrowserAndMobileSessionCount returns a boolean if a field has been set. +func (o *UsageSummaryDate) HasRumBrowserAndMobileSessionCount() bool { + if o != nil && o.RumBrowserAndMobileSessionCount != nil { + return true + } + + return false +} + +// SetRumBrowserAndMobileSessionCount gets a reference to the given int64 and assigns it to the RumBrowserAndMobileSessionCount field. +func (o *UsageSummaryDate) SetRumBrowserAndMobileSessionCount(v int64) { + o.RumBrowserAndMobileSessionCount = &v +} + // GetRumSessionCountSum returns the RumSessionCountSum field value if set, zero value otherwise. func (o *UsageSummaryDate) GetRumSessionCountSum() int64 { if o == nil || o.RumSessionCountSum == nil { @@ -2009,6 +2043,9 @@ func (o UsageSummaryDate) MarshalJSON() ([]byte, error) { if o.ProfilingHostTop99p != nil { toSerialize["profiling_host_top99p"] = o.ProfilingHostTop99p } + if o.RumBrowserAndMobileSessionCount != nil { + toSerialize["rum_browser_and_mobile_session_count"] = o.RumBrowserAndMobileSessionCount + } if o.RumSessionCountSum != nil { toSerialize["rum_session_count_sum"] = o.RumSessionCountSum } @@ -2089,6 +2126,7 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) { OpentelemetryHostTop99p *int64 `json:"opentelemetry_host_top99p,omitempty"` Orgs *[]UsageSummaryDateOrg `json:"orgs,omitempty"` ProfilingHostTop99p *int64 `json:"profiling_host_top99p,omitempty"` + RumBrowserAndMobileSessionCount *int64 `json:"rum_browser_and_mobile_session_count,omitempty"` RumSessionCountSum *int64 `json:"rum_session_count_sum,omitempty"` RumTotalSessionCountSum *int64 `json:"rum_total_session_count_sum,omitempty"` RumUnitsSum *int64 `json:"rum_units_sum,omitempty"` @@ -2153,6 +2191,7 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) { o.OpentelemetryHostTop99p = all.OpentelemetryHostTop99p o.Orgs = all.Orgs o.ProfilingHostTop99p = all.ProfilingHostTop99p + o.RumBrowserAndMobileSessionCount = all.RumBrowserAndMobileSessionCount o.RumSessionCountSum = all.RumSessionCountSum o.RumTotalSessionCountSum = all.RumTotalSessionCountSum o.RumUnitsSum = all.RumUnitsSum diff --git a/api/v1/datadog/model_usage_summary_date_org.go b/api/v1/datadog/model_usage_summary_date_org.go index 937c739ab33..4039af18411 100644 --- a/api/v1/datadog/model_usage_summary_date_org.go +++ b/api/v1/datadog/model_usage_summary_date_org.go @@ -104,6 +104,8 @@ type UsageSummaryDateOrg struct { ProfilingHostTop99p *int64 `json:"profiling_host_top99p,omitempty"` // The organization public id. PublicId *string `json:"public_id,omitempty"` + // Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org. + RumBrowserAndMobileSessionCount *int64 `json:"rum_browser_and_mobile_session_count,omitempty"` // Shows the sum of all browser RUM Sessions over all hours in the current date for the given org. RumSessionCountSum *int64 `json:"rum_session_count_sum,omitempty"` // Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. @@ -1585,6 +1587,38 @@ func (o *UsageSummaryDateOrg) SetPublicId(v string) { o.PublicId = &v } +// GetRumBrowserAndMobileSessionCount returns the RumBrowserAndMobileSessionCount field value if set, zero value otherwise. +func (o *UsageSummaryDateOrg) GetRumBrowserAndMobileSessionCount() int64 { + if o == nil || o.RumBrowserAndMobileSessionCount == nil { + var ret int64 + return ret + } + return *o.RumBrowserAndMobileSessionCount +} + +// GetRumBrowserAndMobileSessionCountOk returns a tuple with the RumBrowserAndMobileSessionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageSummaryDateOrg) GetRumBrowserAndMobileSessionCountOk() (*int64, bool) { + if o == nil || o.RumBrowserAndMobileSessionCount == nil { + return nil, false + } + return o.RumBrowserAndMobileSessionCount, true +} + +// HasRumBrowserAndMobileSessionCount returns a boolean if a field has been set. +func (o *UsageSummaryDateOrg) HasRumBrowserAndMobileSessionCount() bool { + if o != nil && o.RumBrowserAndMobileSessionCount != nil { + return true + } + + return false +} + +// SetRumBrowserAndMobileSessionCount gets a reference to the given int64 and assigns it to the RumBrowserAndMobileSessionCount field. +func (o *UsageSummaryDateOrg) SetRumBrowserAndMobileSessionCount(v int64) { + o.RumBrowserAndMobileSessionCount = &v +} + // GetRumSessionCountSum returns the RumSessionCountSum field value if set, zero value otherwise. func (o *UsageSummaryDateOrg) GetRumSessionCountSum() int64 { if o == nil || o.RumSessionCountSum == nil { @@ -2045,6 +2079,9 @@ func (o UsageSummaryDateOrg) MarshalJSON() ([]byte, error) { if o.PublicId != nil { toSerialize["public_id"] = o.PublicId } + if o.RumBrowserAndMobileSessionCount != nil { + toSerialize["rum_browser_and_mobile_session_count"] = o.RumBrowserAndMobileSessionCount + } if o.RumSessionCountSum != nil { toSerialize["rum_session_count_sum"] = o.RumSessionCountSum } @@ -2126,6 +2163,7 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) { OpentelemetryHostTop99p *int64 `json:"opentelemetry_host_top99p,omitempty"` ProfilingHostTop99p *int64 `json:"profiling_host_top99p,omitempty"` PublicId *string `json:"public_id,omitempty"` + RumBrowserAndMobileSessionCount *int64 `json:"rum_browser_and_mobile_session_count,omitempty"` RumSessionCountSum *int64 `json:"rum_session_count_sum,omitempty"` RumTotalSessionCountSum *int64 `json:"rum_total_session_count_sum,omitempty"` RumUnitsSum *int64 `json:"rum_units_sum,omitempty"` @@ -2191,6 +2229,7 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) { o.OpentelemetryHostTop99p = all.OpentelemetryHostTop99p o.ProfilingHostTop99p = all.ProfilingHostTop99p o.PublicId = all.PublicId + o.RumBrowserAndMobileSessionCount = all.RumBrowserAndMobileSessionCount o.RumSessionCountSum = all.RumSessionCountSum o.RumTotalSessionCountSum = all.RumTotalSessionCountSum o.RumUnitsSum = all.RumUnitsSum diff --git a/api/v1/datadog/model_usage_summary_response.go b/api/v1/datadog/model_usage_summary_response.go index 2be46914e15..d9244130bb5 100644 --- a/api/v1/datadog/model_usage_summary_response.go +++ b/api/v1/datadog/model_usage_summary_response.go @@ -116,6 +116,8 @@ type UsageSummaryResponse struct { RehydratedIndexedEventsAggSum *int64 `json:"rehydrated_indexed_events_agg_sum,omitempty"` // Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). RehydratedIngestedBytesAggSum *int64 `json:"rehydrated_ingested_bytes_agg_sum,omitempty"` + // Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. + RumBrowserAndMobileSessionCount *int64 `json:"rum_browser_and_mobile_session_count,omitempty"` // Shows the sum of all browser RUM Sessions over all hours in the current months for all organizations. RumSessionCountAggSum *int64 `json:"rum_session_count_agg_sum,omitempty"` // Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. @@ -1793,6 +1795,38 @@ func (o *UsageSummaryResponse) SetRehydratedIngestedBytesAggSum(v int64) { o.RehydratedIngestedBytesAggSum = &v } +// GetRumBrowserAndMobileSessionCount returns the RumBrowserAndMobileSessionCount field value if set, zero value otherwise. +func (o *UsageSummaryResponse) GetRumBrowserAndMobileSessionCount() int64 { + if o == nil || o.RumBrowserAndMobileSessionCount == nil { + var ret int64 + return ret + } + return *o.RumBrowserAndMobileSessionCount +} + +// GetRumBrowserAndMobileSessionCountOk returns a tuple with the RumBrowserAndMobileSessionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageSummaryResponse) GetRumBrowserAndMobileSessionCountOk() (*int64, bool) { + if o == nil || o.RumBrowserAndMobileSessionCount == nil { + return nil, false + } + return o.RumBrowserAndMobileSessionCount, true +} + +// HasRumBrowserAndMobileSessionCount returns a boolean if a field has been set. +func (o *UsageSummaryResponse) HasRumBrowserAndMobileSessionCount() bool { + if o != nil && o.RumBrowserAndMobileSessionCount != nil { + return true + } + + return false +} + +// SetRumBrowserAndMobileSessionCount gets a reference to the given int64 and assigns it to the RumBrowserAndMobileSessionCount field. +func (o *UsageSummaryResponse) SetRumBrowserAndMobileSessionCount(v int64) { + o.RumBrowserAndMobileSessionCount = &v +} + // GetRumSessionCountAggSum returns the RumSessionCountAggSum field value if set, zero value otherwise. func (o *UsageSummaryResponse) GetRumSessionCountAggSum() int64 { if o == nil || o.RumSessionCountAggSum == nil { @@ -2335,6 +2369,9 @@ func (o UsageSummaryResponse) MarshalJSON() ([]byte, error) { if o.RehydratedIngestedBytesAggSum != nil { toSerialize["rehydrated_ingested_bytes_agg_sum"] = o.RehydratedIngestedBytesAggSum } + if o.RumBrowserAndMobileSessionCount != nil { + toSerialize["rum_browser_and_mobile_session_count"] = o.RumBrowserAndMobileSessionCount + } if o.RumSessionCountAggSum != nil { toSerialize["rum_session_count_agg_sum"] = o.RumSessionCountAggSum } @@ -2428,6 +2465,7 @@ func (o *UsageSummaryResponse) UnmarshalJSON(bytes []byte) (err error) { ProfilingHostCountTop99pSum *int64 `json:"profiling_host_count_top99p_sum,omitempty"` RehydratedIndexedEventsAggSum *int64 `json:"rehydrated_indexed_events_agg_sum,omitempty"` RehydratedIngestedBytesAggSum *int64 `json:"rehydrated_ingested_bytes_agg_sum,omitempty"` + RumBrowserAndMobileSessionCount *int64 `json:"rum_browser_and_mobile_session_count,omitempty"` RumSessionCountAggSum *int64 `json:"rum_session_count_agg_sum,omitempty"` RumTotalSessionCountAggSum *int64 `json:"rum_total_session_count_agg_sum,omitempty"` RumUnitsAggSum *int64 `json:"rum_units_agg_sum,omitempty"` @@ -2501,6 +2539,7 @@ func (o *UsageSummaryResponse) UnmarshalJSON(bytes []byte) (err error) { o.ProfilingHostCountTop99pSum = all.ProfilingHostCountTop99pSum o.RehydratedIndexedEventsAggSum = all.RehydratedIndexedEventsAggSum o.RehydratedIngestedBytesAggSum = all.RehydratedIngestedBytesAggSum + o.RumBrowserAndMobileSessionCount = all.RumBrowserAndMobileSessionCount o.RumSessionCountAggSum = all.RumSessionCountAggSum o.RumTotalSessionCountAggSum = all.RumTotalSessionCountAggSum o.RumUnitsAggSum = all.RumUnitsAggSum