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.4.1.dev2",
"regenerated": "2021-02-23 19:10:45.630708",
"spec_repo_commit": "0e18234"
"regenerated": "2021-02-24 15:04:08.292814",
"spec_repo_commit": "960dc55"
},
"v2": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-02-23 19:10:58.372783",
"spec_repo_commit": "0e18234"
"regenerated": "2021-02-24 15:04:21.617362",
"spec_repo_commit": "960dc55"
}
}
}
292 changes: 146 additions & 146 deletions data/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,91 @@ components:
- MIN
- MAX
- AVG
FormulaAndFunctionEventQueryDefinition:
description: A formula and functions events query.
properties:
compute:
description: Compute options.
properties:
aggregation:
$ref: '#/components/schemas/FormulaAndFunctionEventAggregation'
interval:
description: A time interval in milliseconds.
example: 60000
format: int64
type: integer
metric:
description: Measurable attribute to compute.
example: '@duration'
type: string
required:
- aggregation
type: object
data_source:
$ref: '#/components/schemas/FormulaAndFunctionEventsDataSource'
group_by:
description: Group by options.
items:
$ref: '#/components/schemas/FormulaAndFunctionEventQueryGroupBy'
type: array
indexes:
description: An array of index names to query in the stream. Omit or use
`[]` to query all indexes at once.
example:
- days-3
- days-7
items:
description: A log index set up for your organization. For additional
indexes, see the [multiple indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes)
documentation.
type: string
type: array
name:
description: Name of the query for use in formulas.
example: query_errors
type: string
search:
description: Search options.
properties:
query:
description: Events search string.
example: service:query
type: string
required:
- query
type: object
required:
- data_source
- compute
type: object
FormulaAndFunctionEventQueryGroupBy:
description: List of objects used to group by.
properties:
facet:
description: Event facet.
example: status.
type: string
limit:
description: Number of groups to return.
example: 10
format: int64
type: integer
sort:
description: Options for sorting group by results.
properties:
aggregation:
$ref: '#/components/schemas/FormulaAndFunctionEventAggregation'
metric:
description: Metric used for sorting group by results.
type: string
order:
$ref: '#/components/schemas/QuerySortOrder'
required:
- aggregation
type: object
required:
- facet
type: object
FormulaAndFunctionEventsDataSource:
description: Data source for event platform-based queries.
enum:
Expand Down Expand Up @@ -1644,6 +1729,28 @@ components:
type: string
x-enum-varnames:
- METRICS
FormulaAndFunctionMetricQueryDefinition:
description: A formula and functions metrics query.
example:
data_source: metrics
query: avg:system.cpu.user{*}
properties:
aggregator:
$ref: '#/components/schemas/FormulaAndFunctionMetricAggregation'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionMetricDataSource'
name:
description: Name of the query for use in formulas.
example: my_query
type: string
query:
description: Metrics query definition.
example: avg:system.cpu.user{*}
type: string
required:
- data_source
- query
type: object
FormulaAndFunctionProcessQueryDataSource:
description: Data sources that rely on the process backend.
enum:
Expand All @@ -1653,12 +1760,48 @@ components:
x-enum-varnames:
- PROCESS
- CONTAINER
FormulaAndFunctionProcessQueryDefinition:
description: Process query using formulas and functions.
properties:
aggregator:
$ref: '#/components/schemas/FormulaAndFunctionMetricAggregation'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionProcessQueryDataSource'
is_normalized_cpu:
description: Whether to normalize the CPU percentages.
type: boolean
limit:
description: Number of hits to return.
format: int64
type: integer
metric:
description: Process metric name.
example: avg:system.cpu.user{*}
type: string
name:
description: Name of query for use in formulas.
type: string
sort:
$ref: '#/components/schemas/QuerySortOrder'
tag_filters:
description: An array of tags to filter by.
items:
description: One of the tags to filter by.
type: string
type: array
text_filter:
description: Text to use as filter.
type: string
required:
- data_source
- metric
type: object
FormulaAndFunctionQueryDefinition:
description: A formula and function query.
oneOf:
- $ref: '#/components/schemas/TimeSeriesFormulaAndFunctionMetricQueryDefinition'
- $ref: '#/components/schemas/TimeSeriesFormulaAndFunctionEventQueryDefinition'
- $ref: '#/components/schemas/TimeSeriesFormulaAndFunctionProcessQueryDefinition'
- $ref: '#/components/schemas/FormulaAndFunctionMetricQueryDefinition'
- $ref: '#/components/schemas/FormulaAndFunctionEventQueryDefinition'
- $ref: '#/components/schemas/FormulaAndFunctionProcessQueryDefinition'
type: object
FormulaAndFunctionResponseFormat:
description: Timeseries or Scalar response. This feature is currently in beta.
Expand Down Expand Up @@ -7808,149 +7951,6 @@ components:
- STRING
- INTEGER
- DOUBLE
TimeSeriesFormulaAndFunctionEventQueryDefinition:
description: A timeseries formula and functions events query.
properties:
compute:
description: Compute options.
properties:
aggregation:
$ref: '#/components/schemas/FormulaAndFunctionEventAggregation'
interval:
description: A time interval in milliseconds.
example: 60000
format: int64
type: integer
metric:
description: Measurable attribute to compute.
example: '@duration'
type: string
required:
- aggregation
type: object
data_source:
$ref: '#/components/schemas/FormulaAndFunctionEventsDataSource'
group_by:
description: Group by options.
items:
$ref: '#/components/schemas/TimeSeriesFormulaAndFunctionEventQueryGroupBy'
type: array
indexes:
description: An array of index names to query in the stream. Omit or use
`[]` to query all indexes at once.
example:
- days-3
- days-7
items:
description: A log index set up for your organization. For additional
indexes, see the [multiple indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes)
documentation.
type: string
type: array
name:
description: Name of the query for use in formulas.
example: query_errors
type: string
search:
description: Search options.
properties:
query:
description: Events search string.
example: service:query
type: string
required:
- query
type: object
required:
- data_source
- compute
type: object
TimeSeriesFormulaAndFunctionEventQueryGroupBy:
description: List of objects used to group by.
properties:
facet:
description: Event facet.
example: status.
type: string
limit:
description: Number of groups to return.
example: 10
format: int64
type: integer
sort:
description: Options for sorting group by results.
properties:
aggregation:
$ref: '#/components/schemas/FormulaAndFunctionEventAggregation'
metric:
description: Metric used for sorting group by results.
type: string
order:
$ref: '#/components/schemas/QuerySortOrder'
required:
- aggregation
type: object
required:
- facet
type: object
TimeSeriesFormulaAndFunctionMetricQueryDefinition:
description: A timeseries formula and functions metrics query.
example:
data_source: metrics
query: avg:system.cpu.user{*}
properties:
aggregator:
$ref: '#/components/schemas/FormulaAndFunctionMetricAggregation'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionMetricDataSource'
name:
description: Name of the query for use in formulas.
example: my_query
type: string
query:
description: Metrics query definition.
example: avg:system.cpu.user{*}
type: string
required:
- data_source
- query
type: object
TimeSeriesFormulaAndFunctionProcessQueryDefinition:
description: Process query using formulas and functions.
properties:
aggregator:
$ref: '#/components/schemas/FormulaAndFunctionMetricAggregation'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionProcessQueryDataSource'
is_normalized_cpu:
description: Whether to normalize the CPU percentages.
type: boolean
limit:
description: Number of hits to return.
format: int64
type: integer
metric:
description: Process metric name.
example: avg:system.cpu.user{*}
type: string
name:
description: Name of query for use in formulas.
type: string
sort:
$ref: '#/components/schemas/QuerySortOrder'
tag_filters:
description: An array of tags to filter by.
items:
description: One of the tags to filter by.
type: string
type: array
text_filter:
description: Text to use as filter.
type: string
required:
- data_source
- metric
type: object
TimeseriesWidgetDefinition:
description: The timeseries visualization allows you to display the evolution
of one or more metrics, log events, or Indexed Spans over time.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# DatadogAPIClient::V1::TimeSeriesFormulaAndFunctionEventQueryDefinition
# DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinition

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **compute** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute**](TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md) | | |
| **compute** | [**FormulaAndFunctionEventQueryDefinitionCompute**](FormulaAndFunctionEventQueryDefinitionCompute.md) | | |
| **data_source** | [**FormulaAndFunctionEventsDataSource**](FormulaAndFunctionEventsDataSource.md) | | |
| **group_by** | [**Array<TimeSeriesFormulaAndFunctionEventQueryGroupBy>**](TimeSeriesFormulaAndFunctionEventQueryGroupBy.md) | Group by options. | [optional] |
| **group_by** | [**Array<FormulaAndFunctionEventQueryGroupBy>**](FormulaAndFunctionEventQueryGroupBy.md) | Group by options. | [optional] |
| **indexes** | **Array<String>** | An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. | [optional] |
| **name** | **String** | Name of the query for use in formulas. | [optional] |
| **search** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch**](TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md) | | [optional] |
| **search** | [**FormulaAndFunctionEventQueryDefinitionSearch**](FormulaAndFunctionEventQueryDefinitionSearch.md) | | [optional] |

## Example

```ruby
require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::TimeSeriesFormulaAndFunctionEventQueryDefinition.new(
instance = DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinition.new(
compute: null,
data_source: null,
group_by: null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DatadogAPIClient::V1::TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute
# DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionCompute

## Properties

Expand All @@ -13,7 +13,7 @@
```ruby
require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.new(
instance = DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionCompute.new(
aggregation: null,
interval: 60000,
metric: @duration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DatadogAPIClient::V1::TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch
# DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionSearch

## Properties

Expand All @@ -11,7 +11,7 @@
```ruby
require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.new(
instance = DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionSearch.new(
query: service:query
)
```
Expand Down
Loading