Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Flutter fields to rum product in the meter usage API #1881

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-17 20:23:09.577533",
"spec_repo_commit": "643c315f"
"regenerated": "2023-02-17 21:33:27.637216",
"spec_repo_commit": "f388a249"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-17 20:23:09.594176",
"spec_repo_commit": "643c315f"
"regenerated": "2023-02-17 21:33:27.656680",
"spec_repo_commit": "f388a249"
}
}
}
21 changes: 21 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16425,6 +16425,12 @@ components:
format: int64
nullable: true
type: integer
session_count_flutter:
description: Contains the number of mobile RUM Sessions on Flutter (data
available beginning March 1, 2023).
format: int64
nullable: true
type: integer
session_count_ios:
description: Contains the number of mobile RUM Sessions on iOS (data available
beginning December 1, 2020).
Expand Down Expand Up @@ -16891,6 +16897,11 @@ components:
hours in the current date for all organizations.
format: int64
type: integer
mobile_rum_session_count_flutter_sum:
description: Shows the sum of all mobile RUM Sessions on Flutter over all
hours in the current date for all organizations.
format: int64
type: integer
mobile_rum_session_count_ios_sum:
description: Shows the sum of all mobile RUM Sessions on iOS over all hours
in the current date for all organizations.
Expand Down Expand Up @@ -17271,6 +17282,11 @@ components:
hours in the current date for the given org.
format: int64
type: integer
mobile_rum_session_count_flutter_sum:
description: Shows the sum of all mobile RUM Sessions on Flutter over all
hours in the current date for the given org.
format: int64
type: integer
mobile_rum_session_count_ios_sum:
description: Shows the sum of all mobile RUM Sessions on iOS over all hours
in the current date for the given org.
Expand Down Expand Up @@ -17688,6 +17704,11 @@ components:
hours in the current months for all organizations.
format: int64
type: integer
mobile_rum_session_count_flutter_agg_sum:
description: Shows the sum of all mobile RUM Sessions on Flutter over all
hours in the current months for all organizations.
format: int64
type: integer
mobile_rum_session_count_ios_agg_sum:
description: Shows the sum of all mobile RUM Sessions on iOS over all hours
in the current months for all organizations.
Expand Down
46 changes: 46 additions & 0 deletions api/datadogV1/model_usage_rum_sessions_hour.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ type UsageRumSessionsHour struct {
SessionCount datadog.NullableInt64 `json:"session_count,omitempty"`
// Contains the number of mobile RUM Sessions on Android (data available beginning December 1, 2020).
SessionCountAndroid datadog.NullableInt64 `json:"session_count_android,omitempty"`
// Contains the number of mobile RUM Sessions on Flutter (data available beginning March 1, 2023).
SessionCountFlutter datadog.NullableInt64 `json:"session_count_flutter,omitempty"`
// Contains the number of mobile RUM Sessions on iOS (data available beginning December 1, 2020).
SessionCountIos datadog.NullableInt64 `json:"session_count_ios,omitempty"`
// Contains the number of mobile RUM Sessions on React Native (data available beginning May 1, 2022).
Expand Down Expand Up @@ -241,6 +243,45 @@ func (o *UsageRumSessionsHour) UnsetSessionCountAndroid() {
o.SessionCountAndroid.Unset()
}

// GetSessionCountFlutter returns the SessionCountFlutter field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UsageRumSessionsHour) GetSessionCountFlutter() int64 {
if o == nil || o.SessionCountFlutter.Get() == nil {
var ret int64
return ret
}
return *o.SessionCountFlutter.Get()
}

// GetSessionCountFlutterOk returns a tuple with the SessionCountFlutter field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *UsageRumSessionsHour) GetSessionCountFlutterOk() (*int64, bool) {
if o == nil {
return nil, false
}
return o.SessionCountFlutter.Get(), o.SessionCountFlutter.IsSet()
}

// HasSessionCountFlutter returns a boolean if a field has been set.
func (o *UsageRumSessionsHour) HasSessionCountFlutter() bool {
return o != nil && o.SessionCountFlutter.IsSet()
}

