Skip to content

Commit

Permalink
Change columns attribute type from string array to object array in …
Browse files Browse the repository at this point in the history
…APM stats query widget (#509)

* Regenerate client from commit d9efdb7 of spec repo

Co-authored-by: Alec Barrett <alec.barrett@datadoghq.com>
Co-authored-by: Jiri Kuncar <jiri.kuncar@gmail.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
4 people authored Oct 6, 2020
1 parent e6248f0 commit 79820b1
Show file tree
Hide file tree
Showing 11 changed files with 570 additions and 172 deletions.
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.2.0",
"regenerated": "2020-10-05 08:54:41.386141",
"spec_repo_commit": "3e66447"
"regenerated": "2020-10-06 08:32:13.503198",
"spec_repo_commit": "d9efdb7"
},
"v2": {
"apigentools_version": "1.2.0",
"regenerated": "2020-10-05 08:54:46.827414",
"spec_repo_commit": "3e66447"
"regenerated": "2020-10-06 08:32:19.243493",
"spec_repo_commit": "d9efdb7"
}
}
}
2 changes: 2 additions & 0 deletions api/v1/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ docs/AlertValueWidgetDefinitionType.md
docs/ApiKey.md
docs/ApiKeyListResponse.md
docs/ApiKeyResponse.md
docs/ApmStatsQueryColumnType.md
docs/ApmStatsQueryDefinition.md
docs/ApmStatsQueryRowType.md
docs/ApplicationKey.md
Expand Down Expand Up @@ -482,6 +483,7 @@ model_api_error_response.go
model_api_key.go
model_api_key_list_response.go
model_api_key_response.go
model_apm_stats_query_column_type.go
model_apm_stats_query_definition.go
model_apm_stats_query_row_type.go
model_application_key.go
Expand Down
1 change: 1 addition & 0 deletions api/v1/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ Class | Method | HTTP request | Description
- [ApiKey](docs/ApiKey.md)
- [ApiKeyListResponse](docs/ApiKeyListResponse.md)
- [ApiKeyResponse](docs/ApiKeyResponse.md)
- [ApmStatsQueryColumnType](docs/ApmStatsQueryColumnType.md)
- [ApmStatsQueryDefinition](docs/ApmStatsQueryDefinition.md)
- [ApmStatsQueryRowType](docs/ApmStatsQueryRowType.md)
- [ApplicationKey](docs/ApplicationKey.md)
Expand Down
24 changes: 20 additions & 4 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7060,15 +7060,31 @@ components:
api_key:
$ref: '#/components/schemas/ApiKey'
type: object
ApmStatsQueryColumnType:
description: Column properties.
properties:
alias:
description: A user-assigned alias for the column.
example: Requests
type: string
cell_display_mode:
$ref: '#/components/schemas/TableWidgetCellDisplayMode'
name:
description: Column name.
example: Reqs
type: string
order:
$ref: '#/components/schemas/WidgetSort'
required:
- name
type: object
ApmStatsQueryDefinition:
description: The APM stats query for table and distributions widgets.
properties:
columns:
description: Column names used by front end for display.
description: Column properties used by the front end for display.
items:
description: Column header.
example: MeanLatency
type: string
$ref: '#/components/schemas/ApmStatsQueryColumnType'
type: array
env:
description: Environment name.
Expand Down
129 changes: 129 additions & 0 deletions api/v1/datadog/docs/ApmStatsQueryColumnType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# ApmStatsQueryColumnType

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Alias** | Pointer to **string** | A user-assigned alias for the column. | [optional]
**CellDisplayMode** | Pointer to [**TableWidgetCellDisplayMode**](TableWidgetCellDisplayMode.md) | | [optional] [default to "number"]
**Name** | **string** | Column name. |
**Order** | Pointer to [**WidgetSort**](WidgetSort.md) | | [optional]

## Methods

### NewApmStatsQueryColumnType

