Skip to content
Open
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
117 changes: 117 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2623,6 +2623,122 @@ components:
nullable: true
type: array
type: object
EmbeddedAppWidgetDefinition:
additionalProperties: false
anyOf:
- required:
- app_id
- required:
- template_id
description: The embedded app widget displays an App Builder app on a dashboard. Exactly one of `app_id` or `template_id` must be provided; they cannot be provided together.
properties:
app_id:
description: UUID of the App Builder app to embed.
example: "7e7745f9-4343-4927-b038-80934a355915"
type: string
custom_links:
description: List of custom links.
items:
$ref: '#/components/schemas/WidgetCustomLink'
type: array
description:
description: The description of the widget.
maxLength: 5000
type: string
inputs:
description: Inputs passed to the embedded app.
items:
$ref: '#/components/schemas/EmbeddedAppWidgetInput'
type: array
template_id:
description: ID of the built-in app template to embed.
example: ec2_manager
type: string
time:
$ref: '#/components/schemas/WidgetTime'
title:
description: Title of the widget.
type: string
title_align:
$ref: '#/components/schemas/WidgetTextAlign'
title_size:
description: Size of the title.
type: string
type:
$ref: '#/components/schemas/EmbeddedAppWidgetDefinitionType'
required:
- type
type: object
EmbeddedAppWidgetDefinitionType:
default: embedded_app
description: Type of the embedded app widget.
enum:
- embedded_app
example: embedded_app
type: string
x-enum-varnames:
- EMBEDDED_APP
EmbeddedAppWidgetInput:
additionalProperties: false
description: An input passed to the embedded app.
properties:
name:
description: Name of the app input.
example: environment
type: string
value:
$ref: '#/components/schemas/EmbeddedAppWidgetInputValue'
required:
- name
- value
type: object
EmbeddedAppWidgetInputValue:
description: Value of the app input. This can be a string, number, boolean, object, or a non-empty homogeneous array of those types.
example: production
oneOf:
- type: string
- format: double
type: number
- type: boolean
- $ref: '#/components/schemas/EmbeddedAppWidgetInputValueObject'
- $ref: '#/components/schemas/EmbeddedAppWidgetInputValueStringArray'
- $ref: '#/components/schemas/EmbeddedAppWidgetInputValueNumberArray'
- $ref: '#/components/schemas/EmbeddedAppWidgetInputValueBooleanArray'
- $ref: '#/components/schemas/EmbeddedAppWidgetInputValueObjectArray'
EmbeddedAppWidgetInputValueBooleanArray:
description: An array of boolean values passed to the embedded app.
items:
description: A boolean value passed to the embedded app.
type: boolean
type: array
x-generate-alias-as-model: true
EmbeddedAppWidgetInputValueNumberArray:
description: An array of numeric values passed to the embedded app.
items:
description: A numeric value passed to the embedded app.
format: double
type: number
type: array
x-generate-alias-as-model: true
EmbeddedAppWidgetInputValueObject:
additionalProperties: {}
description: An arbitrary object value passed to the embedded app.
type: object
EmbeddedAppWidgetInputValueObjectArray:
description: An array of object values passed to the embedded app.
items:
additionalProperties: {}
description: An object value passed to the embedded app.
type: object
type: array
x-generate-alias-as-model: true
EmbeddedAppWidgetInputValueStringArray:
description: An array of string values passed to the embedded app.
items:
description: A string value passed to the embedded app.
type: string
type: array
x-generate-alias-as-model: true
Event:
description: Object representing an event.
properties:
Expand Down Expand Up @@ -28167,6 +28283,7 @@ components:
- $ref: '#/components/schemas/CheckStatusWidgetDefinition'
- $ref: '#/components/schemas/CohortWidgetDefinition'
- $ref: '#/components/schemas/DistributionWidgetDefinition'
- $ref: '#/components/schemas/EmbeddedAppWidgetDefinition'
- $ref: '#/components/schemas/EventStreamWidgetDefinition'
- $ref: '#/components/schemas/EventTimelineWidgetDefinition'
- $ref: '#/components/schemas/FreeTextWidgetDefinition'
Expand Down
4 changes: 4 additions & 0 deletions packages/datadog-api-client-v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ export { DistributionWidgetYAxis } from "./models/DistributionWidgetYAxis";
export { Downtime } from "./models/Downtime";
export { DowntimeChild } from "./models/DowntimeChild";
export { DowntimeRecurrence } from "./models/DowntimeRecurrence";
export { EmbeddedAppWidgetDefinition } from "./models/EmbeddedAppWidgetDefinition";
export { EmbeddedAppWidgetDefinitionType } from "./models/EmbeddedAppWidgetDefinitionType";
export { EmbeddedAppWidgetInput } from "./models/EmbeddedAppWidgetInput";
export { EmbeddedAppWidgetInputValue } from "./models/EmbeddedAppWidgetInputValue";
export { Event } from "./models/Event";
export { EventAlertType } from "./models/EventAlertType";
export { EventCreateRequest } from "./models/EventCreateRequest";
Expand Down
119 changes: 119 additions & 0 deletions packages/datadog-api-client-v1/models/EmbeddedAppWidgetDefinition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { EmbeddedAppWidgetDefinitionType } from "./EmbeddedAppWidgetDefinitionType";
import { EmbeddedAppWidgetInput } from "./EmbeddedAppWidgetInput";
import { WidgetCustomLink } from "./WidgetCustomLink";
import { WidgetTextAlign } from "./WidgetTextAlign";
import { WidgetTime } from "./WidgetTime";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";

