Skip to content

Commit

Permalink
[rum_metric] Add support
Browse files Browse the repository at this point in the history
  • Loading branch information
hemeryar committed Nov 6, 2024
1 parent ba07aab commit 0fa4fb4
Show file tree
Hide file tree
Showing 2 changed files with 396 additions and 0 deletions.
9 changes: 9 additions & 0 deletions datadog/internal/utils/api_instances_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type ApiInstances struct {
restrictionPolicyApiV2 *datadogV2.RestrictionPoliciesApi
rolesApiV2 *datadogV2.RolesApi
rumApiV2 *datadogV2.RUMApi
rumMetricsApiV2 *datadogV2.RumMetricsApi
securityMonitoringApiV2 *datadogV2.SecurityMonitoringApi
sensitiveDataScannerApiV2 *datadogV2.SensitiveDataScannerApi
serviceAccountsApiV2 *datadogV2.ServiceAccountsApi
Expand Down Expand Up @@ -523,6 +524,14 @@ func (i *ApiInstances) GetRumApiV2() *datadogV2.RUMApi {
return i.rumApiV2
}

// GetRumMetricsApiV2 get instance of RumMetricsApi
func (i *ApiInstances) GetRumMetricsApiV2() *datadogV2.RumMetricsApi {
if i.rumMetricsApiV2 == nil {
i.rumMetricsApiV2 = datadogV2.NewRumMetricsApi(i.HttpClient)
}
return i.rumMetricsApiV2
}

// GetSecurityMonitoringApiV2 get instance of SecurityMonitoringApi
func (i *ApiInstances) GetSecurityMonitoringApiV2() *datadogV2.SecurityMonitoringApi {
if i.securityMonitoringApiV2 == nil {
Expand Down
Loading

0 comments on commit 0fa4fb4

Please sign in to comment.