diff --git a/.apigentools-info b/.apigentools-info index 89aaef1b61f..2607b65cca7 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2022-12-19 15:44:02.177148", - "spec_repo_commit": "37d94b14" + "regenerated": "2022-12-19 17:15:44.700250", + "spec_repo_commit": "983b8d20" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2022-12-19 15:44:02.188913", - "spec_repo_commit": "37d94b14" + "regenerated": "2022-12-19 17:15:44.711899", + "spec_repo_commit": "983b8d20" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 557ea32e8d4..75da93d2c17 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3669,6 +3669,8 @@ components: - profiled_container_usage - profiled_host_usage - snmp_usage + - estimated_rum_usage_attribution_usage + - estimated_rum_usage_attribution_percentage type: string x-enum-varnames: - API_USAGE @@ -3698,6 +3700,8 @@ components: - PROFILED_CONTAINER_USAGE - PROFILED_HOST_USAGE - SNMP_USAGE + - ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE + - ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE IFrameWidgetDefinition: description: The iframe widget allows you to embed a portion of any other web page on your dashboard. Only available on FREE layout dashboards. @@ -7241,6 +7245,16 @@ components: in private beta. format: double type: number + estimated_rum_usage_attribution_percentage: + description: The percentage of estimated rum sessions usage by tag(s). This + field is in private beta. + format: double + type: number + estimated_rum_usage_attribution_usage: + description: The estimated rum sessions usage by tag(s). This field is in + private beta. + format: double + type: number fargate_percentage: description: The percentage of Fargate usage by tags. format: double @@ -14507,6 +14521,8 @@ components: - apm_fargate_percentage - appsec_fargate_usage - appsec_fargate_percentage + - estimated_rum_usage_attribution_usage + - estimated_rum_usage_attribution_percentage type: string x-enum-varnames: - API_PERCENTAGE @@ -14543,6 +14559,8 @@ components: - APM_FARGATE_PERCENTAGE - APPSEC_FARGATE_USAGE - APPSEC_FARGATE_PERCENTAGE + - ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE + - ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE UsageAttributionSupportedMetrics: description: Supported fields for usage attribution requests (valid requests contain one or more metrics, or `*` for all). @@ -14591,6 +14609,8 @@ components: - apm_fargate_percentage - appsec_fargate_usage - appsec_fargate_percentage + - estimated_rum_usage_attribution_usage + - estimated_rum_usage_attribution_percentage - '*' type: string x-enum-varnames: @@ -14638,6 +14658,8 @@ components: - APM_FARGATE_PERCENTAGE - APPSEC_FARGATE_USAGE - APPSEC_FARGATE_PERCENTAGE + - ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE + - ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE - ALL UsageAttributionTagNames: additionalProperties: @@ -14829,6 +14851,16 @@ components: is in private beta. format: double type: number + estimated_rum_usage_attribution_percentage: + description: The percentage of estimated rum sessions usage by tag(s). This + field is in private beta. + format: double + type: number + estimated_rum_usage_attribution_usage: + description: The estimated rum sessions usage by tag(s). This field is in + private beta. + format: double + type: number infra_host_percentage: description: The percentage of infrastructure host usage by tag(s). format: double diff --git a/api/datadogV1/model_hourly_usage_attribution_usage_type.go b/api/datadogV1/model_hourly_usage_attribution_usage_type.go index 16fe5b40c88..4e4d85b7e1c 100644 --- a/api/datadogV1/model_hourly_usage_attribution_usage_type.go +++ b/api/datadogV1/model_hourly_usage_attribution_usage_type.go @@ -14,33 +14,35 @@ type HourlyUsageAttributionUsageType string // List of HourlyUsageAttributionUsageType. const ( - HOURLYUSAGEATTRIBUTIONUSAGETYPE_API_USAGE HourlyUsageAttributionUsageType = "api_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_APM_FARGATE_USAGE HourlyUsageAttributionUsageType = "apm_fargate_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_APM_HOST_USAGE HourlyUsageAttributionUsageType = "apm_host_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_APPSEC_FARGATE_USAGE HourlyUsageAttributionUsageType = "appsec_fargate_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_APPSEC_USAGE HourlyUsageAttributionUsageType = "appsec_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_BROWSER_USAGE HourlyUsageAttributionUsageType = "browser_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_CONTAINER_USAGE HourlyUsageAttributionUsageType = "container_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_CSPM_CONTAINERS_USAGE HourlyUsageAttributionUsageType = "cspm_containers_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_CSPM_HOSTS_USAGE HourlyUsageAttributionUsageType = "cspm_hosts_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_CUSTOM_TIMESERIES_USAGE HourlyUsageAttributionUsageType = "custom_timeseries_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_CONTAINERS_USAGE HourlyUsageAttributionUsageType = "cws_containers_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_HOSTS_USAGE HourlyUsageAttributionUsageType = "cws_hosts_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_HOSTS_USAGE HourlyUsageAttributionUsageType = "dbm_hosts_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_QUERIES_USAGE HourlyUsageAttributionUsageType = "dbm_queries_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INDEXED_LOGS_USAGE HourlyUsageAttributionUsageType = "estimated_indexed_logs_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INGESTED_LOGS_USAGE HourlyUsageAttributionUsageType = "estimated_ingested_logs_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INDEXED_SPANS_USAGE HourlyUsageAttributionUsageType = "estimated_indexed_spans_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INGESTED_SPANS_USAGE HourlyUsageAttributionUsageType = "estimated_ingested_spans_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_FARGATE_USAGE HourlyUsageAttributionUsageType = "fargate_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_FUNCTIONS_USAGE HourlyUsageAttributionUsageType = "functions_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_INDEXED_LOGS_USAGE HourlyUsageAttributionUsageType = "indexed_logs_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_INFRA_HOST_USAGE HourlyUsageAttributionUsageType = "infra_host_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_INVOCATIONS_USAGE HourlyUsageAttributionUsageType = "invocations_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_NPM_HOST_USAGE HourlyUsageAttributionUsageType = "npm_host_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_CONTAINER_USAGE HourlyUsageAttributionUsageType = "profiled_container_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_HOST_USAGE HourlyUsageAttributionUsageType = "profiled_host_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_SNMP_USAGE HourlyUsageAttributionUsageType = "snmp_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_API_USAGE HourlyUsageAttributionUsageType = "api_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_APM_FARGATE_USAGE HourlyUsageAttributionUsageType = "apm_fargate_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_APM_HOST_USAGE HourlyUsageAttributionUsageType = "apm_host_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_APPSEC_FARGATE_USAGE HourlyUsageAttributionUsageType = "appsec_fargate_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_APPSEC_USAGE HourlyUsageAttributionUsageType = "appsec_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_BROWSER_USAGE HourlyUsageAttributionUsageType = "browser_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_CONTAINER_USAGE HourlyUsageAttributionUsageType = "container_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_CSPM_CONTAINERS_USAGE HourlyUsageAttributionUsageType = "cspm_containers_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_CSPM_HOSTS_USAGE HourlyUsageAttributionUsageType = "cspm_hosts_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_CUSTOM_TIMESERIES_USAGE HourlyUsageAttributionUsageType = "custom_timeseries_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_CONTAINERS_USAGE HourlyUsageAttributionUsageType = "cws_containers_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_HOSTS_USAGE HourlyUsageAttributionUsageType = "cws_hosts_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_HOSTS_USAGE HourlyUsageAttributionUsageType = "dbm_hosts_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_QUERIES_USAGE HourlyUsageAttributionUsageType = "dbm_queries_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INDEXED_LOGS_USAGE HourlyUsageAttributionUsageType = "estimated_indexed_logs_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INGESTED_LOGS_USAGE HourlyUsageAttributionUsageType = "estimated_ingested_logs_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INDEXED_SPANS_USAGE HourlyUsageAttributionUsageType = "estimated_indexed_spans_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INGESTED_SPANS_USAGE HourlyUsageAttributionUsageType = "estimated_ingested_spans_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_FARGATE_USAGE HourlyUsageAttributionUsageType = "fargate_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_FUNCTIONS_USAGE HourlyUsageAttributionUsageType = "functions_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_INDEXED_LOGS_USAGE HourlyUsageAttributionUsageType = "indexed_logs_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_INFRA_HOST_USAGE HourlyUsageAttributionUsageType = "infra_host_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_INVOCATIONS_USAGE HourlyUsageAttributionUsageType = "invocations_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_NPM_HOST_USAGE HourlyUsageAttributionUsageType = "npm_host_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_CONTAINER_USAGE HourlyUsageAttributionUsageType = "profiled_container_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_HOST_USAGE HourlyUsageAttributionUsageType = "profiled_host_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_SNMP_USAGE HourlyUsageAttributionUsageType = "snmp_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE HourlyUsageAttributionUsageType = "estimated_rum_usage_attribution_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE HourlyUsageAttributionUsageType = "estimated_rum_usage_attribution_percentage" ) var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionUsageType{ @@ -71,6 +73,8 @@ var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionU HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_CONTAINER_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_HOST_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_SNMP_USAGE, + HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE, + HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE, } // GetAllowedValues reeturns the list of possible values. diff --git a/api/datadogV1/model_monthly_usage_attribution_values.go b/api/datadogV1/model_monthly_usage_attribution_values.go index 05f38f5ea61..dd0989adcd2 100644 --- a/api/datadogV1/model_monthly_usage_attribution_values.go +++ b/api/datadogV1/model_monthly_usage_attribution_values.go @@ -82,6 +82,10 @@ type MonthlyUsageAttributionValues struct { EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"` // The estimated ingested spans usage by tag(s). This field is in private beta. EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"` + // The percentage of estimated rum sessions usage by tag(s). This field is in private beta. + EstimatedRumUsageAttributionPercentage *float64 `json:"estimated_rum_usage_attribution_percentage,omitempty"` + // The estimated rum sessions usage by tag(s). This field is in private beta. + EstimatedRumUsageAttributionUsage *float64 `json:"estimated_rum_usage_attribution_usage,omitempty"` // The percentage of Fargate usage by tags. FargatePercentage *float64 `json:"fargate_percentage,omitempty"` // The Fargate usage by tags. @@ -1148,6 +1152,62 @@ func (o *MonthlyUsageAttributionValues) SetEstimatedIngestedSpansUsage(v float64 o.EstimatedIngestedSpansUsage = &v } +// GetEstimatedRumUsageAttributionPercentage returns the EstimatedRumUsageAttributionPercentage field value if set, zero value otherwise. +func (o *MonthlyUsageAttributionValues) GetEstimatedRumUsageAttributionPercentage() float64 { + if o == nil || o.EstimatedRumUsageAttributionPercentage == nil { + var ret float64 + return ret + } + return *o.EstimatedRumUsageAttributionPercentage +} + +// GetEstimatedRumUsageAttributionPercentageOk returns a tuple with the EstimatedRumUsageAttributionPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonthlyUsageAttributionValues) GetEstimatedRumUsageAttributionPercentageOk() (*float64, bool) { + if o == nil || o.EstimatedRumUsageAttributionPercentage == nil { + return nil, false + } + return o.EstimatedRumUsageAttributionPercentage, true +} + +// HasEstimatedRumUsageAttributionPercentage returns a boolean if a field has been set. +func (o *MonthlyUsageAttributionValues) HasEstimatedRumUsageAttributionPercentage() bool { + return o != nil && o.EstimatedRumUsageAttributionPercentage != nil +} + +// SetEstimatedRumUsageAttributionPercentage gets a reference to the given float64 and assigns it to the EstimatedRumUsageAttributionPercentage field. +func (o *MonthlyUsageAttributionValues) SetEstimatedRumUsageAttributionPercentage(v float64) { + o.EstimatedRumUsageAttributionPercentage = &v +} + +// GetEstimatedRumUsageAttributionUsage returns the EstimatedRumUsageAttributionUsage field value if set, zero value otherwise. +func (o *MonthlyUsageAttributionValues) GetEstimatedRumUsageAttributionUsage() float64 { + if o == nil || o.EstimatedRumUsageAttributionUsage == nil { + var ret float64 + return ret + } + return *o.EstimatedRumUsageAttributionUsage +} + +// GetEstimatedRumUsageAttributionUsageOk returns a tuple with the EstimatedRumUsageAttributionUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonthlyUsageAttributionValues) GetEstimatedRumUsageAttributionUsageOk() (*float64, bool) { + if o == nil || o.EstimatedRumUsageAttributionUsage == nil { + return nil, false + } + return o.EstimatedRumUsageAttributionUsage, true +} + +// HasEstimatedRumUsageAttributionUsage returns a boolean if a field has been set. +func (o *MonthlyUsageAttributionValues) HasEstimatedRumUsageAttributionUsage() bool { + return o != nil && o.EstimatedRumUsageAttributionUsage != nil +} + +// SetEstimatedRumUsageAttributionUsage gets a reference to the given float64 and assigns it to the EstimatedRumUsageAttributionUsage field. +func (o *MonthlyUsageAttributionValues) SetEstimatedRumUsageAttributionUsage(v float64) { + o.EstimatedRumUsageAttributionUsage = &v +} + // GetFargatePercentage returns the FargatePercentage field value if set, zero value otherwise. func (o *MonthlyUsageAttributionValues) GetFargatePercentage() float64 { if o == nil || o.FargatePercentage == nil { @@ -1766,6 +1826,12 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) { if o.EstimatedIngestedSpansUsage != nil { toSerialize["estimated_ingested_spans_usage"] = o.EstimatedIngestedSpansUsage } + if o.EstimatedRumUsageAttributionPercentage != nil { + toSerialize["estimated_rum_usage_attribution_percentage"] = o.EstimatedRumUsageAttributionPercentage + } + if o.EstimatedRumUsageAttributionUsage != nil { + toSerialize["estimated_rum_usage_attribution_usage"] = o.EstimatedRumUsageAttributionUsage + } if o.FargatePercentage != nil { toSerialize["fargate_percentage"] = o.FargatePercentage } @@ -1831,60 +1897,62 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) { func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) { raw := map[string]interface{}{} all := struct { - ApiPercentage *float64 `json:"api_percentage,omitempty"` - ApiUsage *float64 `json:"api_usage,omitempty"` - ApmFargatePercentage *float64 `json:"apm_fargate_percentage,omitempty"` - ApmFargateUsage *float64 `json:"apm_fargate_usage,omitempty"` - ApmHostPercentage *float64 `json:"apm_host_percentage,omitempty"` - ApmHostUsage *float64 `json:"apm_host_usage,omitempty"` - AppsecFargatePercentage *float64 `json:"appsec_fargate_percentage,omitempty"` - AppsecFargateUsage *float64 `json:"appsec_fargate_usage,omitempty"` - AppsecPercentage *float64 `json:"appsec_percentage,omitempty"` - AppsecUsage *float64 `json:"appsec_usage,omitempty"` - BrowserPercentage *float64 `json:"browser_percentage,omitempty"` - BrowserUsage *float64 `json:"browser_usage,omitempty"` - ContainerPercentage *float64 `json:"container_percentage,omitempty"` - ContainerUsage *float64 `json:"container_usage,omitempty"` - CspmContainersPercentage *float64 `json:"cspm_containers_percentage,omitempty"` - CspmContainersUsage *float64 `json:"cspm_containers_usage,omitempty"` - CspmHostsPercentage *float64 `json:"cspm_hosts_percentage,omitempty"` - CspmHostsUsage *float64 `json:"cspm_hosts_usage,omitempty"` - CustomTimeseriesPercentage *float64 `json:"custom_timeseries_percentage,omitempty"` - CustomTimeseriesUsage *float64 `json:"custom_timeseries_usage,omitempty"` - CwsContainersPercentage *float64 `json:"cws_containers_percentage,omitempty"` - CwsContainersUsage *float64 `json:"cws_containers_usage,omitempty"` - CwsHostsPercentage *float64 `json:"cws_hosts_percentage,omitempty"` - CwsHostsUsage *float64 `json:"cws_hosts_usage,omitempty"` - DbmHostsPercentage *float64 `json:"dbm_hosts_percentage,omitempty"` - DbmHostsUsage *float64 `json:"dbm_hosts_usage,omitempty"` - DbmQueriesPercentage *float64 `json:"dbm_queries_percentage,omitempty"` - DbmQueriesUsage *float64 `json:"dbm_queries_usage,omitempty"` - EstimatedIndexedLogsPercentage *float64 `json:"estimated_indexed_logs_percentage,omitempty"` - EstimatedIndexedLogsUsage *float64 `json:"estimated_indexed_logs_usage,omitempty"` - EstimatedIndexedSpansPercentage *float64 `json:"estimated_indexed_spans_percentage,omitempty"` - EstimatedIndexedSpansUsage *float64 `json:"estimated_indexed_spans_usage,omitempty"` - EstimatedIngestedLogsPercentage *float64 `json:"estimated_ingested_logs_percentage,omitempty"` - EstimatedIngestedLogsUsage *float64 `json:"estimated_ingested_logs_usage,omitempty"` - EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"` - EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"` - FargatePercentage *float64 `json:"fargate_percentage,omitempty"` - FargateUsage *float64 `json:"fargate_usage,omitempty"` - FunctionsPercentage *float64 `json:"functions_percentage,omitempty"` - FunctionsUsage *float64 `json:"functions_usage,omitempty"` - IndexedLogsPercentage *float64 `json:"indexed_logs_percentage,omitempty"` - IndexedLogsUsage *float64 `json:"indexed_logs_usage,omitempty"` - InfraHostPercentage *float64 `json:"infra_host_percentage,omitempty"` - InfraHostUsage *float64 `json:"infra_host_usage,omitempty"` - InvocationsPercentage *float64 `json:"invocations_percentage,omitempty"` - InvocationsUsage *float64 `json:"invocations_usage,omitempty"` - NpmHostPercentage *float64 `json:"npm_host_percentage,omitempty"` - NpmHostUsage *float64 `json:"npm_host_usage,omitempty"` - ProfiledContainerPercentage *float64 `json:"profiled_container_percentage,omitempty"` - ProfiledContainerUsage *float64 `json:"profiled_container_usage,omitempty"` - ProfiledHostPercentage *float64 `json:"profiled_host_percentage,omitempty"` - ProfiledHostUsage *float64 `json:"profiled_host_usage,omitempty"` - SnmpPercentage *float64 `json:"snmp_percentage,omitempty"` - SnmpUsage *float64 `json:"snmp_usage,omitempty"` + ApiPercentage *float64 `json:"api_percentage,omitempty"` + ApiUsage *float64 `json:"api_usage,omitempty"` + ApmFargatePercentage *float64 `json:"apm_fargate_percentage,omitempty"` + ApmFargateUsage *float64 `json:"apm_fargate_usage,omitempty"` + ApmHostPercentage *float64 `json:"apm_host_percentage,omitempty"` + ApmHostUsage *float64 `json:"apm_host_usage,omitempty"` + AppsecFargatePercentage *float64 `json:"appsec_fargate_percentage,omitempty"` + AppsecFargateUsage *float64 `json:"appsec_fargate_usage,omitempty"` + AppsecPercentage *float64 `json:"appsec_percentage,omitempty"` + AppsecUsage *float64 `json:"appsec_usage,omitempty"` + BrowserPercentage *float64 `json:"browser_percentage,omitempty"` + BrowserUsage *float64 `json:"browser_usage,omitempty"` + ContainerPercentage *float64 `json:"container_percentage,omitempty"` + ContainerUsage *float64 `json:"container_usage,omitempty"` + CspmContainersPercentage *float64 `json:"cspm_containers_percentage,omitempty"` + CspmContainersUsage *float64 `json:"cspm_containers_usage,omitempty"` + CspmHostsPercentage *float64 `json:"cspm_hosts_percentage,omitempty"` + CspmHostsUsage *float64 `json:"cspm_hosts_usage,omitempty"` + CustomTimeseriesPercentage *float64 `json:"custom_timeseries_percentage,omitempty"` + CustomTimeseriesUsage *float64 `json:"custom_timeseries_usage,omitempty"` + CwsContainersPercentage *float64 `json:"cws_containers_percentage,omitempty"` + CwsContainersUsage *float64 `json:"cws_containers_usage,omitempty"` + CwsHostsPercentage *float64 `json:"cws_hosts_percentage,omitempty"` + CwsHostsUsage *float64 `json:"cws_hosts_usage,omitempty"` + DbmHostsPercentage *float64 `json:"dbm_hosts_percentage,omitempty"` + DbmHostsUsage *float64 `json:"dbm_hosts_usage,omitempty"` + DbmQueriesPercentage *float64 `json:"dbm_queries_percentage,omitempty"` + DbmQueriesUsage *float64 `json:"dbm_queries_usage,omitempty"` + EstimatedIndexedLogsPercentage *float64 `json:"estimated_indexed_logs_percentage,omitempty"` + EstimatedIndexedLogsUsage *float64 `json:"estimated_indexed_logs_usage,omitempty"` + EstimatedIndexedSpansPercentage *float64 `json:"estimated_indexed_spans_percentage,omitempty"` + EstimatedIndexedSpansUsage *float64 `json:"estimated_indexed_spans_usage,omitempty"` + EstimatedIngestedLogsPercentage *float64 `json:"estimated_ingested_logs_percentage,omitempty"` + EstimatedIngestedLogsUsage *float64 `json:"estimated_ingested_logs_usage,omitempty"` + EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"` + EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"` + EstimatedRumUsageAttributionPercentage *float64 `json:"estimated_rum_usage_attribution_percentage,omitempty"` + EstimatedRumUsageAttributionUsage *float64 `json:"estimated_rum_usage_attribution_usage,omitempty"` + FargatePercentage *float64 `json:"fargate_percentage,omitempty"` + FargateUsage *float64 `json:"fargate_usage,omitempty"` + FunctionsPercentage *float64 `json:"functions_percentage,omitempty"` + FunctionsUsage *float64 `json:"functions_usage,omitempty"` + IndexedLogsPercentage *float64 `json:"indexed_logs_percentage,omitempty"` + IndexedLogsUsage *float64 `json:"indexed_logs_usage,omitempty"` + InfraHostPercentage *float64 `json:"infra_host_percentage,omitempty"` + InfraHostUsage *float64 `json:"infra_host_usage,omitempty"` + InvocationsPercentage *float64 `json:"invocations_percentage,omitempty"` + InvocationsUsage *float64 `json:"invocations_usage,omitempty"` + NpmHostPercentage *float64 `json:"npm_host_percentage,omitempty"` + NpmHostUsage *float64 `json:"npm_host_usage,omitempty"` + ProfiledContainerPercentage *float64 `json:"profiled_container_percentage,omitempty"` + ProfiledContainerUsage *float64 `json:"profiled_container_usage,omitempty"` + ProfiledHostPercentage *float64 `json:"profiled_host_percentage,omitempty"` + ProfiledHostUsage *float64 `json:"profiled_host_usage,omitempty"` + SnmpPercentage *float64 `json:"snmp_percentage,omitempty"` + SnmpUsage *float64 `json:"snmp_usage,omitempty"` }{} err = json.Unmarshal(bytes, &all) if err != nil { @@ -1931,6 +1999,8 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) o.EstimatedIngestedLogsUsage = all.EstimatedIngestedLogsUsage o.EstimatedIngestedSpansPercentage = all.EstimatedIngestedSpansPercentage o.EstimatedIngestedSpansUsage = all.EstimatedIngestedSpansUsage + o.EstimatedRumUsageAttributionPercentage = all.EstimatedRumUsageAttributionPercentage + o.EstimatedRumUsageAttributionUsage = all.EstimatedRumUsageAttributionUsage o.FargatePercentage = all.FargatePercentage o.FargateUsage = all.FargateUsage o.FunctionsPercentage = all.FunctionsPercentage diff --git a/api/datadogV1/model_usage_attribution_sort.go b/api/datadogV1/model_usage_attribution_sort.go index 176d65dfd40..f996e8bd642 100644 --- a/api/datadogV1/model_usage_attribution_sort.go +++ b/api/datadogV1/model_usage_attribution_sort.go @@ -14,40 +14,42 @@ type UsageAttributionSort string // List of UsageAttributionSort. const ( - USAGEATTRIBUTIONSORT_API_PERCENTAGE UsageAttributionSort = "api_percentage" - USAGEATTRIBUTIONSORT_SNMP_USAGE UsageAttributionSort = "snmp_usage" - USAGEATTRIBUTIONSORT_APM_HOST_USAGE UsageAttributionSort = "apm_host_usage" - USAGEATTRIBUTIONSORT_API_USAGE UsageAttributionSort = "api_usage" - USAGEATTRIBUTIONSORT_APPSEC_USAGE UsageAttributionSort = "appsec_usage" - USAGEATTRIBUTIONSORT_APPSEC_PERCENTAGE UsageAttributionSort = "appsec_percentage" - USAGEATTRIBUTIONSORT_CONTAINER_USAGE UsageAttributionSort = "container_usage" - USAGEATTRIBUTIONSORT_CUSTOM_TIMESERIES_PERCENTAGE UsageAttributionSort = "custom_timeseries_percentage" - USAGEATTRIBUTIONSORT_CONTAINER_PERCENTAGE UsageAttributionSort = "container_percentage" - USAGEATTRIBUTIONSORT_APM_HOST_PERCENTAGE UsageAttributionSort = "apm_host_percentage" - USAGEATTRIBUTIONSORT_NPM_HOST_PERCENTAGE UsageAttributionSort = "npm_host_percentage" - USAGEATTRIBUTIONSORT_BROWSER_PERCENTAGE UsageAttributionSort = "browser_percentage" - USAGEATTRIBUTIONSORT_BROWSER_USAGE UsageAttributionSort = "browser_usage" - USAGEATTRIBUTIONSORT_INFRA_HOST_PERCENTAGE UsageAttributionSort = "infra_host_percentage" - USAGEATTRIBUTIONSORT_SNMP_PERCENTAGE UsageAttributionSort = "snmp_percentage" - USAGEATTRIBUTIONSORT_NPM_HOST_USAGE UsageAttributionSort = "npm_host_usage" - USAGEATTRIBUTIONSORT_INFRA_HOST_USAGE UsageAttributionSort = "infra_host_usage" - USAGEATTRIBUTIONSORT_CUSTOM_TIMESERIES_USAGE UsageAttributionSort = "custom_timeseries_usage" - USAGEATTRIBUTIONSORT_LAMBDA_FUNCTIONS_USAGE UsageAttributionSort = "lambda_functions_usage" - USAGEATTRIBUTIONSORT_LAMBDA_FUNCTIONS_PERCENTAGE UsageAttributionSort = "lambda_functions_percentage" - USAGEATTRIBUTIONSORT_LAMBDA_INVOCATIONS_USAGE UsageAttributionSort = "lambda_invocations_usage" - USAGEATTRIBUTIONSORT_LAMBDA_INVOCATIONS_PERCENTAGE UsageAttributionSort = "lambda_invocations_percentage" - USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_LOGS_USAGE UsageAttributionSort = "estimated_indexed_logs_usage" - USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_LOGS_PERCENTAGE UsageAttributionSort = "estimated_indexed_logs_percentage" - USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_LOGS_USAGE UsageAttributionSort = "estimated_ingested_logs_usage" - USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_LOGS_PERCENTAGE UsageAttributionSort = "estimated_ingested_logs_percentage" - USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_SPANS_USAGE UsageAttributionSort = "estimated_indexed_spans_usage" - USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_SPANS_PERCENTAGE UsageAttributionSort = "estimated_indexed_spans_percentage" - USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_SPANS_USAGE UsageAttributionSort = "estimated_ingested_spans_usage" - USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_SPANS_PERCENTAGE UsageAttributionSort = "estimated_ingested_spans_percentage" - USAGEATTRIBUTIONSORT_APM_FARGATE_USAGE UsageAttributionSort = "apm_fargate_usage" - USAGEATTRIBUTIONSORT_APM_FARGATE_PERCENTAGE UsageAttributionSort = "apm_fargate_percentage" - USAGEATTRIBUTIONSORT_APPSEC_FARGATE_USAGE UsageAttributionSort = "appsec_fargate_usage" - USAGEATTRIBUTIONSORT_APPSEC_FARGATE_PERCENTAGE UsageAttributionSort = "appsec_fargate_percentage" + USAGEATTRIBUTIONSORT_API_PERCENTAGE UsageAttributionSort = "api_percentage" + USAGEATTRIBUTIONSORT_SNMP_USAGE UsageAttributionSort = "snmp_usage" + USAGEATTRIBUTIONSORT_APM_HOST_USAGE UsageAttributionSort = "apm_host_usage" + USAGEATTRIBUTIONSORT_API_USAGE UsageAttributionSort = "api_usage" + USAGEATTRIBUTIONSORT_APPSEC_USAGE UsageAttributionSort = "appsec_usage" + USAGEATTRIBUTIONSORT_APPSEC_PERCENTAGE UsageAttributionSort = "appsec_percentage" + USAGEATTRIBUTIONSORT_CONTAINER_USAGE UsageAttributionSort = "container_usage" + USAGEATTRIBUTIONSORT_CUSTOM_TIMESERIES_PERCENTAGE UsageAttributionSort = "custom_timeseries_percentage" + USAGEATTRIBUTIONSORT_CONTAINER_PERCENTAGE UsageAttributionSort = "container_percentage" + USAGEATTRIBUTIONSORT_APM_HOST_PERCENTAGE UsageAttributionSort = "apm_host_percentage" + USAGEATTRIBUTIONSORT_NPM_HOST_PERCENTAGE UsageAttributionSort = "npm_host_percentage" + USAGEATTRIBUTIONSORT_BROWSER_PERCENTAGE UsageAttributionSort = "browser_percentage" + USAGEATTRIBUTIONSORT_BROWSER_USAGE UsageAttributionSort = "browser_usage" + USAGEATTRIBUTIONSORT_INFRA_HOST_PERCENTAGE UsageAttributionSort = "infra_host_percentage" + USAGEATTRIBUTIONSORT_SNMP_PERCENTAGE UsageAttributionSort = "snmp_percentage" + USAGEATTRIBUTIONSORT_NPM_HOST_USAGE UsageAttributionSort = "npm_host_usage" + USAGEATTRIBUTIONSORT_INFRA_HOST_USAGE UsageAttributionSort = "infra_host_usage" + USAGEATTRIBUTIONSORT_CUSTOM_TIMESERIES_USAGE UsageAttributionSort = "custom_timeseries_usage" + USAGEATTRIBUTIONSORT_LAMBDA_FUNCTIONS_USAGE UsageAttributionSort = "lambda_functions_usage" + USAGEATTRIBUTIONSORT_LAMBDA_FUNCTIONS_PERCENTAGE UsageAttributionSort = "lambda_functions_percentage" + USAGEATTRIBUTIONSORT_LAMBDA_INVOCATIONS_USAGE UsageAttributionSort = "lambda_invocations_usage" + USAGEATTRIBUTIONSORT_LAMBDA_INVOCATIONS_PERCENTAGE UsageAttributionSort = "lambda_invocations_percentage" + USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_LOGS_USAGE UsageAttributionSort = "estimated_indexed_logs_usage" + USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_LOGS_PERCENTAGE UsageAttributionSort = "estimated_indexed_logs_percentage" + USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_LOGS_USAGE UsageAttributionSort = "estimated_ingested_logs_usage" + USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_LOGS_PERCENTAGE UsageAttributionSort = "estimated_ingested_logs_percentage" + USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_SPANS_USAGE UsageAttributionSort = "estimated_indexed_spans_usage" + USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_SPANS_PERCENTAGE UsageAttributionSort = "estimated_indexed_spans_percentage" + USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_SPANS_USAGE UsageAttributionSort = "estimated_ingested_spans_usage" + USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_SPANS_PERCENTAGE UsageAttributionSort = "estimated_ingested_spans_percentage" + USAGEATTRIBUTIONSORT_APM_FARGATE_USAGE UsageAttributionSort = "apm_fargate_usage" + USAGEATTRIBUTIONSORT_APM_FARGATE_PERCENTAGE UsageAttributionSort = "apm_fargate_percentage" + USAGEATTRIBUTIONSORT_APPSEC_FARGATE_USAGE UsageAttributionSort = "appsec_fargate_usage" + USAGEATTRIBUTIONSORT_APPSEC_FARGATE_PERCENTAGE UsageAttributionSort = "appsec_fargate_percentage" + USAGEATTRIBUTIONSORT_ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE UsageAttributionSort = "estimated_rum_usage_attribution_usage" + USAGEATTRIBUTIONSORT_ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE UsageAttributionSort = "estimated_rum_usage_attribution_percentage" ) var allowedUsageAttributionSortEnumValues = []UsageAttributionSort{ @@ -85,6 +87,8 @@ var allowedUsageAttributionSortEnumValues = []UsageAttributionSort{ USAGEATTRIBUTIONSORT_APM_FARGATE_PERCENTAGE, USAGEATTRIBUTIONSORT_APPSEC_FARGATE_USAGE, USAGEATTRIBUTIONSORT_APPSEC_FARGATE_PERCENTAGE, + USAGEATTRIBUTIONSORT_ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE, + USAGEATTRIBUTIONSORT_ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE, } // GetAllowedValues reeturns the list of possible values. diff --git a/api/datadogV1/model_usage_attribution_supported_metrics.go b/api/datadogV1/model_usage_attribution_supported_metrics.go index 5c76803f3cb..8f506c95085 100644 --- a/api/datadogV1/model_usage_attribution_supported_metrics.go +++ b/api/datadogV1/model_usage_attribution_supported_metrics.go @@ -14,51 +14,53 @@ type UsageAttributionSupportedMetrics string // List of UsageAttributionSupportedMetrics. const ( - USAGEATTRIBUTIONSUPPORTEDMETRICS_CUSTOM_TIMESERIES_USAGE UsageAttributionSupportedMetrics = "custom_timeseries_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_CONTAINER_USAGE UsageAttributionSupportedMetrics = "container_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_PERCENTAGE UsageAttributionSupportedMetrics = "snmp_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_HOST_USAGE UsageAttributionSupportedMetrics = "apm_host_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_BROWSER_USAGE UsageAttributionSupportedMetrics = "browser_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_NPM_HOST_PERCENTAGE UsageAttributionSupportedMetrics = "npm_host_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_INFRA_HOST_USAGE UsageAttributionSupportedMetrics = "infra_host_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_CUSTOM_TIMESERIES_PERCENTAGE UsageAttributionSupportedMetrics = "custom_timeseries_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_CONTAINER_PERCENTAGE UsageAttributionSupportedMetrics = "container_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_API_USAGE UsageAttributionSupportedMetrics = "api_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_HOST_PERCENTAGE UsageAttributionSupportedMetrics = "apm_host_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_INFRA_HOST_PERCENTAGE UsageAttributionSupportedMetrics = "infra_host_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_USAGE UsageAttributionSupportedMetrics = "snmp_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_BROWSER_PERCENTAGE UsageAttributionSupportedMetrics = "browser_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_API_PERCENTAGE UsageAttributionSupportedMetrics = "api_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_NPM_HOST_USAGE UsageAttributionSupportedMetrics = "npm_host_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_LAMBDA_FUNCTIONS_USAGE UsageAttributionSupportedMetrics = "lambda_functions_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_LAMBDA_FUNCTIONS_PERCENTAGE UsageAttributionSupportedMetrics = "lambda_functions_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_LAMBDA_INVOCATIONS_USAGE UsageAttributionSupportedMetrics = "lambda_invocations_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_LAMBDA_INVOCATIONS_PERCENTAGE UsageAttributionSupportedMetrics = "lambda_invocations_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_FARGATE_USAGE UsageAttributionSupportedMetrics = "fargate_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_FARGATE_PERCENTAGE UsageAttributionSupportedMetrics = "fargate_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_USAGE UsageAttributionSupportedMetrics = "profiled_host_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_PERCENTAGE UsageAttributionSupportedMetrics = "profiled_host_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_CONTAINER_USAGE UsageAttributionSupportedMetrics = "profiled_container_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_CONTAINER_PERCENTAGE UsageAttributionSupportedMetrics = "profiled_container_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_USAGE UsageAttributionSupportedMetrics = "dbm_hosts_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_PERCENTAGE UsageAttributionSupportedMetrics = "dbm_hosts_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_QUERIES_USAGE UsageAttributionSupportedMetrics = "dbm_queries_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_QUERIES_PERCENTAGE UsageAttributionSupportedMetrics = "dbm_queries_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_LOGS_USAGE UsageAttributionSupportedMetrics = "estimated_indexed_logs_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_LOGS_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_indexed_logs_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_LOGS_USAGE UsageAttributionSupportedMetrics = "estimated_ingested_logs_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_LOGS_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_ingested_logs_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_USAGE UsageAttributionSupportedMetrics = "appsec_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_PERCENTAGE UsageAttributionSupportedMetrics = "appsec_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_SPANS_USAGE UsageAttributionSupportedMetrics = "estimated_indexed_spans_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_SPANS_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_indexed_spans_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_SPANS_USAGE UsageAttributionSupportedMetrics = "estimated_ingested_spans_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_SPANS_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_ingested_spans_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_USAGE UsageAttributionSupportedMetrics = "apm_fargate_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_PERCENTAGE UsageAttributionSupportedMetrics = "apm_fargate_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_FARGATE_USAGE UsageAttributionSupportedMetrics = "appsec_fargate_usage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_FARGATE_PERCENTAGE UsageAttributionSupportedMetrics = "appsec_fargate_percentage" - USAGEATTRIBUTIONSUPPORTEDMETRICS_ALL UsageAttributionSupportedMetrics = "*" + USAGEATTRIBUTIONSUPPORTEDMETRICS_CUSTOM_TIMESERIES_USAGE UsageAttributionSupportedMetrics = "custom_timeseries_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_CONTAINER_USAGE UsageAttributionSupportedMetrics = "container_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_PERCENTAGE UsageAttributionSupportedMetrics = "snmp_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_HOST_USAGE UsageAttributionSupportedMetrics = "apm_host_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_BROWSER_USAGE UsageAttributionSupportedMetrics = "browser_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_NPM_HOST_PERCENTAGE UsageAttributionSupportedMetrics = "npm_host_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_INFRA_HOST_USAGE UsageAttributionSupportedMetrics = "infra_host_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_CUSTOM_TIMESERIES_PERCENTAGE UsageAttributionSupportedMetrics = "custom_timeseries_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_CONTAINER_PERCENTAGE UsageAttributionSupportedMetrics = "container_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_API_USAGE UsageAttributionSupportedMetrics = "api_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_HOST_PERCENTAGE UsageAttributionSupportedMetrics = "apm_host_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_INFRA_HOST_PERCENTAGE UsageAttributionSupportedMetrics = "infra_host_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_USAGE UsageAttributionSupportedMetrics = "snmp_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_BROWSER_PERCENTAGE UsageAttributionSupportedMetrics = "browser_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_API_PERCENTAGE UsageAttributionSupportedMetrics = "api_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_NPM_HOST_USAGE UsageAttributionSupportedMetrics = "npm_host_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_LAMBDA_FUNCTIONS_USAGE UsageAttributionSupportedMetrics = "lambda_functions_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_LAMBDA_FUNCTIONS_PERCENTAGE UsageAttributionSupportedMetrics = "lambda_functions_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_LAMBDA_INVOCATIONS_USAGE UsageAttributionSupportedMetrics = "lambda_invocations_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_LAMBDA_INVOCATIONS_PERCENTAGE UsageAttributionSupportedMetrics = "lambda_invocations_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_FARGATE_USAGE UsageAttributionSupportedMetrics = "fargate_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_FARGATE_PERCENTAGE UsageAttributionSupportedMetrics = "fargate_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_USAGE UsageAttributionSupportedMetrics = "profiled_host_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_PERCENTAGE UsageAttributionSupportedMetrics = "profiled_host_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_CONTAINER_USAGE UsageAttributionSupportedMetrics = "profiled_container_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_CONTAINER_PERCENTAGE UsageAttributionSupportedMetrics = "profiled_container_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_USAGE UsageAttributionSupportedMetrics = "dbm_hosts_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_PERCENTAGE UsageAttributionSupportedMetrics = "dbm_hosts_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_QUERIES_USAGE UsageAttributionSupportedMetrics = "dbm_queries_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_QUERIES_PERCENTAGE UsageAttributionSupportedMetrics = "dbm_queries_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_LOGS_USAGE UsageAttributionSupportedMetrics = "estimated_indexed_logs_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_LOGS_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_indexed_logs_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_LOGS_USAGE UsageAttributionSupportedMetrics = "estimated_ingested_logs_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_LOGS_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_ingested_logs_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_USAGE UsageAttributionSupportedMetrics = "appsec_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_PERCENTAGE UsageAttributionSupportedMetrics = "appsec_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_SPANS_USAGE UsageAttributionSupportedMetrics = "estimated_indexed_spans_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_SPANS_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_indexed_spans_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_SPANS_USAGE UsageAttributionSupportedMetrics = "estimated_ingested_spans_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_SPANS_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_ingested_spans_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_USAGE UsageAttributionSupportedMetrics = "apm_fargate_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_PERCENTAGE UsageAttributionSupportedMetrics = "apm_fargate_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_FARGATE_USAGE UsageAttributionSupportedMetrics = "appsec_fargate_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_FARGATE_PERCENTAGE UsageAttributionSupportedMetrics = "appsec_fargate_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE UsageAttributionSupportedMetrics = "estimated_rum_usage_attribution_usage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE UsageAttributionSupportedMetrics = "estimated_rum_usage_attribution_percentage" + USAGEATTRIBUTIONSUPPORTEDMETRICS_ALL UsageAttributionSupportedMetrics = "*" ) var allowedUsageAttributionSupportedMetricsEnumValues = []UsageAttributionSupportedMetrics{ @@ -106,6 +108,8 @@ var allowedUsageAttributionSupportedMetricsEnumValues = []UsageAttributionSuppor USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_PERCENTAGE, USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_FARGATE_USAGE, USAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_FARGATE_PERCENTAGE, + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE, + USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE, USAGEATTRIBUTIONSUPPORTEDMETRICS_ALL, } diff --git a/api/datadogV1/model_usage_attribution_values.go b/api/datadogV1/model_usage_attribution_values.go index 757588c0632..30bafa9049a 100644 --- a/api/datadogV1/model_usage_attribution_values.go +++ b/api/datadogV1/model_usage_attribution_values.go @@ -82,6 +82,10 @@ type UsageAttributionValues struct { EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"` // The estimated ingested spans usage by tag(s). Note this field is in private beta. EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"` + // The percentage of estimated rum sessions usage by tag(s). This field is in private beta. + EstimatedRumUsageAttributionPercentage *float64 `json:"estimated_rum_usage_attribution_percentage,omitempty"` + // The estimated rum sessions usage by tag(s). This field is in private beta. + EstimatedRumUsageAttributionUsage *float64 `json:"estimated_rum_usage_attribution_usage,omitempty"` // The percentage of infrastructure host usage by tag(s). InfraHostPercentage *float64 `json:"infra_host_percentage,omitempty"` // The infrastructure host usage by tag(s). @@ -1140,6 +1144,62 @@ func (o *UsageAttributionValues) SetEstimatedIngestedSpansUsage(v float64) { o.EstimatedIngestedSpansUsage = &v } +// GetEstimatedRumUsageAttributionPercentage returns the EstimatedRumUsageAttributionPercentage field value if set, zero value otherwise. +func (o *UsageAttributionValues) GetEstimatedRumUsageAttributionPercentage() float64 { + if o == nil || o.EstimatedRumUsageAttributionPercentage == nil { + var ret float64 + return ret + } + return *o.EstimatedRumUsageAttributionPercentage +} + +// GetEstimatedRumUsageAttributionPercentageOk returns a tuple with the EstimatedRumUsageAttributionPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageAttributionValues) GetEstimatedRumUsageAttributionPercentageOk() (*float64, bool) { + if o == nil || o.EstimatedRumUsageAttributionPercentage == nil { + return nil, false + } + return o.EstimatedRumUsageAttributionPercentage, true +} + +// HasEstimatedRumUsageAttributionPercentage returns a boolean if a field has been set. +func (o *UsageAttributionValues) HasEstimatedRumUsageAttributionPercentage() bool { + return o != nil && o.EstimatedRumUsageAttributionPercentage != nil +} + +// SetEstimatedRumUsageAttributionPercentage gets a reference to the given float64 and assigns it to the EstimatedRumUsageAttributionPercentage field. +func (o *UsageAttributionValues) SetEstimatedRumUsageAttributionPercentage(v float64) { + o.EstimatedRumUsageAttributionPercentage = &v +} + +// GetEstimatedRumUsageAttributionUsage returns the EstimatedRumUsageAttributionUsage field value if set, zero value otherwise. +func (o *UsageAttributionValues) GetEstimatedRumUsageAttributionUsage() float64 { + if o == nil || o.EstimatedRumUsageAttributionUsage == nil { + var ret float64 + return ret + } + return *o.EstimatedRumUsageAttributionUsage +} + +// GetEstimatedRumUsageAttributionUsageOk returns a tuple with the EstimatedRumUsageAttributionUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageAttributionValues) GetEstimatedRumUsageAttributionUsageOk() (*float64, bool) { + if o == nil || o.EstimatedRumUsageAttributionUsage == nil { + return nil, false + } + return o.EstimatedRumUsageAttributionUsage, true +} + +// HasEstimatedRumUsageAttributionUsage returns a boolean if a field has been set. +func (o *UsageAttributionValues) HasEstimatedRumUsageAttributionUsage() bool { + return o != nil && o.EstimatedRumUsageAttributionUsage != nil +} + +// SetEstimatedRumUsageAttributionUsage gets a reference to the given float64 and assigns it to the EstimatedRumUsageAttributionUsage field. +func (o *UsageAttributionValues) SetEstimatedRumUsageAttributionUsage(v float64) { + o.EstimatedRumUsageAttributionUsage = &v +} + // GetInfraHostPercentage returns the InfraHostPercentage field value if set, zero value otherwise. func (o *UsageAttributionValues) GetInfraHostPercentage() float64 { if o == nil || o.InfraHostPercentage == nil { @@ -1646,6 +1706,12 @@ func (o UsageAttributionValues) MarshalJSON() ([]byte, error) { if o.EstimatedIngestedSpansUsage != nil { toSerialize["estimated_ingested_spans_usage"] = o.EstimatedIngestedSpansUsage } + if o.EstimatedRumUsageAttributionPercentage != nil { + toSerialize["estimated_rum_usage_attribution_percentage"] = o.EstimatedRumUsageAttributionPercentage + } + if o.EstimatedRumUsageAttributionUsage != nil { + toSerialize["estimated_rum_usage_attribution_usage"] = o.EstimatedRumUsageAttributionUsage + } if o.InfraHostPercentage != nil { toSerialize["infra_host_percentage"] = o.InfraHostPercentage } @@ -1699,56 +1765,58 @@ func (o UsageAttributionValues) MarshalJSON() ([]byte, error) { func (o *UsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) { raw := map[string]interface{}{} all := struct { - ApiPercentage *float64 `json:"api_percentage,omitempty"` - ApiUsage *float64 `json:"api_usage,omitempty"` - ApmFargatePercentage *float64 `json:"apm_fargate_percentage,omitempty"` - ApmFargateUsage *float64 `json:"apm_fargate_usage,omitempty"` - ApmHostPercentage *float64 `json:"apm_host_percentage,omitempty"` - ApmHostUsage *float64 `json:"apm_host_usage,omitempty"` - AppsecFargatePercentage *float64 `json:"appsec_fargate_percentage,omitempty"` - AppsecFargateUsage *float64 `json:"appsec_fargate_usage,omitempty"` - AppsecPercentage *float64 `json:"appsec_percentage,omitempty"` - AppsecUsage *float64 `json:"appsec_usage,omitempty"` - BrowserPercentage *float64 `json:"browser_percentage,omitempty"` - BrowserUsage *float64 `json:"browser_usage,omitempty"` - ContainerPercentage *float64 `json:"container_percentage,omitempty"` - ContainerUsage *float64 `json:"container_usage,omitempty"` - CspmContainerPercentage *float64 `json:"cspm_container_percentage,omitempty"` - CspmContainerUsage *float64 `json:"cspm_container_usage,omitempty"` - CspmHostPercentage *float64 `json:"cspm_host_percentage,omitempty"` - CspmHostUsage *float64 `json:"cspm_host_usage,omitempty"` - CustomTimeseriesPercentage *float64 `json:"custom_timeseries_percentage,omitempty"` - CustomTimeseriesUsage *float64 `json:"custom_timeseries_usage,omitempty"` - CwsContainerPercentage *float64 `json:"cws_container_percentage,omitempty"` - CwsContainerUsage *float64 `json:"cws_container_usage,omitempty"` - CwsHostPercentage *float64 `json:"cws_host_percentage,omitempty"` - CwsHostUsage *float64 `json:"cws_host_usage,omitempty"` - DbmHostsPercentage *float64 `json:"dbm_hosts_percentage,omitempty"` - DbmHostsUsage *float64 `json:"dbm_hosts_usage,omitempty"` - DbmQueriesPercentage *float64 `json:"dbm_queries_percentage,omitempty"` - DbmQueriesUsage *float64 `json:"dbm_queries_usage,omitempty"` - EstimatedIndexedLogsPercentage *float64 `json:"estimated_indexed_logs_percentage,omitempty"` - EstimatedIndexedLogsUsage *float64 `json:"estimated_indexed_logs_usage,omitempty"` - EstimatedIndexedSpansPercentage *float64 `json:"estimated_indexed_spans_percentage,omitempty"` - EstimatedIndexedSpansUsage *float64 `json:"estimated_indexed_spans_usage,omitempty"` - EstimatedIngestedLogsPercentage *float64 `json:"estimated_ingested_logs_percentage,omitempty"` - EstimatedIngestedLogsUsage *float64 `json:"estimated_ingested_logs_usage,omitempty"` - EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"` - EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"` - InfraHostPercentage *float64 `json:"infra_host_percentage,omitempty"` - InfraHostUsage *float64 `json:"infra_host_usage,omitempty"` - LambdaFunctionsPercentage *float64 `json:"lambda_functions_percentage,omitempty"` - LambdaFunctionsUsage *float64 `json:"lambda_functions_usage,omitempty"` - LambdaInvocationsPercentage *float64 `json:"lambda_invocations_percentage,omitempty"` - LambdaInvocationsUsage *float64 `json:"lambda_invocations_usage,omitempty"` - NpmHostPercentage *float64 `json:"npm_host_percentage,omitempty"` - NpmHostUsage *float64 `json:"npm_host_usage,omitempty"` - ProfiledContainerPercentage *float64 `json:"profiled_container_percentage,omitempty"` - ProfiledContainerUsage *float64 `json:"profiled_container_usage,omitempty"` - ProfiledHostsPercentage *float64 `json:"profiled_hosts_percentage,omitempty"` - ProfiledHostsUsage *float64 `json:"profiled_hosts_usage,omitempty"` - SnmpPercentage *float64 `json:"snmp_percentage,omitempty"` - SnmpUsage *float64 `json:"snmp_usage,omitempty"` + ApiPercentage *float64 `json:"api_percentage,omitempty"` + ApiUsage *float64 `json:"api_usage,omitempty"` + ApmFargatePercentage *float64 `json:"apm_fargate_percentage,omitempty"` + ApmFargateUsage *float64 `json:"apm_fargate_usage,omitempty"` + ApmHostPercentage *float64 `json:"apm_host_percentage,omitempty"` + ApmHostUsage *float64 `json:"apm_host_usage,omitempty"` + AppsecFargatePercentage *float64 `json:"appsec_fargate_percentage,omitempty"` + AppsecFargateUsage *float64 `json:"appsec_fargate_usage,omitempty"` + AppsecPercentage *float64 `json:"appsec_percentage,omitempty"` + AppsecUsage *float64 `json:"appsec_usage,omitempty"` + BrowserPercentage *float64 `json:"browser_percentage,omitempty"` + BrowserUsage *float64 `json:"browser_usage,omitempty"` + ContainerPercentage *float64 `json:"container_percentage,omitempty"` + ContainerUsage *float64 `json:"container_usage,omitempty"` + CspmContainerPercentage *float64 `json:"cspm_container_percentage,omitempty"` + CspmContainerUsage *float64 `json:"cspm_container_usage,omitempty"` + CspmHostPercentage *float64 `json:"cspm_host_percentage,omitempty"` + CspmHostUsage *float64 `json:"cspm_host_usage,omitempty"` + CustomTimeseriesPercentage *float64 `json:"custom_timeseries_percentage,omitempty"` + CustomTimeseriesUsage *float64 `json:"custom_timeseries_usage,omitempty"` + CwsContainerPercentage *float64 `json:"cws_container_percentage,omitempty"` + CwsContainerUsage *float64 `json:"cws_container_usage,omitempty"` + CwsHostPercentage *float64 `json:"cws_host_percentage,omitempty"` + CwsHostUsage *float64 `json:"cws_host_usage,omitempty"` + DbmHostsPercentage *float64 `json:"dbm_hosts_percentage,omitempty"` + DbmHostsUsage *float64 `json:"dbm_hosts_usage,omitempty"` + DbmQueriesPercentage *float64 `json:"dbm_queries_percentage,omitempty"` + DbmQueriesUsage *float64 `json:"dbm_queries_usage,omitempty"` + EstimatedIndexedLogsPercentage *float64 `json:"estimated_indexed_logs_percentage,omitempty"` + EstimatedIndexedLogsUsage *float64 `json:"estimated_indexed_logs_usage,omitempty"` + EstimatedIndexedSpansPercentage *float64 `json:"estimated_indexed_spans_percentage,omitempty"` + EstimatedIndexedSpansUsage *float64 `json:"estimated_indexed_spans_usage,omitempty"` + EstimatedIngestedLogsPercentage *float64 `json:"estimated_ingested_logs_percentage,omitempty"` + EstimatedIngestedLogsUsage *float64 `json:"estimated_ingested_logs_usage,omitempty"` + EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"` + EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"` + EstimatedRumUsageAttributionPercentage *float64 `json:"estimated_rum_usage_attribution_percentage,omitempty"` + EstimatedRumUsageAttributionUsage *float64 `json:"estimated_rum_usage_attribution_usage,omitempty"` + InfraHostPercentage *float64 `json:"infra_host_percentage,omitempty"` + InfraHostUsage *float64 `json:"infra_host_usage,omitempty"` + LambdaFunctionsPercentage *float64 `json:"lambda_functions_percentage,omitempty"` + LambdaFunctionsUsage *float64 `json:"lambda_functions_usage,omitempty"` + LambdaInvocationsPercentage *float64 `json:"lambda_invocations_percentage,omitempty"` + LambdaInvocationsUsage *float64 `json:"lambda_invocations_usage,omitempty"` + NpmHostPercentage *float64 `json:"npm_host_percentage,omitempty"` + NpmHostUsage *float64 `json:"npm_host_usage,omitempty"` + ProfiledContainerPercentage *float64 `json:"profiled_container_percentage,omitempty"` + ProfiledContainerUsage *float64 `json:"profiled_container_usage,omitempty"` + ProfiledHostsPercentage *float64 `json:"profiled_hosts_percentage,omitempty"` + ProfiledHostsUsage *float64 `json:"profiled_hosts_usage,omitempty"` + SnmpPercentage *float64 `json:"snmp_percentage,omitempty"` + SnmpUsage *float64 `json:"snmp_usage,omitempty"` }{} err = json.Unmarshal(bytes, &all) if err != nil { @@ -1795,6 +1863,8 @@ func (o *UsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) { o.EstimatedIngestedLogsUsage = all.EstimatedIngestedLogsUsage o.EstimatedIngestedSpansPercentage = all.EstimatedIngestedSpansPercentage o.EstimatedIngestedSpansUsage = all.EstimatedIngestedSpansUsage + o.EstimatedRumUsageAttributionPercentage = all.EstimatedRumUsageAttributionPercentage + o.EstimatedRumUsageAttributionUsage = all.EstimatedRumUsageAttributionUsage o.InfraHostPercentage = all.InfraHostPercentage o.InfraHostUsage = all.InfraHostUsage o.LambdaFunctionsPercentage = all.LambdaFunctionsPercentage