/**
* The embedded app widget displays an App Builder app on a dashboard. Exactly one of `app_id` or `template_id` must be provided; they cannot be provided together.
*/
export class EmbeddedAppWidgetDefinition {
/**
* UUID of the App Builder app to embed.
*/
"appId"?: string;
/**
* List of custom links.
*/
"customLinks"?: Array<WidgetCustomLink>;
/**
* The description of the widget.
*/
"description"?: string;
/**
* Inputs passed to the embedded app.
*/
"inputs"?: Array<EmbeddedAppWidgetInput>;
/**
* ID of the built-in app template to embed.
*/
"templateId"?: string;
/**
* Time setting for the widget.
*/
"time"?: WidgetTime;
/**
* Title of the widget.
*/
"title"?: string;
/**
* How to align the text on the widget.
*/
"titleAlign"?: WidgetTextAlign;
/**
* Size of the title.
*/
"titleSize"?: string;
/**
* Type of the embedded app widget.
*/
"type": EmbeddedAppWidgetDefinitionType;

/**
* @ignore
*/
"_unparsed"?: boolean;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
appId: {
baseName: "app_id",
type: "string",
},
customLinks: {
baseName: "custom_links",
type: "Array<WidgetCustomLink>",
},
description: {
baseName: "description",
type: "string",
},
inputs: {
baseName: "inputs",
type: "Array<EmbeddedAppWidgetInput>",
},
templateId: {
baseName: "template_id",
type: "string",
},
time: {
baseName: "time",
type: "WidgetTime",
},
title: {
baseName: "title",
type: "string",
},
titleAlign: {
baseName: "title_align",
type: "WidgetTextAlign",
},
titleSize: {
baseName: "title_size",
type: "string",
},
type: {
baseName: "type",
type: "EmbeddedAppWidgetDefinitionType",
required: true,
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return EmbeddedAppWidgetDefinition.attributeTypeMap;
}

public constructor() {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/

import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* Type of the embedded app widget.
*/

export type EmbeddedAppWidgetDefinitionType =
| typeof EMBEDDED_APP
| UnparsedObject;
export const EMBEDDED_APP = "embedded_app";
52 changes: 52 additions & 0 deletions packages/datadog-api-client-v1/models/EmbeddedAppWidgetInput.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { EmbeddedAppWidgetInputValue } from "./EmbeddedAppWidgetInputValue";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";

/**
* An input passed to the embedded app.
*/
export class EmbeddedAppWidgetInput {
/**
* Name of the app input.
*/
"name": string;
/**
* Value of the app input. This can be a string, number, boolean, object, or a non-empty homogeneous array of those types.
*/
"value": EmbeddedAppWidgetInputValue;

/**
* @ignore
*/
"_unparsed"?: boolean;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
name: {
baseName: "name",
type: "string",
required: true,
},
value: {
baseName: "value",
type: "EmbeddedAppWidgetInputValue",
required: true,
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return EmbeddedAppWidgetInput.attributeTypeMap;
}

public constructor() {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/

import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* Value of the app input. This can be a string, number, boolean, object, or a non-empty homogeneous array of those types.
*/

export type EmbeddedAppWidgetInputValue =
| string
| number
| boolean
| { [key: string]: any }
| Array<string>
| Array<number>
| Array<boolean>
| Array<{ [key: string]: any }>
| UnparsedObject;
Loading
Loading