Skip to content

Commit

Permalink
Regenerate client from commit 1e3acf42 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 23, 2022
1 parent a7c14e4 commit 5df7341
Show file tree
Hide file tree
Showing 8 changed files with 271 additions and 83 deletions.
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": "2022-12-23 14:13:31.810085",
"spec_repo_commit": "c3b2f174"
"regenerated": "2022-12-23 16:48:37.993022",
"spec_repo_commit": "1e3acf42"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-12-23 14:13:31.822306",
"spec_repo_commit": "c3b2f174"
"regenerated": "2022-12-23 16:48:38.004484",
"spec_repo_commit": "1e3acf42"
}
}
}
34 changes: 34 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3669,6 +3669,7 @@ components:
- profiled_container_usage
- profiled_host_usage
- snmp_usage
- estimated_rum_sessions_usage
type: string
x-enum-varnames:
- API_USAGE
Expand Down Expand Up @@ -3698,6 +3699,7 @@ components:
- PROFILED_CONTAINER_USAGE
- PROFILED_HOST_USAGE
- SNMP_USAGE
- ESTIMATED_RUM_SESSIONS_USAGE
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.
Expand Down Expand Up @@ -7024,6 +7026,8 @@ components:
- profiled_host_percentage
- snmp_usage
- snmp_percentage
- estimated_rum_sessions_usage
- estimated_rum_sessions_percentage
- '*'
type: string
x-enum-varnames:
Expand Down Expand Up @@ -7081,6 +7085,8 @@ components:
- PROFILED_HOST_PERCENTAGE
- SNMP_USAGE
- SNMP_PERCENTAGE
- ESTIMATED_RUM_SESSIONS_USAGE
- ESTIMATED_RUM_SESSIONS_PERCENTAGE
- ALL
MonthlyUsageAttributionValues:
description: Fields in Usage Summary by tag(s).
Expand Down Expand Up @@ -7241,6 +7247,16 @@ components:
in private beta.
format: double
type: number
estimated_rum_sessions_percentage:
description: The percentage of estimated rum sessions usage by tag(s). This
field is in private beta.
format: double
type: number
estimated_rum_sessions_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
Expand Down Expand Up @@ -14508,6 +14524,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
Expand Down Expand Up @@ -14544,6 +14562,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).
Expand Down Expand Up @@ -14592,6 +14612,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:
Expand Down Expand Up @@ -14639,6 +14661,8 @@ components:
- APM_FARGATE_PERCENTAGE
- APPSEC_FARGATE_USAGE
- APPSEC_FARGATE_PERCENTAGE
- ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE
- ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE
- ALL
UsageAttributionTagNames:
additionalProperties:
Expand Down Expand Up @@ -14830,6 +14854,16 @@ components:
is in private beta.
format: double
type: number
estimated_rum_sessions_percentage:
description: The percentage of estimated rum sessions usage by tag(s). This
field is in private beta.
format: double
type: number
estimated_rum_sessions_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
Expand Down
2 changes: 2 additions & 0 deletions api/datadogV1/model_hourly_usage_attribution_usage_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const (
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_SESSIONS_USAGE HourlyUsageAttributionUsageType = "estimated_rum_sessions_usage"
)

var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionUsageType{
Expand Down Expand Up @@ -71,6 +72,7 @@ var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionU
HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_CONTAINER_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_HOST_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_SNMP_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_RUM_SESSIONS_USAGE,
}

// GetAllowedValues reeturns the list of possible values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ const (
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "profiled_host_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_USAGE MonthlyUsageAttributionSupportedMetrics = "snmp_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "snmp_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_RUM_SESSIONS_USAGE MonthlyUsageAttributionSupportedMetrics = "estimated_rum_sessions_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_RUM_SESSIONS_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "estimated_rum_sessions_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_ALL MonthlyUsageAttributionSupportedMetrics = "*"
)

Expand Down Expand Up @@ -126,6 +128,8 @@ var allowedMonthlyUsageAttributionSupportedMetricsEnumValues = []MonthlyUsageAtt
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_RUM_SESSIONS_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_RUM_SESSIONS_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_ALL,
}

