Skip to content

Commit

Permalink
Change Dashboard WidgetCustomLink properties (#937)
Browse files Browse the repository at this point in the history
* [graph-editor] Change manual test for new context menu API

* fix test

* fix test

* Regenerate client from commit a1af0e0 of spec repo

Co-authored-by: Qin Cheng Chen <qincchen@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>
Co-authored-by: Thomas Hervé <thomas.herve@datadoghq.com>
  • Loading branch information
4 people authored May 17, 2021
1 parent 445677b commit b14e4aa
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 116 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.4.1.dev6",
"regenerated": "2021-05-14 12:57:54.828603",
"spec_repo_commit": "8dce4be"
"regenerated": "2021-05-14 17:16:34.209768",
"spec_repo_commit": "a1af0e0"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-05-14 12:58:52.756713",
"spec_repo_commit": "8dce4be"
"regenerated": "2021-05-14 17:17:37.272303",
"spec_repo_commit": "a1af0e0"
}
}
}
11 changes: 8 additions & 3 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26227,6 +26227,9 @@ components:
description: Custom links help you connect a data value to a URL, like a Datadog
page or your AWS console.
properties:
is_hidden:
description: The flag for toggling context menu link visibility.
type: boolean
label:
description: The label for the custom link URL. Keep the label short and
descriptive. Use metrics and tags as variables.
Expand All @@ -26237,9 +26240,11 @@ components:
A relative URL must start with `/`.
example: https://app.datadoghq.com/logs?query={{host}}
type: string
required:
- label
- link
override_label:
description: The label ID that refers to a context menu link. Can be `logs`,
`hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`.
example: logs
type: string
type: object
WidgetDefinition:
description: '[Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/).'
Expand Down
68 changes: 65 additions & 3 deletions api/v1/datadog/docs/WidgetCustomLink.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

Name | Type | Description | Notes
---- | ---- | ----------- | ------
**Label** | **string** | The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. |
**Link** | **string** | The URL of the custom link. URL must include &#x60;http&#x60; or &#x60;https&#x60;. A relative URL must start with &#x60;/&#x60;. |
**IsHidden** | Pointer to **bool** | The flag for toggling context menu link visibility. | [optional]
**Label** | Pointer to **string** | The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. | [optional]
**Link** | Pointer to **string** | The URL of the custom link. URL must include &#x60;http&#x60; or &#x60;https&#x60;. A relative URL must start with &#x60;/&#x60;. | [optional]
**OverrideLabel** | Pointer to **string** | The label ID that refers to a context menu link. Can be &#x60;logs&#x60;, &#x60;hosts&#x60;, &#x60;traces&#x60;, &#x60;profiles&#x60;, &#x60;processes&#x60;, &#x60;containers&#x60;, or &#x60;rum&#x60;. | [optional]

## Methods

### NewWidgetCustomLink

`func NewWidgetCustomLink(label string, link string, ) *WidgetCustomLink`
`func NewWidgetCustomLink() *WidgetCustomLink`

NewWidgetCustomLink instantiates a new WidgetCustomLink object
This constructor will assign default values to properties that have it defined,
Expand All @@ -26,6 +28,31 @@ NewWidgetCustomLinkWithDefaults instantiates a new WidgetCustomLink 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

### GetIsHidden

`func (o *WidgetCustomLink) GetIsHidden() bool`

GetIsHidden returns the IsHidden field if non-nil, zero value otherwise.

### GetIsHiddenOk

`func (o *WidgetCustomLink) GetIsHiddenOk() (*bool, bool)`

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

### SetIsHidden

`func (o *WidgetCustomLink) SetIsHidden(v bool)`

SetIsHidden sets IsHidden field to given value.

### HasIsHidden

`func (o *WidgetCustomLink) HasIsHidden() bool`

HasIsHidden returns a boolean if a field has been set.

### GetLabel

`func (o *WidgetCustomLink) GetLabel() string`
Expand All @@ -45,6 +72,11 @@ and a boolean to check if the value has been set.

SetLabel sets Label field to given value.

### HasLabel

`func (o *WidgetCustomLink) HasLabel() bool`

HasLabel returns a boolean if a field has been set.

### GetLink

Expand All @@ -65,6 +97,36 @@ and a boolean to check if the value has been set.

SetLink sets Link field to given value.

### HasLink

`func (o *WidgetCustomLink) HasLink() bool`

HasLink returns a boolean if a field has been set.

### GetOverrideLabel

`func (o *WidgetCustomLink) GetOverrideLabel() string`

GetOverrideLabel returns the OverrideLabel field if non-nil, zero value otherwise.

### GetOverrideLabelOk

`func (o *WidgetCustomLink) GetOverrideLabelOk() (*string, bool)`

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

### SetOverrideLabel

`func (o *WidgetCustomLink) SetOverrideLabel(v string)`

SetOverrideLabel sets OverrideLabel field to given value.

### HasOverrideLabel

`func (o *WidgetCustomLink) HasOverrideLabel() bool`

HasOverrideLabel 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)
Expand Down
167 changes: 113 additions & 54 deletions api/v1/datadog/model_widget_custom_link.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b14e4aa

Please sign in to comment.