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

[dashboards formula and functions] Rename objects for formula and functions to be more generic #670

Merged
merged 1 commit into from
Feb 24, 2021
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:40.127296",
"spec_repo_commit": "0e18234"
"regenerated": "2021-02-24 15:03:58.637397",
"spec_repo_commit": "960dc55"
},
"v2": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-02-23 19:10:50.913808",
"spec_repo_commit": "0e18234"
"regenerated": "2021-02-24 15:04:10.052298",
"spec_repo_commit": "960dc55"
}
}
}
18 changes: 18 additions & 0 deletions api_docs/v1/FormulaAndFunctionEventQueryDefinition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


# FormulaAndFunctionEventQueryDefinition

A formula and functions events query.
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**compute** | [**FormulaAndFunctionEventQueryDefinitionCompute**](FormulaAndFunctionEventQueryDefinitionCompute.md) | |
**dataSource** | **FormulaAndFunctionEventsDataSource** | |
**groupBy** | [**List<FormulaAndFunctionEventQueryGroupBy>**](FormulaAndFunctionEventQueryGroupBy.md) | Group by options. | [optional]
**indexes** | **List<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** | [**FormulaAndFunctionEventQueryDefinitionSearch**](FormulaAndFunctionEventQueryDefinitionSearch.md) | | [optional]



Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute
# FormulaAndFunctionEventQueryDefinitionCompute

Compute options.
## Properties
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch
# FormulaAndFunctionEventQueryDefinitionSearch

Search options.
## Properties
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# TimeSeriesFormulaAndFunctionEventQueryGroupBy
# FormulaAndFunctionEventQueryGroupBy

List of objects used to group by.
## Properties
Expand All @@ -9,7 +9,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**facet** | **String** | Event facet. |
**limit** | **Long** | Number of groups to return. | [optional]
**sort** | [**TimeSeriesFormulaAndFunctionEventQueryGroupBySort**](TimeSeriesFormulaAndFunctionEventQueryGroupBySort.md) | | [optional]
**sort** | [**FormulaAndFunctionEventQueryGroupBySort**](FormulaAndFunctionEventQueryGroupBySort.md) | | [optional]



Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# TimeSeriesFormulaAndFunctionEventQueryGroupBySort
# FormulaAndFunctionEventQueryGroupBySort

Options for sorting group by results.
## Properties
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


# TimeSeriesFormulaAndFunctionMetricQueryDefinition
# FormulaAndFunctionMetricQueryDefinition

A timeseries formula and functions metrics query.
A formula and functions metrics query.
## Properties

Name | Type | Description | Notes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# TimeSeriesFormulaAndFunctionProcessQueryDefinition
# FormulaAndFunctionProcessQueryDefinition

Process query using formulas and functions.
## Properties
Expand Down
52 changes: 26 additions & 26 deletions api_docs/v1/FormulaAndFunctionQueryDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,42 @@
A formula and function query.

## oneOf schemas
* [TimeSeriesFormulaAndFunctionEventQueryDefinition](TimeSeriesFormulaAndFunctionEventQueryDefinition.md)
* [TimeSeriesFormulaAndFunctionMetricQueryDefinition](TimeSeriesFormulaAndFunctionMetricQueryDefinition.md)
* [TimeSeriesFormulaAndFunctionProcessQueryDefinition](TimeSeriesFormulaAndFunctionProcessQueryDefinition.md)
* [FormulaAndFunctionEventQueryDefinition](FormulaAndFunctionEventQueryDefinition.md)
* [FormulaAndFunctionMetricQueryDefinition](FormulaAndFunctionMetricQueryDefinition.md)
* [FormulaAndFunctionProcessQueryDefinition](FormulaAndFunctionProcessQueryDefinition.md)

