Skip to content

Commit

Permalink
Regenerate client from commit 4e5b7510 of spec repo (#1658)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Sep 14, 2022
1 parent 41fe109 commit dbcda44
Show file tree
Hide file tree
Showing 12 changed files with 380 additions and 4 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-09-13 07:28:02.784061",
"spec_repo_commit": "82fabb35"
"regenerated": "2022-09-14 07:52:39.048467",
"spec_repo_commit": "4e5b7510"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-09-13 07:28:02.796264",
"spec_repo_commit": "82fabb35"
"regenerated": "2022-09-14 07:52:39.066098",
"spec_repo_commit": "4e5b7510"
}
}
}
50 changes: 50 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3627,6 +3627,7 @@ components:
description: Supported products for hourly usage attribution requests.
enum:
- api_usage
- apm_fargate_usage
- apm_host_usage
- appsec_usage
- browser_usage
Expand Down Expand Up @@ -3654,6 +3655,7 @@ components:
type: string
x-enum-varnames:
- API_USAGE
- APM_FARGATE_USAGE
- APM_HOST_USAGE
- APPSEC_USAGE
- BROWSER_USAGE
Expand Down Expand Up @@ -6875,6 +6877,8 @@ components:
enum:
- api_usage
- api_percentage
- apm_fargate_usage
- apm_fargate_percentage
- apm_host_usage
- apm_host_percentage
- appsec_usage
Expand Down Expand Up @@ -6928,6 +6932,8 @@ components:
x-enum-varnames:
- API_USAGE
- API_PERCENTAGE
- APM_FARGATE_USAGE
- APM_FARGATE_PERCENTAGE
- APM_HOST_USAGE
- APM_HOST_PERCENTAGE
- APPSEC_USAGE
Expand Down Expand Up @@ -6988,6 +6994,14 @@ components:
description: The synthetic API test usage by tag(s).
format: double
type: number
apm_fargate_percentage:
description: The percentage of APM ECS Fargate task usage by tag(s).
format: double
type: number
apm_fargate_usage:
description: The APM ECS Fargate task usage by tag(s).
format: double
type: number
apm_host_percentage:
description: The percentage of APM host usage by tag(s).
format: double
Expand Down Expand Up @@ -14000,6 +14014,8 @@ components:
- estimated_indexed_spans_percentage
- estimated_ingested_spans_usage
- estimated_ingested_spans_percentage
- apm_fargate_usage
- apm_fargate_percentage
type: string
x-enum-varnames:
- API_PERCENTAGE
Expand Down Expand Up @@ -14032,6 +14048,8 @@ components:
- ESTIMATED_INDEXED_SPANS_PERCENTAGE
- ESTIMATED_INGESTED_SPANS_USAGE
- ESTIMATED_INGESTED_SPANS_PERCENTAGE
- APM_FARGATE_USAGE
- APM_FARGATE_PERCENTAGE
UsageAttributionSupportedMetrics:
description: Supported fields for usage attribution requests (valid requests
contain one or more metrics, or `*` for all).
Expand Down Expand Up @@ -14076,6 +14094,8 @@ components:
- estimated_indexed_spans_percentage
- estimated_ingested_spans_usage
- estimated_ingested_spans_percentage
- apm_fargate_usage
- apm_fargate_percentage
- '*'
type: string
x-enum-varnames:
Expand Down Expand Up @@ -14119,6 +14139,8 @@ components:
- ESTIMATED_INDEXED_SPANS_PERCENTAGE
- ESTIMATED_INGESTED_SPANS_USAGE
- ESTIMATED_INGESTED_SPANS_PERCENTAGE
- APM_FARGATE_USAGE
- APM_FARGATE_PERCENTAGE
- ALL
UsageAttributionTagNames:
additionalProperties:
Expand Down Expand Up @@ -14159,6 +14181,14 @@ components:
description: The synthetic API test usage by tag(s).
format: double
type: number
apm_fargate_percentage:
description: The percentage of APM ECS Fargate task usage by tag(s).
format: double
type: number
apm_fargate_usage:
description: The APM ECS Fargate task usage by tag(s).
format: double
type: number
apm_host_percentage:
description: The percentage of APM host usage by tag(s).
format: double
Expand Down Expand Up @@ -14843,6 +14873,11 @@ components:
UsageFargateHour:
description: Number of Fargate tasks run and hourly usage.
properties:
apm_fargate_count:
description: The high-water mark of APM ECS Fargate tasks during the given
hour.
format: int64
type: integer
avg_profiled_fargate_tasks:
description: The average profiled task count for Fargate Profiling.
format: int64
Expand Down Expand Up @@ -15645,6 +15680,11 @@ components:
over all hours in the current date all organizations.
format: int64
type: integer
apm_fargate_count_avg:
description: Shows the average of all APM ECS Fargate tasks over all hours
in the current date for all organizations.
format: int64
type: integer
apm_host_top99p:
description: Shows the 99th percentile of all distinct APM hosts over all
hours in the current date for all organizations.
Expand Down Expand Up @@ -15975,6 +16015,11 @@ components:
over all hours in the current date for the given org.
format: int64
type: integer
apm_fargate_count_avg:
description: Shows the average of all APM ECS Fargate tasks over all hours
in the current months for the given org.
format: int64
type: integer
apm_host_top99p:
description: Shows the 99th percentile of all distinct APM hosts over all
hours in the current date for the given org.
Expand Down Expand Up @@ -16308,6 +16353,11 @@ components:
over all hours in the current months all organizations.
format: int64
type: integer
apm_fargate_count_avg_sum:
description: Shows the average of all APM ECS Fargate tasks over all hours
in the current months for all organizations.
format: int64
type: integer
apm_host_top99p_sum:
description: Shows the 99th percentile of all distinct APM hosts over all
hours in the current months for all organizations.
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 @@ -15,6 +15,7 @@ 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_USAGE HourlyUsageAttributionUsageType = "appsec_usage"
HOURLYUSAGEATTRIBUTIONUSAGETYPE_BROWSER_USAGE HourlyUsageAttributionUsageType = "browser_usage"
Expand Down Expand Up @@ -43,6 +44,7 @@ const (

var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionUsageType{
HOURLYUSAGEATTRIBUTIONUSAGETYPE_API_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_APM_FARGATE_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_APM_HOST_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_APPSEC_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_BROWSER_USAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ type MonthlyUsageAttributionSupportedMetrics string
const (
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_API_USAGE MonthlyUsageAttributionSupportedMetrics = "api_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_API_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "api_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_USAGE MonthlyUsageAttributionSupportedMetrics = "apm_fargate_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "apm_fargate_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APM_HOST_USAGE MonthlyUsageAttributionSupportedMetrics = "apm_host_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APM_HOST_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "apm_host_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_USAGE MonthlyUsageAttributionSupportedMetrics = "appsec_usage"
Expand Down Expand Up @@ -70,6 +72,8 @@ const (
var allowedMonthlyUsageAttributionSupportedMetricsEnumValues = []MonthlyUsageAttributionSupportedMetrics{
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_API_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_API_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APM_HOST_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APM_HOST_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_APPSEC_USAGE,
Expand Down
78 changes: 78 additions & 0 deletions api/datadogV1/model_monthly_usage_attribution_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ type MonthlyUsageAttributionValues struct {
ApiPercentage *float64 `json:"api_percentage,omitempty"`
// The synthetic API test usage by tag(s).
ApiUsage *float64 `json:"api_usage,omitempty"`
// The percentage of APM ECS Fargate task usage by tag(s).
ApmFargatePercentage *float64 `json:"apm_fargate_percentage,omitempty"`
// The APM ECS Fargate task usage by tag(s).
ApmFargateUsage *float64 `json:"apm_fargate_usage,omitempty"`
// The percentage of APM host usage by tag(s).
ApmHostPercentage *float64 `json:"apm_host_percentage,omitempty"`
// The APM host usage by tag(s).
Expand Down Expand Up @@ -172,6 +176,70 @@ func (o *MonthlyUsageAttributionValues) SetApiUsage(v float64) {
o.ApiUsage = &v
}

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

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

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

return false
}

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

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

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

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

return false
}

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

// GetApmHostPercentage returns the ApmHostPercentage field value if set, zero value otherwise.
func (o *MonthlyUsageAttributionValues) GetApmHostPercentage() float64 {
if o == nil || o.ApmHostPercentage == nil {
Expand Down Expand Up @@ -1336,6 +1404,12 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) {
if o.ApiUsage != nil {
toSerialize["api_usage"] = o.ApiUsage
}
if o.ApmFargatePercentage != nil {
toSerialize["apm_fargate_percentage"] = o.ApmFargatePercentage
}
if o.ApmFargateUsage != nil {
toSerialize["apm_fargate_usage"] = o.ApmFargateUsage
}
if o.ApmHostPercentage != nil {
toSerialize["apm_host_percentage"] = o.ApmHostPercentage
}
Expand Down Expand Up @@ -1457,6 +1531,8 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
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"`
AppsecPercentage *float64 `json:"appsec_percentage,omitempty"`
Expand Down Expand Up @@ -1505,6 +1581,8 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
}
o.ApiPercentage = all.ApiPercentage
o.ApiUsage = all.ApiUsage
o.ApmFargatePercentage = all.ApmFargatePercentage
o.ApmFargateUsage = all.ApmFargateUsage
o.ApmHostPercentage = all.ApmHostPercentage
o.ApmHostUsage = all.ApmHostUsage
o.AppsecPercentage = all.AppsecPercentage
Expand Down
4 changes: 4 additions & 0 deletions api/datadogV1/model_usage_attribution_sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const (
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"
)

var allowedUsageAttributionSortEnumValues = []UsageAttributionSort{
Expand Down Expand Up @@ -77,6 +79,8 @@ var allowedUsageAttributionSortEnumValues = []UsageAttributionSort{
USAGEATTRIBUTIONSORT_ESTIMATED_INDEXED_SPANS_PERCENTAGE,
USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_SPANS_USAGE,
USAGEATTRIBUTIONSORT_ESTIMATED_INGESTED_SPANS_PERCENTAGE,
USAGEATTRIBUTIONSORT_APM_FARGATE_USAGE,
USAGEATTRIBUTIONSORT_APM_FARGATE_PERCENTAGE,
}

// GetAllowedValues reeturns the list of possible values.
Expand Down
4 changes: 4 additions & 0 deletions api/datadogV1/model_usage_attribution_supported_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const (
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_ALL UsageAttributionSupportedMetrics = "*"
)

Expand Down Expand Up @@ -98,6 +100,8 @@ var allowedUsageAttributionSupportedMetricsEnumValues = []UsageAttributionSuppor
USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INDEXED_SPANS_PERCENTAGE,
USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_SPANS_USAGE,
USAGEATTRIBUTIONSUPPORTEDMETRICS_ESTIMATED_INGESTED_SPANS_PERCENTAGE,
USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_USAGE,
USAGEATTRIBUTIONSUPPORTEDMETRICS_APM_FARGATE_PERCENTAGE,
USAGEATTRIBUTIONSUPPORTEDMETRICS_ALL,
}

Expand Down
Loading

0 comments on commit dbcda44

Please sign in to comment.