Expand Down
70 changes: 70 additions & 0 deletions api/datadogV1/model_monthly_usage_attribution_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
EstimatedRumSessionsPercentage *float64 `json:"estimated_rum_sessions_percentage,omitempty"`
// The estimated rum sessions usage by tag(s). This field is in private beta.
EstimatedRumSessionsUsage *float64 `json:"estimated_rum_sessions_usage,omitempty"`
// The percentage of Fargate usage by tags.
FargatePercentage *float64 `json:"fargate_percentage,omitempty"`
// The Fargate usage by tags.
Expand Down Expand Up @@ -1148,6 +1152,62 @@ func (o *MonthlyUsageAttributionValues) SetEstimatedIngestedSpansUsage(v float64
o.EstimatedIngestedSpansUsage = &v
}

// GetEstimatedRumSessionsPercentage returns the EstimatedRumSessionsPercentage field value if set, zero value otherwise.
func (o *MonthlyUsageAttributionValues) GetEstimatedRumSessionsPercentage() float64 {
if o == nil || o.EstimatedRumSessionsPercentage == nil {
var ret float64
return ret
}
return *o.EstimatedRumSessionsPercentage
}

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

// HasEstimatedRumSessionsPercentage returns a boolean if a field has been set.
func (o *MonthlyUsageAttributionValues) HasEstimatedRumSessionsPercentage() bool {
return o != nil && o.EstimatedRumSessionsPercentage != nil
}

// SetEstimatedRumSessionsPercentage gets a reference to the given float64 and assigns it to the EstimatedRumSessionsPercentage field.
func (o *MonthlyUsageAttributionValues) SetEstimatedRumSessionsPercentage(v float64) {
o.EstimatedRumSessionsPercentage = &v
}

// GetEstimatedRumSessionsUsage returns the EstimatedRumSessionsUsage field value if set, zero value otherwise.
func (o *MonthlyUsageAttributionValues) GetEstimatedRumSessionsUsage() float64 {
if o == nil || o.EstimatedRumSessionsUsage == nil {
var ret float64
return ret
}
return *o.EstimatedRumSessionsUsage
}

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

// HasEstimatedRumSessionsUsage returns a boolean if a field has been set.
func (o *MonthlyUsageAttributionValues) HasEstimatedRumSessionsUsage() bool {
return o != nil && o.EstimatedRumSessionsUsage != nil
}

// SetEstimatedRumSessionsUsage gets a reference to the given float64 and assigns it to the EstimatedRumSessionsUsage field.
func (o *MonthlyUsageAttributionValues) SetEstimatedRumSessionsUsage(v float64) {
o.EstimatedRumSessionsUsage = &v
}

// GetFargatePercentage returns the FargatePercentage field value if set, zero value otherwise.
func (o *MonthlyUsageAttributionValues) GetFargatePercentage() float64 {
if o == nil || o.FargatePercentage == nil {
Expand Down Expand Up @@ -1766,6 +1826,12 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) {
if o.EstimatedIngestedSpansUsage != nil {
toSerialize["estimated_ingested_spans_usage"] = o.EstimatedIngestedSpansUsage
}
if o.EstimatedRumSessionsPercentage != nil {
toSerialize["estimated_rum_sessions_percentage"] = o.EstimatedRumSessionsPercentage
}
if o.EstimatedRumSessionsUsage != nil {
toSerialize["estimated_rum_sessions_usage"] = o.EstimatedRumSessionsUsage
}
if o.FargatePercentage != nil {
toSerialize["fargate_percentage"] = o.FargatePercentage
}
Expand Down Expand Up @@ -1867,6 +1933,8 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
EstimatedIngestedLogsUsage *float64 `json:"estimated_ingested_logs_usage,omitempty"`
EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"`
EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"`
EstimatedRumSessionsPercentage *float64 `json:"estimated_rum_sessions_percentage,omitempty"`
EstimatedRumSessionsUsage *float64 `json:"estimated_rum_sessions_usage,omitempty"`
FargatePercentage *float64 `json:"fargate_percentage,omitempty"`
FargateUsage *float64 `json:"fargate_usage,omitempty"`
FunctionsPercentage *float64 `json:"functions_percentage,omitempty"`
Expand Down Expand Up @@ -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.EstimatedRumSessionsPercentage = all.EstimatedRumSessionsPercentage
o.EstimatedRumSessionsUsage = all.EstimatedRumSessionsUsage
o.FargatePercentage = all.FargatePercentage
o.FargateUsage = all.FargateUsage
o.FunctionsPercentage = all.FunctionsPercentage
Expand Down
Loading

0 comments on commit 5df7341

Please sign in to comment.