Skip to content

Powerpack add support for prefix and available values #1819

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

Merged
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.6.6",
"regenerated": "2024-09-16 14:02:55.755592",
"spec_repo_commit": "966987f5"
"regenerated": "2024-09-18 14:45:11.842654",
"spec_repo_commit": "bae57ce1"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-16 14:02:55.775858",
"spec_repo_commit": "966987f5"
"regenerated": "2024-09-18 14:45:11.862890",
"spec_repo_commit": "bae57ce1"
}
}
}
18 changes: 18 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16297,6 +16297,18 @@ components:
PowerpackTemplateVariable:
description: Powerpack template variables.
properties:
available_values:
description: The list of values that the template variable drop-down is
limited to.
example:
- my-host
- host1
- host2
items:
description: Template variable value.
type: string
nullable: true
type: array
defaults:
description: One or many template variable default values within the saved
view, which are unioned together using `OR` if more than one is specified.
Expand All @@ -16309,6 +16321,12 @@ components:
description: The name of the variable.
example: datacenter
type: string
prefix:
description: The tag prefix associated with the variable. Only tags with
this prefix appear in the variable drop-down.
example: host
nullable: true
type: string
required:
- name
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* Powerpack template variables.
*/
export class PowerpackTemplateVariable {
/**
* The list of values that the template variable drop-down is limited to.
*/
"availableValues"?: Array<string>;
/**
* One or many template variable default values within the saved view, which are unioned together using `OR` if more than one is specified.
*/
Expand All @@ -18,6 +22,10 @@ export class PowerpackTemplateVariable {
* The name of the variable.
*/
"name": string;
/**
* The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
*/
"prefix"?: string;

/**
* A container for additional, undeclared properties.
Expand All @@ -35,6 +43,10 @@ export class PowerpackTemplateVariable {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
availableValues: {
baseName: "available_values",
type: "Array<string>",
},
defaults: {
baseName: "defaults",
type: "Array<string>",
Expand All @@ -44,6 +56,10 @@ export class PowerpackTemplateVariable {
type: "string",
required: true,
},
prefix: {
baseName: "prefix",
type: "string",
},
additionalProperties: {
baseName: "additionalProperties",
type: "any",
Expand Down
Loading