Skip to content

Commit

Permalink
Generated code from DataDog/datadog-api-spec#276 (#189)
Browse files Browse the repository at this point in the history
* Added column revamp tests

* Regenerate client from commit 7c9f520 of spec repo

Co-authored-by: Andreas Frendorf <andreas.frendorf@datadoghq.com>
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
3 people authored Mar 31, 2020
1 parent 6dfac0d commit 4f430b2
Show file tree
Hide file tree
Showing 12 changed files with 729 additions and 158 deletions.
2 changes: 1 addition & 1 deletion .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"codegen_version": "4.3.0",
"info_version": "1",
"image": "datadog/apigentools:git-936dfd6",
"spec_repo_commit": "51b9cbb"
"spec_repo_commit": "7c9f520"
}
2 changes: 2 additions & 0 deletions api/v1/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ Class | Method | HTTP request | Description
- [WidgetDisplayType](docs/WidgetDisplayType.md)
- [WidgetEvent](docs/WidgetEvent.md)
- [WidgetEventSize](docs/WidgetEventSize.md)
- [WidgetFieldSort](docs/WidgetFieldSort.md)
- [WidgetGrouping](docs/WidgetGrouping.md)
- [WidgetImageSizing](docs/WidgetImageSizing.md)
- [WidgetLayout](docs/WidgetLayout.md)
Expand All @@ -504,6 +505,7 @@ Class | Method | HTTP request | Description
- [WidgetLiveSpan](docs/WidgetLiveSpan.md)
- [WidgetMargin](docs/WidgetMargin.md)
- [WidgetMarker](docs/WidgetMarker.md)
- [WidgetMessageDisplay](docs/WidgetMessageDisplay.md)
- [WidgetMonitorSummaryDisplayFormat](docs/WidgetMonitorSummaryDisplayFormat.md)
- [WidgetNodeType](docs/WidgetNodeType.md)
- [WidgetOrderBy](docs/WidgetOrderBy.md)
Expand Down
33 changes: 33 additions & 0 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8032,9 +8032,19 @@ components:
items:
type: string
type: array
message_display:
$ref: '#/components/schemas/WidgetMessageDisplay'
query:
description: Query to filter the log stream with
type: string
show_date_column:
description: Whether to show the date column or not
type: boolean
show_message_column:
description: Whether to show the message column or not
type: boolean
sort:
$ref: '#/components/schemas/WidgetFieldSort'
time:
$ref: '#/components/schemas/WidgetTime'
title:
Expand Down Expand Up @@ -13791,6 +13801,18 @@ components:
x-enum-varnames:
- SMALL
- LARGE
WidgetFieldSort:
description: Which column and order to sort by
properties:
column:
description: Facet path for the column
type: string
order:
$ref: '#/components/schemas/WidgetSort'
required:
- column
- order
type: object
WidgetGrouping:
description: The kind of grouping to use (single check vs. cluster of checks)
enum:
Expand Down Expand Up @@ -13957,6 +13979,17 @@ components:
required:
- value
type: object
WidgetMessageDisplay:
description: Amount of log lines to display
enum:
- inline
- expanded-md
- expanded-lg
type: string
x-enum-varnames:
- INLINE
- EXPANDED_MEDIUM
- EXPANDED_LARGE
WidgetMonitorSummaryDisplayFormat:
description: What to display on the widget. Available values are counts, countsAndList
or list
Expand Down
104 changes: 104 additions & 0 deletions api/v1/datadog/docs/LogStreamWidgetDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Columns** | Pointer to **[]string** | Which columns to display on the widget | [optional]
**Indexes** | Pointer to **[]string** | An array of index names to query in the stream. | [optional]
**MessageDisplay** | Pointer to [**WidgetMessageDisplay**](WidgetMessageDisplay.md) | | [optional]
**Query** | Pointer to **string** | Query to filter the log stream with | [optional]
**ShowDateColumn** | Pointer to **bool** | Whether to show the date column or not | [optional]
**ShowMessageColumn** | Pointer to **bool** | Whether to show the message column or not | [optional]
**Sort** | Pointer to [**WidgetFieldSort**](WidgetFieldSort.md) | | [optional]
**Time** | Pointer to [**WidgetTime**](WidgetTime.md) | | [optional]
**Title** | Pointer to **string** | Title of the widget | [optional]
**TitleAlign** | Pointer to [**WidgetTextAlign**](WidgetTextAlign.md) | | [optional]
Expand Down Expand Up @@ -82,6 +86,31 @@ SetIndexes sets Indexes field to given value.

HasIndexes returns a boolean if a field has been set.

### GetMessageDisplay

`func (o *LogStreamWidgetDefinition) GetMessageDisplay() WidgetMessageDisplay`

