Skip to content
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.6",
"regenerated": "2025-06-25 11:39:38.764041",
"spec_repo_commit": "5d86661b"
"regenerated": "2025-06-25 15:29:09.182477",
"spec_repo_commit": "949f90e2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-25 11:39:38.780354",
"spec_repo_commit": "5d86661b"
"regenerated": "2025-06-25 15:29:09.200784",
"spec_repo_commit": "949f90e2"
}
}
}
5 changes: 5 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10965,19 +10965,24 @@ components:
example: {}
properties:
aggr:
deprecated: true
description: Query aggregator function.
type: string
expression:
deprecated: true
description: Query expression.
type: string
metric:
deprecated: true
description: Query metric used.
type: string
query_index:
deprecated: true
description: Query index from original combined query.
format: int64
type: integer
scope:
deprecated: true
description: Query scope.
type: string
unit:
Expand Down
20 changes: 20 additions & 0 deletions api/datadogV1/model_slo_history_metrics_series_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ import (
// SLOHistoryMetricsSeriesMetadata Query metadata.
type SLOHistoryMetricsSeriesMetadata struct {
// Query aggregator function.
// Deprecated
Aggr *string `json:"aggr,omitempty"`
// Query expression.
// Deprecated
Expression *string `json:"expression,omitempty"`
// Query metric used.
// Deprecated
Metric *string `json:"metric,omitempty"`
// Query index from original combined query.
// Deprecated
QueryIndex *int64 `json:"query_index,omitempty"`
// Query scope.
// Deprecated
Scope *string `json:"scope,omitempty"`
// An array of metric units that contains up to two unit objects.
// For example, bytes represents one unit object and bytes per second represents two unit objects.
Expand Down Expand Up @@ -47,6 +52,7 @@ func NewSLOHistoryMetricsSeriesMetadataWithDefaults() *SLOHistoryMetricsSeriesMe
}

// GetAggr returns the Aggr field value if set, zero value otherwise.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetAggr() string {
if o == nil || o.Aggr == nil {
var ret string
Expand All @@ -57,6 +63,7 @@ func (o *SLOHistoryMetricsSeriesMetadata) GetAggr() string {

// GetAggrOk returns a tuple with the Aggr field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetAggrOk() (*string, bool) {
if o == nil || o.Aggr == nil {
return nil, false
Expand All @@ -70,11 +77,13 @@ func (o *SLOHistoryMetricsSeriesMetadata) HasAggr() bool {
}

// SetAggr gets a reference to the given string and assigns it to the Aggr field.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) SetAggr(v string) {
o.Aggr = &v
}

// GetExpression returns the Expression field value if set, zero value otherwise.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetExpression() string {
if o == nil || o.Expression == nil {
var ret string
Expand All @@ -85,6 +94,7 @@ func (o *SLOHistoryMetricsSeriesMetadata) GetExpression() string {

// GetExpressionOk returns a tuple with the Expression field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetExpressionOk() (*string, bool) {
if o == nil || o.Expression == nil {
return nil, false
Expand All @@ -98,11 +108,13 @@ func (o *SLOHistoryMetricsSeriesMetadata) HasExpression() bool {
}

// SetExpression gets a reference to the given string and assigns it to the Expression field.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) SetExpression(v string) {
o.Expression = &v
}

// GetMetric returns the Metric field value if set, zero value otherwise.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetMetric() string {
if o == nil || o.Metric == nil {
var ret string
Expand All @@ -113,6 +125,7 @@ func (o *SLOHistoryMetricsSeriesMetadata) GetMetric() string {

// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetMetricOk() (*string, bool) {
if o == nil || o.Metric == nil {
return nil, false
Expand All @@ -126,11 +139,13 @@ func (o *SLOHistoryMetricsSeriesMetadata) HasMetric() bool {
}

// SetMetric gets a reference to the given string and assigns it to the Metric field.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) SetMetric(v string) {
o.Metric = &v
}

// GetQueryIndex returns the QueryIndex field value if set, zero value otherwise.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetQueryIndex() int64 {
if o == nil || o.QueryIndex == nil {
var ret int64
Expand All @@ -141,6 +156,7 @@ func (o *SLOHistoryMetricsSeriesMetadata) GetQueryIndex() int64 {

// GetQueryIndexOk returns a tuple with the QueryIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetQueryIndexOk() (*int64, bool) {
if o == nil || o.QueryIndex == nil {
return nil, false
Expand All @@ -154,11 +170,13 @@ func (o *SLOHistoryMetricsSeriesMetadata) HasQueryIndex() bool {
}

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

// GetScope returns the Scope field value if set, zero value otherwise.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetScope() string {
if o == nil || o.Scope == nil {
var ret string
Expand All @@ -169,6 +187,7 @@ func (o *SLOHistoryMetricsSeriesMetadata) GetScope() string {

// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) GetScopeOk() (*string, bool) {
if o == nil || o.Scope == nil {
return nil, false
Expand All @@ -182,6 +201,7 @@ func (o *SLOHistoryMetricsSeriesMetadata) HasScope() bool {
}

// SetScope gets a reference to the given string and assigns it to the Scope field.
// Deprecated
func (o *SLOHistoryMetricsSeriesMetadata) SetScope(v string) {
o.Scope = &v
}
Expand Down