WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
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
87 changes: 84 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,9 @@ components:
type: string
markers:
description: List of markers.
example:
- display_type: percentile
value: '90'
items:
$ref: '#/components/schemas/WidgetMarker'
type: array
Expand Down Expand Up @@ -1816,6 +1819,11 @@ components:
$ref: '#/components/schemas/ApmStatsQueryDefinition'
event_query:
$ref: '#/components/schemas/LogQueryDefinition'
formulas:
description: List of formulas that operate on queries.
items:
$ref: '#/components/schemas/WidgetFormula'
type: array
log_query:
$ref: '#/components/schemas/LogQueryDefinition'
network_query:
Expand All @@ -1827,10 +1835,17 @@ components:
q:
description: Widget query.
type: string
queries:
description: List of queries that can be returned directly or used in formulas.
items:
$ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
type: array
query:
$ref: '#/components/schemas/DistributionWidgetHistogramRequestQuery'
request_type:
$ref: '#/components/schemas/DistributionWidgetHistogramRequestType'
response_format:
$ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
rum_query:
$ref: '#/components/schemas/LogQueryDefinition'
security_query:
Expand All @@ -1854,6 +1869,12 @@ components:
description: Specifies minimum value to show on the x-axis. It takes a number,
percentile (p90 === 90th percentile), or auto for default behavior.
type: string
num_buckets:
description: Number of value buckets to target, aka the resolution of the
value bins.
example: 100
format: int64
type: integer
scale:
default: linear
description: Specifies the scale type. Possible values are `linear`.
Expand Down Expand Up @@ -3714,6 +3735,14 @@ components:
type: array
legend_size:
$ref: '#/components/schemas/WidgetLegendSize'
markers:
description: List of markers.
example:
- display_type: percentile
value: '90'
items:
$ref: '#/components/schemas/WidgetMarker'
type: array
requests:
description: List of widget types.
example:
Expand All @@ -3738,8 +3767,10 @@ components:
type: string
type:
$ref: '#/components/schemas/HeatMapWidgetDefinitionType'
xaxis:
$ref: '#/components/schemas/HeatMapWidgetXAxis'
yaxis:
$ref: '#/components/schemas/WidgetAxis'
$ref: '#/components/schemas/HeatMapWidgetYAxis'
required:
- type
- requests
Expand Down Expand Up @@ -3781,6 +3812,10 @@ components:
items:
$ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
type: array
query:
$ref: '#/components/schemas/DistributionWidgetHistogramRequestQuery'
request_type:
$ref: '#/components/schemas/DistributionWidgetHistogramRequestType'
response_format:
$ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
rum_query:
Expand All @@ -3790,6 +3825,49 @@ components:
style:
$ref: '#/components/schemas/WidgetStyle'
type: object
HeatMapWidgetXAxis:
description: X Axis controls for the heat map widget.
properties:
num_buckets:
description: Number of time buckets to target, aka the resolution of the
time bins. This is only applicable for distribution of points (group distributions
use the roll-up modifier).
example: 50
format: int64
type: integer
type: object
HeatMapWidgetYAxis:
description: Y Axis controls for the heat map widget.
properties:
include_zero:
description: Set to `true` to include zero.
type: boolean
label:
description: The label of the axis to display on the graph. Only usable
on Scatterplot Widgets.
type: string
max:
default: auto
description: Specifies maximum numeric value to show on the axis. Defaults
to `auto`.
type: string
min:
default: auto
description: Specifies minimum numeric value to show on the axis. Defaults
to `auto`.
type: string
num_buckets:
description: Number of value buckets to target, aka the resolution of the
value bins.
example: 50
format: int64
type: integer
scale:
default: linear
description: Specifies the scale type. Possible values are `linear`, `log`,
`sqrt`, and `pow##` (for example `pow2` or `pow0.5`).
type: string
type: object
Host:
description: Object representing a host.
properties:
Expand Down Expand Up @@ -25147,7 +25225,7 @@ components:
display_type:
description: "Combination of:\n - A severity error, warning, ok, or info\n
\ - A line type: dashed, solid, or bold\nIn this case of a Distribution
widget, this can be set to be `x_axis_percentile`."
widget, this can be set to be `percentile`."
example: error dashed
type: string
label:
Expand All @@ -25158,8 +25236,11 @@ components:
description: Timestamp for the widget.
type: string
value:
description: Value to apply. Can be a single value y = 15 or a range of
description: 'Value to apply. Can be a single value y = 15 or a range of
values 0 < y < 10.