GetMessageDisplay returns the MessageDisplay field if non-nil, zero value otherwise.

### GetMessageDisplayOk

`func (o *LogStreamWidgetDefinition) GetMessageDisplayOk() (*WidgetMessageDisplay, bool)`

GetMessageDisplayOk returns a tuple with the MessageDisplay field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetMessageDisplay

`func (o *LogStreamWidgetDefinition) SetMessageDisplay(v WidgetMessageDisplay)`

SetMessageDisplay sets MessageDisplay field to given value.

### HasMessageDisplay

`func (o *LogStreamWidgetDefinition) HasMessageDisplay() bool`

HasMessageDisplay returns a boolean if a field has been set.

### GetQuery

`func (o *LogStreamWidgetDefinition) GetQuery() string`
Expand All @@ -107,6 +136,81 @@ SetQuery sets Query field to given value.

HasQuery returns a boolean if a field has been set.

### GetShowDateColumn

`func (o *LogStreamWidgetDefinition) GetShowDateColumn() bool`

GetShowDateColumn returns the ShowDateColumn field if non-nil, zero value otherwise.

### GetShowDateColumnOk

`func (o *LogStreamWidgetDefinition) GetShowDateColumnOk() (*bool, bool)`

GetShowDateColumnOk returns a tuple with the ShowDateColumn field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetShowDateColumn

`func (o *LogStreamWidgetDefinition) SetShowDateColumn(v bool)`

SetShowDateColumn sets ShowDateColumn field to given value.

### HasShowDateColumn

`func (o *LogStreamWidgetDefinition) HasShowDateColumn() bool`

HasShowDateColumn returns a boolean if a field has been set.

### GetShowMessageColumn

`func (o *LogStreamWidgetDefinition) GetShowMessageColumn() bool`

GetShowMessageColumn returns the ShowMessageColumn field if non-nil, zero value otherwise.

### GetShowMessageColumnOk

`func (o *LogStreamWidgetDefinition) GetShowMessageColumnOk() (*bool, bool)`

GetShowMessageColumnOk returns a tuple with the ShowMessageColumn field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetShowMessageColumn

`func (o *LogStreamWidgetDefinition) SetShowMessageColumn(v bool)`

SetShowMessageColumn sets ShowMessageColumn field to given value.

### HasShowMessageColumn

`func (o *LogStreamWidgetDefinition) HasShowMessageColumn() bool`

HasShowMessageColumn returns a boolean if a field has been set.

### GetSort

`func (o *LogStreamWidgetDefinition) GetSort() WidgetFieldSort`

GetSort returns the Sort field if non-nil, zero value otherwise.

### GetSortOk

`func (o *LogStreamWidgetDefinition) GetSortOk() (*WidgetFieldSort, bool)`

GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetSort

`func (o *LogStreamWidgetDefinition) SetSort(v WidgetFieldSort)`

SetSort sets Sort field to given value.

### HasSort

`func (o *LogStreamWidgetDefinition) HasSort() bool`

HasSort returns a boolean if a field has been set.

### GetTime

`func (o *LogStreamWidgetDefinition) GetTime() WidgetTime`
Expand Down
72 changes: 72 additions & 0 deletions api/v1/datadog/docs/WidgetFieldSort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# WidgetFieldSort

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Column** | Pointer to **string** | Facet path for the column |
**Order** | Pointer to [**WidgetSort**](WidgetSort.md) | |

## Methods

### NewWidgetFieldSort

`func NewWidgetFieldSort(column string, order WidgetSort, ) *WidgetFieldSort`

NewWidgetFieldSort instantiates a new WidgetFieldSort object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewWidgetFieldSortWithDefaults

`func NewWidgetFieldSortWithDefaults() *WidgetFieldSort`

NewWidgetFieldSortWithDefaults instantiates a new WidgetFieldSort object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetColumn

`func (o *WidgetFieldSort) GetColumn() string`

GetColumn returns the Column field if non-nil, zero value otherwise.

### GetColumnOk

`func (o *WidgetFieldSort) GetColumnOk() (*string, bool)`

GetColumnOk returns a tuple with the Column field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetColumn

`func (o *WidgetFieldSort) SetColumn(v string)`

SetColumn sets Column field to given value.


### GetOrder

`func (o *WidgetFieldSort) GetOrder() WidgetSort`

GetOrder returns the Order field if non-nil, zero value otherwise.

### GetOrderOk

`func (o *WidgetFieldSort) GetOrderOk() (*WidgetSort, bool)`

GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetOrder

`func (o *WidgetFieldSort) SetOrder(v WidgetSort)`

SetOrder sets Order field to given value.



[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions api/v1/datadog/docs/WidgetMessageDisplay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# WidgetMessageDisplay

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading

0 comments on commit 4f430b2

Please sign in to comment.