## Example
```java
// Import classes:
import com.datadog.api.v1.client.model.FormulaAndFunctionQueryDefinition;
import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinition;
import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionMetricQueryDefinition;
import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionProcessQueryDefinition;
import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryDefinition;
import com.datadog.api.v1.client.model.FormulaAndFunctionMetricQueryDefinition;
import com.datadog.api.v1.client.model.FormulaAndFunctionProcessQueryDefinition;

public class Example {
public static void main(String[] args) {
FormulaAndFunctionQueryDefinition exampleFormulaAndFunctionQueryDefinition = new FormulaAndFunctionQueryDefinition();

// create a new TimeSeriesFormulaAndFunctionEventQueryDefinition
TimeSeriesFormulaAndFunctionEventQueryDefinition exampleTimeSeriesFormulaAndFunctionEventQueryDefinition = new TimeSeriesFormulaAndFunctionEventQueryDefinition();
// set FormulaAndFunctionQueryDefinition to TimeSeriesFormulaAndFunctionEventQueryDefinition
exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleTimeSeriesFormulaAndFunctionEventQueryDefinition);
// to get back the TimeSeriesFormulaAndFunctionEventQueryDefinition set earlier
TimeSeriesFormulaAndFunctionEventQueryDefinition testTimeSeriesFormulaAndFunctionEventQueryDefinition = (TimeSeriesFormulaAndFunctionEventQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance();

// create a new TimeSeriesFormulaAndFunctionMetricQueryDefinition
TimeSeriesFormulaAndFunctionMetricQueryDefinition exampleTimeSeriesFormulaAndFunctionMetricQueryDefinition = new TimeSeriesFormulaAndFunctionMetricQueryDefinition();
// set FormulaAndFunctionQueryDefinition to TimeSeriesFormulaAndFunctionMetricQueryDefinition
exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleTimeSeriesFormulaAndFunctionMetricQueryDefinition);
// to get back the TimeSeriesFormulaAndFunctionMetricQueryDefinition set earlier
TimeSeriesFormulaAndFunctionMetricQueryDefinition testTimeSeriesFormulaAndFunctionMetricQueryDefinition = (TimeSeriesFormulaAndFunctionMetricQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance();

// create a new TimeSeriesFormulaAndFunctionProcessQueryDefinition
TimeSeriesFormulaAndFunctionProcessQueryDefinition exampleTimeSeriesFormulaAndFunctionProcessQueryDefinition = new TimeSeriesFormulaAndFunctionProcessQueryDefinition();
// set FormulaAndFunctionQueryDefinition to TimeSeriesFormulaAndFunctionProcessQueryDefinition
exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleTimeSeriesFormulaAndFunctionProcessQueryDefinition);
// to get back the TimeSeriesFormulaAndFunctionProcessQueryDefinition set earlier
TimeSeriesFormulaAndFunctionProcessQueryDefinition testTimeSeriesFormulaAndFunctionProcessQueryDefinition = (TimeSeriesFormulaAndFunctionProcessQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance();
// create a new FormulaAndFunctionEventQueryDefinition
FormulaAndFunctionEventQueryDefinition exampleFormulaAndFunctionEventQueryDefinition = new FormulaAndFunctionEventQueryDefinition();
// set FormulaAndFunctionQueryDefinition to FormulaAndFunctionEventQueryDefinition
exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleFormulaAndFunctionEventQueryDefinition);
// to get back the FormulaAndFunctionEventQueryDefinition set earlier
FormulaAndFunctionEventQueryDefinition testFormulaAndFunctionEventQueryDefinition = (FormulaAndFunctionEventQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance();

// create a new FormulaAndFunctionMetricQueryDefinition
FormulaAndFunctionMetricQueryDefinition exampleFormulaAndFunctionMetricQueryDefinition = new FormulaAndFunctionMetricQueryDefinition();
// set FormulaAndFunctionQueryDefinition to FormulaAndFunctionMetricQueryDefinition
exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleFormulaAndFunctionMetricQueryDefinition);
// to get back the FormulaAndFunctionMetricQueryDefinition set earlier
FormulaAndFunctionMetricQueryDefinition testFormulaAndFunctionMetricQueryDefinition = (FormulaAndFunctionMetricQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance();

// create a new FormulaAndFunctionProcessQueryDefinition
FormulaAndFunctionProcessQueryDefinition exampleFormulaAndFunctionProcessQueryDefinition = new FormulaAndFunctionProcessQueryDefinition();
// set FormulaAndFunctionQueryDefinition to FormulaAndFunctionProcessQueryDefinition
exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleFormulaAndFunctionProcessQueryDefinition);
// to get back the FormulaAndFunctionProcessQueryDefinition set earlier
FormulaAndFunctionProcessQueryDefinition testFormulaAndFunctionProcessQueryDefinition = (FormulaAndFunctionProcessQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance();
}
}
```
Expand Down
14 changes: 7 additions & 7 deletions api_docs/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,17 @@ Class | Method | HTTP request | Description
- [EventTimelineWidgetDefinition](EventTimelineWidgetDefinition.md)
- [EventTimelineWidgetDefinitionType](EventTimelineWidgetDefinitionType.md)
- [FormulaAndFunctionEventAggregation](FormulaAndFunctionEventAggregation.md)
- [FormulaAndFunctionEventQueryDefinition](FormulaAndFunctionEventQueryDefinition.md)
- [FormulaAndFunctionEventQueryDefinitionCompute](FormulaAndFunctionEventQueryDefinitionCompute.md)
- [FormulaAndFunctionEventQueryDefinitionSearch](FormulaAndFunctionEventQueryDefinitionSearch.md)
- [FormulaAndFunctionEventQueryGroupBy](FormulaAndFunctionEventQueryGroupBy.md)
- [FormulaAndFunctionEventQueryGroupBySort](FormulaAndFunctionEventQueryGroupBySort.md)
- [FormulaAndFunctionEventsDataSource](FormulaAndFunctionEventsDataSource.md)
- [FormulaAndFunctionMetricAggregation](FormulaAndFunctionMetricAggregation.md)
- [FormulaAndFunctionMetricDataSource](FormulaAndFunctionMetricDataSource.md)
- [FormulaAndFunctionMetricQueryDefinition](FormulaAndFunctionMetricQueryDefinition.md)
- [FormulaAndFunctionProcessQueryDataSource](FormulaAndFunctionProcessQueryDataSource.md)
- [FormulaAndFunctionProcessQueryDefinition](FormulaAndFunctionProcessQueryDefinition.md)
- [FormulaAndFunctionQueryDefinition](FormulaAndFunctionQueryDefinition.md)
- [FormulaAndFunctionResponseFormat](FormulaAndFunctionResponseFormat.md)
- [FreeTextWidgetDefinition](FreeTextWidgetDefinition.md)
Expand Down Expand Up @@ -534,13 +541,6 @@ Class | Method | HTTP request | Description
- [TableWidgetRequest](TableWidgetRequest.md)
- [TagToHosts](TagToHosts.md)
- [TargetFormatType](TargetFormatType.md)
- [TimeSeriesFormulaAndFunctionEventQueryDefinition](TimeSeriesFormulaAndFunctionEventQueryDefinition.md)
- [TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute](TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md)
- [TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch](TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md)
- [TimeSeriesFormulaAndFunctionEventQueryGroupBy](TimeSeriesFormulaAndFunctionEventQueryGroupBy.md)
- [TimeSeriesFormulaAndFunctionEventQueryGroupBySort](TimeSeriesFormulaAndFunctionEventQueryGroupBySort.md)
- [TimeSeriesFormulaAndFunctionMetricQueryDefinition](TimeSeriesFormulaAndFunctionMetricQueryDefinition.md)
- [TimeSeriesFormulaAndFunctionProcessQueryDefinition](TimeSeriesFormulaAndFunctionProcessQueryDefinition.md)
- [TimeseriesWidgetDefinition](TimeseriesWidgetDefinition.md)
- [TimeseriesWidgetDefinitionType](TimeseriesWidgetDefinitionType.md)
- [TimeseriesWidgetExpressionAlias](TimeseriesWidgetExpressionAlias.md)
Expand Down
18 changes: 0 additions & 18 deletions api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinition.md

This file was deleted.

Loading