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

Change Dashboard WidgetCustomLink properties #937

Merged
merged 18 commits into from
May 17, 2021
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
2b7d531
[graph-editor] Change manual test for new context menu API
qincchen May 7, 2021
34fb0ee
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 7, 2021
f5b7432
fix test
qincchen May 7, 2021
1fe4109
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 7, 2021
568c514
fix test
qincchen May 11, 2021
95c8078
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 11, 2021
d7197bc
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 11, 2021
ec4c701
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 11, 2021
e78a28d
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 11, 2021
97f3f4d
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 13, 2021
934ce1d
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 13, 2021
8f0aeb3
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 13, 2021
cc73330
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 13, 2021
d71906d
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 13, 2021
69572df
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 14, 2021
c4a5e42
Merge branch 'master' into datadog-api-spec/test/qin.chen/context-men…
api-clients-generation-pipeline[bot] May 14, 2021
0f09409
Regenerate client from commit a1af0e0 of spec repo
May 14, 2021
17e295c
Merge branch 'master' into datadog-api-spec/generated/971
therve May 17, 2021
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.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 `http` or `https`. A relative URL must start with `/`. |
**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 `http` or `https`. A relative URL must start with `/`. | [optional]
**OverrideLabel** | Pointer to **string** | The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. | [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