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

Add profiled fargate tasks to usage attribution #1886

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-22 19:41:03.298967",
"spec_repo_commit": "837505a7"
"regenerated": "2023-02-23 20:26:23.113601",
"spec_repo_commit": "437dad25"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-22 19:41:03.312833",
"spec_repo_commit": "837505a7"
"regenerated": "2023-02-23 20:26:23.127638",
"spec_repo_commit": "437dad25"
}
}
}
14 changes: 14 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3665,6 +3665,7 @@ components:
- invocations_usage
- npm_host_usage
- profiled_container_usage
- profiled_fargate_usage
- profiled_host_usage
- snmp_usage
- estimated_rum_sessions_usage
Expand Down Expand Up @@ -3695,6 +3696,7 @@ components:
- INVOCATIONS_USAGE
- NPM_HOST_USAGE
- PROFILED_CONTAINER_USAGE
- PROFILED_FARGATE_USAGE
- PROFILED_HOST_USAGE
- SNMP_USAGE
- ESTIMATED_RUM_SESSIONS_USAGE
Expand Down Expand Up @@ -7138,6 +7140,8 @@ components:
- npm_host_percentage
- profiled_container_usage
- profiled_container_percentage
- profiled_fargate_usage
- profiled_fargate_percentage
- profiled_host_usage
- profiled_host_percentage
- snmp_usage
Expand Down Expand Up @@ -7197,6 +7201,8 @@ components:
- NPM_HOST_PERCENTAGE
- PROFILED_CONTAINER_USAGE
- PROFILED_CONTAINER_PERCENTAGE
- PROFILED_FARGATE_USAGE
- PROFILED_FARGATE_PERCENTAGE
- PROFILED_HOST_USAGE
- PROFILED_HOST_PERCENTAGE
- SNMP_USAGE
Expand Down Expand Up @@ -7420,6 +7426,14 @@ components:
description: The profiled container usage by tag(s).
format: double
type: number
profiled_fargate_percentage:
description: The percentage of profiled Fargate task usage by tag(s).
format: double
type: number
profiled_fargate_usage:
description: The profiled Fargate task usage by tag(s).
format: double
type: number
profiled_host_percentage:
description: The percentage of profiled hosts 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 @@ -39,6 +39,7 @@ const (
HOURLYUSAGEATTRIBUTIONUSAGETYPE_INVOCATIONS_USAGE HourlyUsageAttributionUsageType = "invocations_usage"
HOURLYUSAGEATTRIBUTIONUSAGETYPE_NPM_HOST_USAGE HourlyUsageAttributionUsageType = "npm_host_usage"
HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_CONTAINER_USAGE HourlyUsageAttributionUsageType = "profiled_container_usage"
HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_FARGATE_USAGE HourlyUsageAttributionUsageType = "profiled_fargate_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"
Expand Down Expand Up @@ -70,6 +71,7 @@ var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionU
HOURLYUSAGEATTRIBUTIONUSAGETYPE_INVOCATIONS_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_NPM_HOST_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_CONTAINER_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_FARGATE_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_PROFILED_HOST_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_SNMP_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_RUM_SESSIONS_USAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ const (
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_NPM_HOST_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "npm_host_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_CONTAINER_USAGE MonthlyUsageAttributionSupportedMetrics = "profiled_container_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_CONTAINER_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "profiled_container_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_FARGATE_USAGE MonthlyUsageAttributionSupportedMetrics = "profiled_fargate_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_FARGATE_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "profiled_fargate_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_USAGE MonthlyUsageAttributionSupportedMetrics = "profiled_host_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "profiled_host_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_USAGE MonthlyUsageAttributionSupportedMetrics = "snmp_usage"
Expand Down Expand Up @@ -124,6 +126,8 @@ var allowedMonthlyUsageAttributionSupportedMetricsEnumValues = []MonthlyUsageAtt
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_NPM_HOST_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_CONTAINER_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_CONTAINER_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_FARGATE_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_FARGATE_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_PROFILED_HOST_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_SNMP_USAGE,
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 @@ -114,6 +114,10 @@ type MonthlyUsageAttributionValues struct {
ProfiledContainerPercentage *float64 `json:"profiled_container_percentage,omitempty"`
// The profiled container usage by tag(s).
ProfiledContainerUsage *float64 `json:"profiled_container_usage,omitempty"`
// The percentage of profiled Fargate task usage by tag(s).
ProfiledFargatePercentage *float64 `json:"profiled_fargate_percentage,omitempty"`
// The profiled Fargate task usage by tag(s).
ProfiledFargateUsage *float64 `json:"profiled_fargate_usage,omitempty"`
// The percentage of profiled hosts usage by tag(s).
ProfiledHostPercentage *float64 `json:"profiled_host_percentage,omitempty"`
// The profiled hosts usage by tag(s).
Expand Down Expand Up @@ -1600,6 +1604,62 @@ func (o *MonthlyUsageAttributionValues) SetProfiledContainerUsage(v float64) {
o.ProfiledContainerUsage = &v
}

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

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

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

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

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

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

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

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

// GetProfiledHostPercentage returns the ProfiledHostPercentage field value if set, zero value otherwise.
func (o *MonthlyUsageAttributionValues) GetProfiledHostPercentage() float64 {
if o == nil || o.ProfiledHostPercentage == nil {
Expand Down Expand Up @@ -1874,6 +1934,12 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) {
if o.ProfiledContainerUsage != nil {
toSerialize["profiled_container_usage"] = o.ProfiledContainerUsage
}
if o.ProfiledFargatePercentage != nil {
toSerialize["profiled_fargate_percentage"] = o.ProfiledFargatePercentage
}
if o.ProfiledFargateUsage != nil {
toSerialize["profiled_fargate_usage"] = o.ProfiledFargateUsage
}
if o.ProfiledHostPercentage != nil {
toSerialize["profiled_host_percentage"] = o.ProfiledHostPercentage
}
Expand Down Expand Up @@ -1949,6 +2015,8 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
NpmHostUsage *float64 `json:"npm_host_usage,omitempty"`
ProfiledContainerPercentage *float64 `json:"profiled_container_percentage,omitempty"`
ProfiledContainerUsage *float64 `json:"profiled_container_usage,omitempty"`
ProfiledFargatePercentage *float64 `json:"profiled_fargate_percentage,omitempty"`
ProfiledFargateUsage *float64 `json:"profiled_fargate_usage,omitempty"`
ProfiledHostPercentage *float64 `json:"profiled_host_percentage,omitempty"`
ProfiledHostUsage *float64 `json:"profiled_host_usage,omitempty"`
SnmpPercentage *float64 `json:"snmp_percentage,omitempty"`
Expand Down Expand Up @@ -2015,6 +2083,8 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
o.NpmHostUsage = all.NpmHostUsage
o.ProfiledContainerPercentage = all.ProfiledContainerPercentage
o.ProfiledContainerUsage = all.ProfiledContainerUsage
o.ProfiledFargatePercentage = all.ProfiledFargatePercentage
o.ProfiledFargateUsage = all.ProfiledFargateUsage
o.ProfiledHostPercentage = all.ProfiledHostPercentage
o.ProfiledHostUsage = all.ProfiledHostUsage
o.SnmpPercentage = all.SnmpPercentage
Expand Down