Skip to content

Commit

Permalink
Regenerate client from commit f051eaf2 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Apr 1, 2022
1 parent c7675fa commit 83a4492
Show file tree
Hide file tree
Showing 98 changed files with 1,463 additions and 289 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.2",
"regenerated": "2022-03-30 20:56:57.671895",
"spec_repo_commit": "442fcd8b"
"regenerated": "2022-04-01 16:22:33.318695",
"spec_repo_commit": "f051eaf2"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-03-30 20:56:57.684192",
"spec_repo_commit": "442fcd8b"
"regenerated": "2022-04-01 16:22:33.330847",
"spec_repo_commit": "f051eaf2"
}
}
}
38 changes: 8 additions & 30 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13755,15 +13755,8 @@ components:
format: date-time
type: string
ingested_events_bytes:
deprecated: true
description: Use `ingested_spans_billable_bytes` as of 2022-03-01. Contains
the total number of bytes ingested during a given hour using an old method
of calculating span volume.
format: int64
type: integer
ingested_spans_billable_bytes:
description: Contains the total number of bytes ingested during a given
hour.
description: Contains the total number of bytes ingested for APM spans during
a given hour.
format: int64
type: integer
org_name:
Expand Down Expand Up @@ -14360,11 +14353,6 @@ components:
hours in the current date for all organizations.
format: int64
type: integer
apm_ingested_spans_billable_bytes_sum:
description: Shows the sum of all ingested APM span bytes over all hours
in the current date for all organizations.
format: int64
type: integer
audit_logs_lines_indexed_sum:
description: Shows the sum of audit logs lines indexed over all hours in
the current date for all organizations.
Expand Down Expand Up @@ -14651,8 +14639,8 @@ components:
format: int64
type: integer
twol_ingested_events_bytes_sum:
description: Shows the sum of all tracing without limits bytes ingested
over all hours in the current date for all organizations.
description: Shows the sum of all ingested APM span bytes over all hours
in the current date for all organizations.
format: int64
type: integer
vsphere_host_top99p:
Expand Down Expand Up @@ -14680,11 +14668,6 @@ components:
hours in the current date for the given org.
format: int64
type: integer
apm_ingested_spans_billable_bytes_sum:
description: Shows the sum of all ingested APM span bytes over all hours
in the current date for the given org.
format: int64
type: integer
audit_logs_lines_indexed_sum:
description: Shows the sum of all audit logs lines indexed over all hours
in the current date for the given org.
Expand Down Expand Up @@ -14971,8 +14954,8 @@ components:
format: int64
type: integer
twol_ingested_events_bytes_sum:
description: Shows the sum of all tracing without limits bytes ingested
over all hours in the current date for the given org.
description: Shows the sum of all ingested APM span bytes over all hours
in the current date for the given org.
format: int64
type: integer
vsphere_host_top99p:
Expand Down Expand Up @@ -15000,11 +14983,6 @@ components:
hours in the current months for all organizations.
format: int64
type: integer
apm_ingested_spans_billable_bytes_agg_sum:
description: Shows the sum of all ingested APM span bytes over all hours
in the current months for all organizations.
format: int64
type: integer
audit_logs_lines_indexed_agg_sum:
description: Shows the sum of all audit logs lines indexed over all hours
in the current months for all organizations.
Expand Down Expand Up @@ -15336,8 +15314,8 @@ components:
format: int64
type: integer
twol_ingested_events_bytes_agg_sum:
description: Shows the sum of all tracing without limits bytes ingested
over all hours in the current months for all organizations.
description: Shows the sum of all ingested APM span bytes over all hours
in the current months for all organizations.
format: int64
type: integer
usage:
Expand Down
53 changes: 5 additions & 48 deletions api/v1/datadog/model_usage_ingested_spans_hour.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ import (
type UsageIngestedSpansHour struct {
// The hour for the usage.
Hour *time.Time `json:"hour,omitempty"`
// Use `ingested_spans_billable_bytes` as of 2022-03-01. Contains the total number of bytes ingested during a given hour using an old method of calculating span volume.
// Deprecated
// Contains the total number of bytes ingested for APM spans during a given hour.
IngestedEventsBytes *int64 `json:"ingested_events_bytes,omitempty"`
// Contains the total number of bytes ingested during a given hour.
IngestedSpansBillableBytes *int64 `json:"ingested_spans_billable_bytes,omitempty"`
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The organization public ID.
Expand Down Expand Up @@ -79,7 +76,6 @@ func (o *UsageIngestedSpansHour) SetHour(v time.Time) {
}

// GetIngestedEventsBytes returns the IngestedEventsBytes field value if set, zero value otherwise.
// Deprecated
func (o *UsageIngestedSpansHour) GetIngestedEventsBytes() int64 {
if o == nil || o.IngestedEventsBytes == nil {
var ret int64
Expand All @@ -90,7 +86,6 @@ func (o *UsageIngestedSpansHour) GetIngestedEventsBytes() int64 {

// GetIngestedEventsBytesOk returns a tuple with the IngestedEventsBytes field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *UsageIngestedSpansHour) GetIngestedEventsBytesOk() (*int64, bool) {
if o == nil || o.IngestedEventsBytes == nil {
return nil, false
Expand All @@ -108,43 +103,10 @@ func (o *UsageIngestedSpansHour) HasIngestedEventsBytes() bool {
}

// SetIngestedEventsBytes gets a reference to the given int64 and assigns it to the IngestedEventsBytes field.
// Deprecated
func (o *UsageIngestedSpansHour) SetIngestedEventsBytes(v int64) {
o.IngestedEventsBytes = &v
}

// GetIngestedSpansBillableBytes returns the IngestedSpansBillableBytes field value if set, zero value otherwise.
func (o *UsageIngestedSpansHour) GetIngestedSpansBillableBytes() int64 {
if o == nil || o.IngestedSpansBillableBytes == nil {
var ret int64
return ret
}
return *o.IngestedSpansBillableBytes
}

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

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

return false
}

// SetIngestedSpansBillableBytes gets a reference to the given int64 and assigns it to the IngestedSpansBillableBytes field.
func (o *UsageIngestedSpansHour) SetIngestedSpansBillableBytes(v int64) {
o.IngestedSpansBillableBytes = &v
}

// GetOrgName returns the OrgName field value if set, zero value otherwise.
func (o *UsageIngestedSpansHour) GetOrgName() string {
if o == nil || o.OrgName == nil {
Expand Down Expand Up @@ -220,9 +182,6 @@ func (o UsageIngestedSpansHour) MarshalJSON() ([]byte, error) {
if o.IngestedEventsBytes != nil {
toSerialize["ingested_events_bytes"] = o.IngestedEventsBytes
}
if o.IngestedSpansBillableBytes != nil {
toSerialize["ingested_spans_billable_bytes"] = o.IngestedSpansBillableBytes
}
if o.OrgName != nil {
toSerialize["org_name"] = o.OrgName
}
Expand All @@ -239,11 +198,10 @@ func (o UsageIngestedSpansHour) MarshalJSON() ([]byte, error) {
func (o *UsageIngestedSpansHour) UnmarshalJSON(bytes []byte) (err error) {
raw := map[string]interface{}{}
all := struct {
Hour *time.Time `json:"hour,omitempty"`
IngestedEventsBytes *int64 `json:"ingested_events_bytes,omitempty"`
IngestedSpansBillableBytes *int64 `json:"ingested_spans_billable_bytes,omitempty"`
OrgName *string `json:"org_name,omitempty"`
PublicId *string `json:"public_id,omitempty"`
Hour *time.Time `json:"hour,omitempty"`
IngestedEventsBytes *int64 `json:"ingested_events_bytes,omitempty"`
OrgName *string `json:"org_name,omitempty"`
PublicId *string `json:"public_id,omitempty"`
}{}
err = json.Unmarshal(bytes, &all)
if err != nil {
Expand All @@ -256,7 +214,6 @@ func (o *UsageIngestedSpansHour) UnmarshalJSON(bytes []byte) (err error) {
}
o.Hour = all.Hour
o.IngestedEventsBytes = all.IngestedEventsBytes
o.IngestedSpansBillableBytes = all.IngestedSpansBillableBytes
o.OrgName = all.OrgName
o.PublicId = all.PublicId
return nil
Expand Down
41 changes: 1 addition & 40 deletions api/v1/datadog/model_usage_summary_date.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ type UsageSummaryDate struct {
ApmAzureAppServiceHostTop99p *int64 `json:"apm_azure_app_service_host_top99p,omitempty"`
// Shows the 99th percentile of all distinct APM hosts over all hours in the current date for all organizations.
ApmHostTop99p *int64 `json:"apm_host_top99p,omitempty"`
// Shows the sum of all ingested APM span bytes over all hours in the current date for all organizations.
ApmIngestedSpansBillableBytesSum *int64 `json:"apm_ingested_spans_billable_bytes_sum,omitempty"`
// Shows the sum of audit logs lines indexed over all hours in the current date for all organizations.
AuditLogsLinesIndexedSum *int64 `json:"audit_logs_lines_indexed_sum,omitempty"`
// The average profiled task count for Fargate Profiling.
Expand Down Expand Up @@ -135,7 +133,7 @@ type UsageSummaryDate struct {
SyntheticsCheckCallsCountSum *int64 `json:"synthetics_check_calls_count_sum,omitempty"`
// Shows the sum of all Indexed Spans indexed over all hours in the current date for all organizations.
TraceSearchIndexedEventsCountSum *int64 `json:"trace_search_indexed_events_count_sum,omitempty"`
// Shows the sum of all tracing without limits bytes ingested over all hours in the current date for all organizations.
// Shows the sum of all ingested APM span bytes over all hours in the current date for all organizations.
TwolIngestedEventsBytesSum *int64 `json:"twol_ingested_events_bytes_sum,omitempty"`
// Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations.
VsphereHostTop99p *int64 `json:"vsphere_host_top99p,omitempty"`
Expand Down Expand Up @@ -257,38 +255,6 @@ func (o *UsageSummaryDate) SetApmHostTop99p(v int64) {
o.ApmHostTop99p = &v
}

// GetApmIngestedSpansBillableBytesSum returns the ApmIngestedSpansBillableBytesSum field value if set, zero value otherwise.
func (o *UsageSummaryDate) GetApmIngestedSpansBillableBytesSum() int64 {
if o == nil || o.ApmIngestedSpansBillableBytesSum == nil {
var ret int64
return ret
}
return *o.ApmIngestedSpansBillableBytesSum
}

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

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

return false
}

// SetApmIngestedSpansBillableBytesSum gets a reference to the given int64 and assigns it to the ApmIngestedSpansBillableBytesSum field.
func (o *UsageSummaryDate) SetApmIngestedSpansBillableBytesSum(v int64) {
o.ApmIngestedSpansBillableBytesSum = &v
}

// GetAuditLogsLinesIndexedSum returns the AuditLogsLinesIndexedSum field value if set, zero value otherwise.
func (o *UsageSummaryDate) GetAuditLogsLinesIndexedSum() int64 {
if o == nil || o.AuditLogsLinesIndexedSum == nil {
Expand Down Expand Up @@ -2191,9 +2157,6 @@ func (o UsageSummaryDate) MarshalJSON() ([]byte, error) {
if o.ApmHostTop99p != nil {
toSerialize["apm_host_top99p"] = o.ApmHostTop99p
}
if o.ApmIngestedSpansBillableBytesSum != nil {
toSerialize["apm_ingested_spans_billable_bytes_sum"] = o.ApmIngestedSpansBillableBytesSum
}
if o.AuditLogsLinesIndexedSum != nil {
toSerialize["audit_logs_lines_indexed_sum"] = o.AuditLogsLinesIndexedSum
}
Expand Down Expand Up @@ -2384,7 +2347,6 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
AgentHostTop99p *int64 `json:"agent_host_top99p,omitempty"`
ApmAzureAppServiceHostTop99p *int64 `json:"apm_azure_app_service_host_top99p,omitempty"`
ApmHostTop99p *int64 `json:"apm_host_top99p,omitempty"`
ApmIngestedSpansBillableBytesSum *int64 `json:"apm_ingested_spans_billable_bytes_sum,omitempty"`
AuditLogsLinesIndexedSum *int64 `json:"audit_logs_lines_indexed_sum,omitempty"`
AvgProfiledFargateTasks *int64 `json:"avg_profiled_fargate_tasks,omitempty"`
AwsHostTop99p *int64 `json:"aws_host_top99p,omitempty"`
Expand Down Expand Up @@ -2457,7 +2419,6 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
o.AgentHostTop99p = all.AgentHostTop99p
o.ApmAzureAppServiceHostTop99p = all.ApmAzureAppServiceHostTop99p
o.ApmHostTop99p = all.ApmHostTop99p
o.ApmIngestedSpansBillableBytesSum = all.ApmIngestedSpansBillableBytesSum
o.AuditLogsLinesIndexedSum = all.AuditLogsLinesIndexedSum
o.AvgProfiledFargateTasks = all.AvgProfiledFargateTasks
o.AwsHostTop99p = all.AwsHostTop99p
Expand Down
41 changes: 1 addition & 40 deletions api/v1/datadog/model_usage_summary_date_org.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ type UsageSummaryDateOrg struct {
ApmAzureAppServiceHostTop99p *int64 `json:"apm_azure_app_service_host_top99p,omitempty"`
// Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org.
ApmHostTop99p *int64 `json:"apm_host_top99p,omitempty"`
// Shows the sum of all ingested APM span bytes over all hours in the current date for the given org.
ApmIngestedSpansBillableBytesSum *int64 `json:"apm_ingested_spans_billable_bytes_sum,omitempty"`
// Shows the sum of all audit logs lines indexed over all hours in the current date for the given org.
AuditLogsLinesIndexedSum *int64 `json:"audit_logs_lines_indexed_sum,omitempty"`
// The average profiled task count for Fargate Profiling.
Expand Down Expand Up @@ -136,7 +134,7 @@ type UsageSummaryDateOrg struct {
SyntheticsCheckCallsCountSum *int64 `json:"synthetics_check_calls_count_sum,omitempty"`
// Shows the sum of all Indexed Spans indexed over all hours in the current date for the given org.
TraceSearchIndexedEventsCountSum *int64 `json:"trace_search_indexed_events_count_sum,omitempty"`
// Shows the sum of all tracing without limits bytes ingested over all hours in the current date for the given org.
// Shows the sum of all ingested APM span bytes over all hours in the current date for the given org.
TwolIngestedEventsBytesSum *int64 `json:"twol_ingested_events_bytes_sum,omitempty"`
// Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org.
VsphereHostTop99p *int64 `json:"vsphere_host_top99p,omitempty"`
Expand Down Expand Up @@ -258,38 +256,6 @@ func (o *UsageSummaryDateOrg) SetApmHostTop99p(v int64) {
o.ApmHostTop99p = &v
}

// GetApmIngestedSpansBillableBytesSum returns the ApmIngestedSpansBillableBytesSum field value if set, zero value otherwise.
func (o *UsageSummaryDateOrg) GetApmIngestedSpansBillableBytesSum() int64 {
if o == nil || o.ApmIngestedSpansBillableBytesSum == nil {
var ret int64
return ret
}
return *o.ApmIngestedSpansBillableBytesSum
}

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

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

return false
}

// SetApmIngestedSpansBillableBytesSum gets a reference to the given int64 and assigns it to the ApmIngestedSpansBillableBytesSum field.
func (o *UsageSummaryDateOrg) SetApmIngestedSpansBillableBytesSum(v int64) {
o.ApmIngestedSpansBillableBytesSum = &v
}

// GetAuditLogsLinesIndexedSum returns the AuditLogsLinesIndexedSum field value if set, zero value otherwise.
func (o *UsageSummaryDateOrg) GetAuditLogsLinesIndexedSum() int64 {
if o == nil || o.AuditLogsLinesIndexedSum == nil {
Expand Down Expand Up @@ -2224,9 +2190,6 @@ func (o UsageSummaryDateOrg) MarshalJSON() ([]byte, error) {
if o.ApmHostTop99p != nil {
toSerialize["apm_host_top99p"] = o.ApmHostTop99p
}
if o.ApmIngestedSpansBillableBytesSum != nil {
toSerialize["apm_ingested_spans_billable_bytes_sum"] = o.ApmIngestedSpansBillableBytesSum
}
if o.AuditLogsLinesIndexedSum != nil {
toSerialize["audit_logs_lines_indexed_sum"] = o.AuditLogsLinesIndexedSum
}
Expand Down Expand Up @@ -2420,7 +2383,6 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) {
AgentHostTop99p *int64 `json:"agent_host_top99p,omitempty"`
ApmAzureAppServiceHostTop99p *int64 `json:"apm_azure_app_service_host_top99p,omitempty"`
ApmHostTop99p *int64 `json:"apm_host_top99p,omitempty"`
ApmIngestedSpansBillableBytesSum *int64 `json:"apm_ingested_spans_billable_bytes_sum,omitempty"`
AuditLogsLinesIndexedSum *int64 `json:"audit_logs_lines_indexed_sum,omitempty"`
AvgProfiledFargateTasks *int64 `json:"avg_profiled_fargate_tasks,omitempty"`
AwsHostTop99p *int64 `json:"aws_host_top99p,omitempty"`
Expand Down Expand Up @@ -2494,7 +2456,6 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) {
o.AgentHostTop99p = all.AgentHostTop99p
o.ApmAzureAppServiceHostTop99p = all.ApmAzureAppServiceHostTop99p
o.ApmHostTop99p = all.ApmHostTop99p
o.ApmIngestedSpansBillableBytesSum = all.ApmIngestedSpansBillableBytesSum
o.AuditLogsLinesIndexedSum = all.AuditLogsLinesIndexedSum
o.AvgProfiledFargateTasks = all.AvgProfiledFargateTasks
o.AwsHostTop99p = all.AwsHostTop99p
Expand Down
Loading

0 comments on commit 83a4492

Please sign in to comment.