For Distribution widgets with `display_type` set to `percentile`, this
should be a numeric percentile value (e.g., "90" for P90).'
example: y = 15
type: string
required:
Expand Down
111 changes: 110 additions & 1 deletion api/datadogV1/model_distribution_widget_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ type DistributionWidgetRequest struct {
ApmStatsQuery *ApmStatsQueryDefinition `json:"apm_stats_query,omitempty"`
// The log query.
EventQuery *LogQueryDefinition `json:"event_query,omitempty"`
// List of formulas that operate on queries.
Formulas []WidgetFormula `json:"formulas,omitempty"`
// The log query.
LogQuery *LogQueryDefinition `json:"log_query,omitempty"`
// The log query.
Expand All @@ -26,10 +28,14 @@ type DistributionWidgetRequest struct {
ProfileMetricsQuery *LogQueryDefinition `json:"profile_metrics_query,omitempty"`
// Widget query.
Q *string `json:"q,omitempty"`
// List of queries that can be returned directly or used in formulas.
Queries []FormulaAndFunctionQueryDefinition `json:"queries,omitempty"`
// Query definition for Distribution Widget Histogram Request
Query *DistributionWidgetHistogramRequestQuery `json:"query,omitempty"`
// Request type for the histogram request.
RequestType *DistributionWidgetHistogramRequestType `json:"request_type,omitempty"`
// Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
ResponseFormat *FormulaAndFunctionResponseFormat `json:"response_format,omitempty"`
// The log query.
RumQuery *LogQueryDefinition `json:"rum_query,omitempty"`
// The log query.
Expand Down Expand Up @@ -142,6 +148,34 @@ func (o *DistributionWidgetRequest) SetEventQuery(v LogQueryDefinition) {
o.EventQuery = &v
}

// GetFormulas returns the Formulas field value if set, zero value otherwise.
func (o *DistributionWidgetRequest) GetFormulas() []WidgetFormula {
if o == nil || o.Formulas == nil {
var ret []WidgetFormula
return ret
}
return o.Formulas
}

// GetFormulasOk returns a tuple with the Formulas field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionWidgetRequest) GetFormulasOk() (*[]WidgetFormula, bool) {
if o == nil || o.Formulas == nil {
return nil, false
}
return &o.Formulas, true
}

// HasFormulas returns a boolean if a field has been set.
func (o *DistributionWidgetRequest) HasFormulas() bool {
return o != nil && o.Formulas != nil
}

// SetFormulas gets a reference to the given []WidgetFormula and assigns it to the Formulas field.
func (o *DistributionWidgetRequest) SetFormulas(v []WidgetFormula) {
o.Formulas = v
}

// GetLogQuery returns the LogQuery field value if set, zero value otherwise.
func (o *DistributionWidgetRequest) GetLogQuery() LogQueryDefinition {
if o == nil || o.LogQuery == nil {
Expand Down Expand Up @@ -282,6 +316,34 @@ func (o *DistributionWidgetRequest) SetQ(v string) {
o.Q = &v
}

// GetQueries returns the Queries field value if set, zero value otherwise.
func (o *DistributionWidgetRequest) GetQueries() []FormulaAndFunctionQueryDefinition {
if o == nil || o.Queries == nil {
var ret []FormulaAndFunctionQueryDefinition
return ret
}
return o.Queries
}

// GetQueriesOk returns a tuple with the Queries field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionWidgetRequest) GetQueriesOk() (*[]FormulaAndFunctionQueryDefinition, bool) {
if o == nil || o.Queries == nil {
return nil, false
}
return &o.Queries, true
}

// HasQueries returns a boolean if a field has been set.
func (o *DistributionWidgetRequest) HasQueries() bool {
return o != nil && o.Queries != nil
}

// SetQueries gets a reference to the given []FormulaAndFunctionQueryDefinition and assigns it to the Queries field.
func (o *DistributionWidgetRequest) SetQueries(v []FormulaAndFunctionQueryDefinition) {
o.Queries = v
}

// GetQuery returns the Query field value if set, zero value otherwise.
func (o *DistributionWidgetRequest) GetQuery() DistributionWidgetHistogramRequestQuery {
if o == nil || o.Query == nil {
Expand Down Expand Up @@ -338,6 +400,34 @@ func (o *DistributionWidgetRequest) SetRequestType(v DistributionWidgetHistogram
o.RequestType = &v
}

// GetResponseFormat returns the ResponseFormat field value if set, zero value otherwise.
func (o *DistributionWidgetRequest) GetResponseFormat() FormulaAndFunctionResponseFormat {
if o == nil || o.ResponseFormat == nil {
var ret FormulaAndFunctionResponseFormat
return ret
}
return *o.ResponseFormat
}

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

// HasResponseFormat returns a boolean if a field has been set.
func (o *DistributionWidgetRequest) HasResponseFormat() bool {
return o != nil && o.ResponseFormat != nil
}

// SetResponseFormat gets a reference to the given FormulaAndFunctionResponseFormat and assigns it to the ResponseFormat field.
func (o *DistributionWidgetRequest) SetResponseFormat(v FormulaAndFunctionResponseFormat) {
o.ResponseFormat = &v
}

// GetRumQuery returns the RumQuery field value if set, zero value otherwise.
func (o *DistributionWidgetRequest) GetRumQuery() LogQueryDefinition {
if o == nil || o.RumQuery == nil {
Expand Down Expand Up @@ -437,6 +527,9 @@ func (o DistributionWidgetRequest) MarshalJSON() ([]byte, error) {
if o.EventQuery != nil {
toSerialize["event_query"] = o.EventQuery
}
if o.Formulas != nil {
toSerialize["formulas"] = o.Formulas
}
if o.LogQuery != nil {
toSerialize["log_query"] = o.LogQuery
}
Expand All @@ -452,12 +545,18 @@ func (o DistributionWidgetRequest) MarshalJSON() ([]byte, error) {
if o.Q != nil {
toSerialize["q"] = o.Q
}
if o.Queries != nil {
toSerialize["queries"] = o.Queries
}
if o.Query != nil {
toSerialize["query"] = o.Query
}
if o.RequestType != nil {
toSerialize["request_type"] = o.RequestType
}
if o.ResponseFormat != nil {
toSerialize["response_format"] = o.ResponseFormat
}
if o.RumQuery != nil {
toSerialize["rum_query"] = o.RumQuery
}
Expand All @@ -480,13 +579,16 @@ func (o *DistributionWidgetRequest) UnmarshalJSON(bytes []byte) (err error) {
ApmQuery *LogQueryDefinition `json:"apm_query,omitempty"`
ApmStatsQuery *ApmStatsQueryDefinition `json:"apm_stats_query,omitempty"`
EventQuery *LogQueryDefinition `json:"event_query,omitempty"`
Formulas []WidgetFormula `json:"formulas,omitempty"`
LogQuery *LogQueryDefinition `json:"log_query,omitempty"`
NetworkQuery *LogQueryDefinition `json:"network_query,omitempty"`
ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"`
ProfileMetricsQuery *LogQueryDefinition `json:"profile_metrics_query,omitempty"`
Q *string `json:"q,omitempty"`
Queries []FormulaAndFunctionQueryDefinition `json:"queries,omitempty"`
Query *DistributionWidgetHistogramRequestQuery `json:"query,omitempty"`
RequestType *DistributionWidgetHistogramRequestType `json:"request_type,omitempty"`
ResponseFormat *FormulaAndFunctionResponseFormat `json:"response_format,omitempty"`
RumQuery *LogQueryDefinition `json:"rum_query,omitempty"`
SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"`
Style *WidgetStyle `json:"style,omitempty"`
Expand All @@ -496,7 +598,7 @@ func (o *DistributionWidgetRequest) UnmarshalJSON(bytes []byte) (err error) {
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
datadog.DeleteKeys(additionalProperties, &[]string{"apm_query", "apm_stats_query", "event_query", "log_query", "network_query", "process_query", "profile_metrics_query", "q", "query", "request_type", "rum_query", "security_query", "style"})
datadog.DeleteKeys(additionalProperties, &[]string{"apm_query", "apm_stats_query", "event_query", "formulas", "log_query", "network_query", "process_query", "profile_metrics_query", "q", "queries", "query", "request_type", "response_format", "rum_query", "security_query", "style"})
} else {
return err
}
Expand All @@ -514,6 +616,7 @@ func (o *DistributionWidgetRequest) UnmarshalJSON(bytes []byte) (err error) {
hasInvalidField = true
}
o.EventQuery = all.EventQuery
o.Formulas = all.Formulas
if all.LogQuery != nil && all.LogQuery.UnparsedObject != nil && o.UnparsedObject == nil {
hasInvalidField = true
}
Expand All @@ -531,12 +634,18 @@ func (o *DistributionWidgetRequest) UnmarshalJSON(bytes []byte) (err error) {
}
o.ProfileMetricsQuery = all.ProfileMetricsQuery
o.Q = all.Q
o.Queries = all.Queries
o.Query = all.Query
if all.RequestType != nil && !all.RequestType.IsValid() {
hasInvalidField = true
} else {
o.RequestType = all.RequestType
}
if all.ResponseFormat != nil && !all.ResponseFormat.IsValid() {
hasInvalidField = true
} else {
o.ResponseFormat = all.ResponseFormat
}
if all.RumQuery != nil && all.RumQuery.UnparsedObject != nil && o.UnparsedObject == nil {
hasInvalidField = true
}
Expand Down
Loading
Loading