`func NewApmStatsQueryColumnType(name string, ) *ApmStatsQueryColumnType`

NewApmStatsQueryColumnType instantiates a new ApmStatsQueryColumnType 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

### NewApmStatsQueryColumnTypeWithDefaults

`func NewApmStatsQueryColumnTypeWithDefaults() *ApmStatsQueryColumnType`

NewApmStatsQueryColumnTypeWithDefaults instantiates a new ApmStatsQueryColumnType 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

### GetAlias

`func (o *ApmStatsQueryColumnType) GetAlias() string`

GetAlias returns the Alias field if non-nil, zero value otherwise.

### GetAliasOk

`func (o *ApmStatsQueryColumnType) GetAliasOk() (*string, bool)`

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

### SetAlias

`func (o *ApmStatsQueryColumnType) SetAlias(v string)`

SetAlias sets Alias field to given value.

### HasAlias

`func (o *ApmStatsQueryColumnType) HasAlias() bool`

HasAlias returns a boolean if a field has been set.

### GetCellDisplayMode

`func (o *ApmStatsQueryColumnType) GetCellDisplayMode() TableWidgetCellDisplayMode`

GetCellDisplayMode returns the CellDisplayMode field if non-nil, zero value otherwise.

### GetCellDisplayModeOk

`func (o *ApmStatsQueryColumnType) GetCellDisplayModeOk() (*TableWidgetCellDisplayMode, bool)`

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

### SetCellDisplayMode

`func (o *ApmStatsQueryColumnType) SetCellDisplayMode(v TableWidgetCellDisplayMode)`

SetCellDisplayMode sets CellDisplayMode field to given value.

### HasCellDisplayMode

`func (o *ApmStatsQueryColumnType) HasCellDisplayMode() bool`

HasCellDisplayMode returns a boolean if a field has been set.

### GetName

`func (o *ApmStatsQueryColumnType) GetName() string`

GetName returns the Name field if non-nil, zero value otherwise.

### GetNameOk

`func (o *ApmStatsQueryColumnType) GetNameOk() (*string, bool)`

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

### SetName

`func (o *ApmStatsQueryColumnType) SetName(v string)`

SetName sets Name field to given value.


### GetOrder

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

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

### GetOrderOk

`func (o *ApmStatsQueryColumnType) 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 *ApmStatsQueryColumnType) SetOrder(v WidgetSort)`

SetOrder sets Order field to given value.

### HasOrder

`func (o *ApmStatsQueryColumnType) HasOrder() bool`

HasOrder returns a boolean if a field has been set.


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


8 changes: 4 additions & 4 deletions api/v1/datadog/docs/ApmStatsQueryDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Columns** | Pointer to **[]string** | Column names used by front end for display. | [optional]
**Columns** | Pointer to [**[]ApmStatsQueryColumnType**](ApmStatsQueryColumnType.md) | Column properties used by the front end for display. | [optional]
**Env** | **string** | Environment name. |
**Name** | **string** | Operation name associated with service. |
**PrimaryTag** | **string** | The organization&#39;s host group name and value. |
Expand Down Expand Up @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set

### GetColumns

`func (o *ApmStatsQueryDefinition) GetColumns() []string`
`func (o *ApmStatsQueryDefinition) GetColumns() []ApmStatsQueryColumnType`

GetColumns returns the Columns field if non-nil, zero value otherwise.

### GetColumnsOk

`func (o *ApmStatsQueryDefinition) GetColumnsOk() (*[]string, bool)`
`func (o *ApmStatsQueryDefinition) GetColumnsOk() (*[]ApmStatsQueryColumnType, bool)`

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

### SetColumns

`func (o *ApmStatsQueryDefinition) SetColumns(v []string)`
`func (o *ApmStatsQueryDefinition) SetColumns(v []ApmStatsQueryColumnType)`

SetColumns sets Columns field to given value.

Expand Down
Loading

0 comments on commit 79820b1

Please sign in to comment.