// SetSessionCountFlutter gets a reference to the given datadog.NullableInt64 and assigns it to the SessionCountFlutter field.
func (o *UsageRumSessionsHour) SetSessionCountFlutter(v int64) {
o.SessionCountFlutter.Set(&v)
}

// SetSessionCountFlutterNil sets the value for SessionCountFlutter to be an explicit nil.
func (o *UsageRumSessionsHour) SetSessionCountFlutterNil() {
o.SessionCountFlutter.Set(nil)
}

// UnsetSessionCountFlutter ensures that no value is present for SessionCountFlutter, not even an explicit nil.
func (o *UsageRumSessionsHour) UnsetSessionCountFlutter() {
o.SessionCountFlutter.Unset()
}

// GetSessionCountIos returns the SessionCountIos field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UsageRumSessionsHour) GetSessionCountIos() int64 {
if o == nil || o.SessionCountIos.Get() == nil {
Expand Down Expand Up @@ -347,6 +388,9 @@ func (o UsageRumSessionsHour) MarshalJSON() ([]byte, error) {
if o.SessionCountAndroid.IsSet() {
toSerialize["session_count_android"] = o.SessionCountAndroid.Get()
}
if o.SessionCountFlutter.IsSet() {
toSerialize["session_count_flutter"] = o.SessionCountFlutter.Get()
}
if o.SessionCountIos.IsSet() {
toSerialize["session_count_ios"] = o.SessionCountIos.Get()
}
Expand All @@ -370,6 +414,7 @@ func (o *UsageRumSessionsHour) UnmarshalJSON(bytes []byte) (err error) {
ReplaySessionCount *int64 `json:"replay_session_count,omitempty"`
SessionCount datadog.NullableInt64 `json:"session_count,omitempty"`
SessionCountAndroid datadog.NullableInt64 `json:"session_count_android,omitempty"`
SessionCountFlutter datadog.NullableInt64 `json:"session_count_flutter,omitempty"`
SessionCountIos datadog.NullableInt64 `json:"session_count_ios,omitempty"`
SessionCountReactnative datadog.NullableInt64 `json:"session_count_reactnative,omitempty"`
}{}
Expand All @@ -388,6 +433,7 @@ func (o *UsageRumSessionsHour) UnmarshalJSON(bytes []byte) (err error) {
o.ReplaySessionCount = all.ReplaySessionCount
o.SessionCount = all.SessionCount
o.SessionCountAndroid = all.SessionCountAndroid
o.SessionCountFlutter = all.SessionCountFlutter
o.SessionCountIos = all.SessionCountIos
o.SessionCountReactnative = all.SessionCountReactnative
return nil
Expand Down
35 changes: 35 additions & 0 deletions api/datadogV1/model_usage_summary_date.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ type UsageSummaryDate struct {
MobileRumLiteSessionCountSum *int64 `json:"mobile_rum_lite_session_count_sum,omitempty"`
// Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for all organizations.
MobileRumSessionCountAndroidSum *int64 `json:"mobile_rum_session_count_android_sum,omitempty"`
// Shows the sum of all mobile RUM Sessions on Flutter over all hours in the current date for all organizations.
MobileRumSessionCountFlutterSum *int64 `json:"mobile_rum_session_count_flutter_sum,omitempty"`
// Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for all organizations.
MobileRumSessionCountIosSum *int64 `json:"mobile_rum_session_count_ios_sum,omitempty"`
// Shows the sum of all mobile RUM Sessions on React Native over all hours in the current date for all organizations.
Expand Down Expand Up @@ -1527,6 +1529,34 @@ func (o *UsageSummaryDate) SetMobileRumSessionCountAndroidSum(v int64) {
o.MobileRumSessionCountAndroidSum = &v
}

// GetMobileRumSessionCountFlutterSum returns the MobileRumSessionCountFlutterSum field value if set, zero value otherwise.
func (o *UsageSummaryDate) GetMobileRumSessionCountFlutterSum() int64 {
if o == nil || o.MobileRumSessionCountFlutterSum == nil {
var ret int64
return ret
}
return *o.MobileRumSessionCountFlutterSum
}

// GetMobileRumSessionCountFlutterSumOk returns a tuple with the MobileRumSessionCountFlutterSum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageSummaryDate) GetMobileRumSessionCountFlutterSumOk() (*int64, bool) {
if o == nil || o.MobileRumSessionCountFlutterSum == nil {
return nil, false
}
return o.MobileRumSessionCountFlutterSum, true
}

// HasMobileRumSessionCountFlutterSum returns a boolean if a field has been set.
func (o *UsageSummaryDate) HasMobileRumSessionCountFlutterSum() bool {
return o != nil && o.MobileRumSessionCountFlutterSum != nil
}

// SetMobileRumSessionCountFlutterSum gets a reference to the given int64 and assigns it to the MobileRumSessionCountFlutterSum field.
func (o *UsageSummaryDate) SetMobileRumSessionCountFlutterSum(v int64) {
o.MobileRumSessionCountFlutterSum = &v
}

// GetMobileRumSessionCountIosSum returns the MobileRumSessionCountIosSum field value if set, zero value otherwise.
func (o *UsageSummaryDate) GetMobileRumSessionCountIosSum() int64 {
if o == nil || o.MobileRumSessionCountIosSum == nil {
Expand Down Expand Up @@ -2437,6 +2467,9 @@ func (o UsageSummaryDate) MarshalJSON() ([]byte, error) {
if o.MobileRumSessionCountAndroidSum != nil {
toSerialize["mobile_rum_session_count_android_sum"] = o.MobileRumSessionCountAndroidSum
}
if o.MobileRumSessionCountFlutterSum != nil {
toSerialize["mobile_rum_session_count_flutter_sum"] = o.MobileRumSessionCountFlutterSum
}
if o.MobileRumSessionCountIosSum != nil {
toSerialize["mobile_rum_session_count_ios_sum"] = o.MobileRumSessionCountIosSum
}
Expand Down Expand Up @@ -2577,6 +2610,7 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
IotDeviceTop99p *int64 `json:"iot_device_top99p,omitempty"`
MobileRumLiteSessionCountSum *int64 `json:"mobile_rum_lite_session_count_sum,omitempty"`
MobileRumSessionCountAndroidSum *int64 `json:"mobile_rum_session_count_android_sum,omitempty"`
MobileRumSessionCountFlutterSum *int64 `json:"mobile_rum_session_count_flutter_sum,omitempty"`
MobileRumSessionCountIosSum *int64 `json:"mobile_rum_session_count_ios_sum,omitempty"`
MobileRumSessionCountReactnativeSum *int64 `json:"mobile_rum_session_count_reactnative_sum,omitempty"`
MobileRumSessionCountSum *int64 `json:"mobile_rum_session_count_sum,omitempty"`
Expand Down Expand Up @@ -2662,6 +2696,7 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
o.IotDeviceTop99p = all.IotDeviceTop99p
o.MobileRumLiteSessionCountSum = all.MobileRumLiteSessionCountSum
o.MobileRumSessionCountAndroidSum = all.MobileRumSessionCountAndroidSum
o.MobileRumSessionCountFlutterSum = all.MobileRumSessionCountFlutterSum
o.MobileRumSessionCountIosSum = all.MobileRumSessionCountIosSum
o.MobileRumSessionCountReactnativeSum = all.MobileRumSessionCountReactnativeSum
o.MobileRumSessionCountSum = all.MobileRumSessionCountSum
Expand Down
35 changes: 35 additions & 0 deletions api/datadogV1/model_usage_summary_date_org.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ type UsageSummaryDateOrg struct {
MobileRumLiteSessionCountSum *int64 `json:"mobile_rum_lite_session_count_sum,omitempty"`
// Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org.
MobileRumSessionCountAndroidSum *int64 `json:"mobile_rum_session_count_android_sum,omitempty"`
// Shows the sum of all mobile RUM Sessions on Flutter over all hours in the current date for the given org.
MobileRumSessionCountFlutterSum *int64 `json:"mobile_rum_session_count_flutter_sum,omitempty"`
// Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for the given org.
MobileRumSessionCountIosSum *int64 `json:"mobile_rum_session_count_ios_sum,omitempty"`
// Shows the sum of all mobile RUM Sessions on React Native over all hours in the current date for the given org.
Expand Down Expand Up @@ -1530,6 +1532,34 @@ func (o *UsageSummaryDateOrg) SetMobileRumSessionCountAndroidSum(v int64) {
o.MobileRumSessionCountAndroidSum = &v
}

// GetMobileRumSessionCountFlutterSum returns the MobileRumSessionCountFlutterSum field value if set, zero value otherwise.
func (o *UsageSummaryDateOrg) GetMobileRumSessionCountFlutterSum() int64 {
if o == nil || o.MobileRumSessionCountFlutterSum == nil {
var ret int64
return ret
}
return *o.MobileRumSessionCountFlutterSum
}

// GetMobileRumSessionCountFlutterSumOk returns a tuple with the MobileRumSessionCountFlutterSum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageSummaryDateOrg) GetMobileRumSessionCountFlutterSumOk() (*int64, bool) {
if o == nil || o.MobileRumSessionCountFlutterSum == nil {
return nil, false
}
return o.MobileRumSessionCountFlutterSum, true
}

// HasMobileRumSessionCountFlutterSum returns a boolean if a field has been set.
func (o *UsageSummaryDateOrg) HasMobileRumSessionCountFlutterSum() bool {
return o != nil && o.MobileRumSessionCountFlutterSum != nil
}

// SetMobileRumSessionCountFlutterSum gets a reference to the given int64 and assigns it to the MobileRumSessionCountFlutterSum field.
func (o *UsageSummaryDateOrg) SetMobileRumSessionCountFlutterSum(v int64) {
o.MobileRumSessionCountFlutterSum = &v
}

// GetMobileRumSessionCountIosSum returns the MobileRumSessionCountIosSum field value if set, zero value otherwise.
func (o *UsageSummaryDateOrg) GetMobileRumSessionCountIosSum() int64 {
if o == nil || o.MobileRumSessionCountIosSum == nil {
Expand Down Expand Up @@ -2492,6 +2522,9 @@ func (o UsageSummaryDateOrg) MarshalJSON() ([]byte, error) {
if o.MobileRumSessionCountAndroidSum != nil {
toSerialize["mobile_rum_session_count_android_sum"] = o.MobileRumSessionCountAndroidSum
}
if o.MobileRumSessionCountFlutterSum != nil {
toSerialize["mobile_rum_session_count_flutter_sum"] = o.MobileRumSessionCountFlutterSum
}
if o.MobileRumSessionCountIosSum != nil {
toSerialize["mobile_rum_session_count_ios_sum"] = o.MobileRumSessionCountIosSum
}
Expand Down Expand Up @@ -2638,6 +2671,7 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) {
IotDeviceTop99pSum *int64 `json:"iot_device_top99p_sum,omitempty"`
MobileRumLiteSessionCountSum *int64 `json:"mobile_rum_lite_session_count_sum,omitempty"`
MobileRumSessionCountAndroidSum *int64 `json:"mobile_rum_session_count_android_sum,omitempty"`
MobileRumSessionCountFlutterSum *int64 `json:"mobile_rum_session_count_flutter_sum,omitempty"`
MobileRumSessionCountIosSum *int64 `json:"mobile_rum_session_count_ios_sum,omitempty"`
MobileRumSessionCountReactnativeSum *int64 `json:"mobile_rum_session_count_reactnative_sum,omitempty"`
MobileRumSessionCountSum *int64 `json:"mobile_rum_session_count_sum,omitempty"`
Expand Down Expand Up @@ -2725,6 +2759,7 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) {
o.IotDeviceTop99pSum = all.IotDeviceTop99pSum
o.MobileRumLiteSessionCountSum = all.MobileRumLiteSessionCountSum
o.MobileRumSessionCountAndroidSum = all.MobileRumSessionCountAndroidSum
o.MobileRumSessionCountFlutterSum = all.MobileRumSessionCountFlutterSum
o.MobileRumSessionCountIosSum = all.MobileRumSessionCountIosSum
o.MobileRumSessionCountReactnativeSum = all.MobileRumSessionCountReactnativeSum
o.MobileRumSessionCountSum = all.MobileRumSessionCountSum
Expand Down
Loading