-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Entity kind API (#2031)
Co-authored-by: ci.datadog-api-spec <[email protected]>
- Loading branch information
1 parent
e9ed1aa
commit 50f6a6d
Showing
12 changed files
with
486 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/** | ||
* 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 { EntityV3APIDatadog } from "./EntityV3APIDatadog"; | ||
import { EntityV3APIKind } from "./EntityV3APIKind"; | ||
import { EntityV3APISpec } from "./EntityV3APISpec"; | ||
import { EntityV3APIVersion } from "./EntityV3APIVersion"; | ||
import { EntityV3Integrations } from "./EntityV3Integrations"; | ||
import { EntityV3Metadata } from "./EntityV3Metadata"; | ||
|
||
import { AttributeTypeMap } from "../../datadog-api-client-common/util"; | ||
|
||
/** | ||
* Schema for API entities. | ||
*/ | ||
export class EntityV3API { | ||
/** | ||
* The schema version of entity type. The field is known as schema-version in the previous version. | ||
*/ | ||
"apiVersion": EntityV3APIVersion; | ||
/** | ||
* Datadog product integrations for the API entity. | ||
*/ | ||
"datadog"?: EntityV3APIDatadog; | ||
/** | ||
* Custom extensions. This is the free-formed field to send client-side metadata. No Datadog features are affected by this field. | ||
*/ | ||
"extensions"?: { [key: string]: any }; | ||
/** | ||
* A base schema for defining third-party integrations. | ||
*/ | ||
"integrations"?: EntityV3Integrations; | ||
/** | ||
* The definition of Entity V3 API Kind object. | ||
*/ | ||
"kind": EntityV3APIKind; | ||
/** | ||
* The definition of Entity V3 Metadata object. | ||
*/ | ||
"metadata": EntityV3Metadata; | ||
/** | ||
* The definition of Entity V3 API Spec object. | ||
*/ | ||
"spec"?: EntityV3APISpec; | ||
|
||
/** | ||
* @ignore | ||
*/ | ||
"_unparsed"?: boolean; | ||
|
||
/** | ||
* @ignore | ||
*/ | ||
static readonly attributeTypeMap: AttributeTypeMap = { | ||
apiVersion: { | ||
baseName: "apiVersion", | ||
type: "EntityV3APIVersion", | ||
required: true, | ||
}, | ||
datadog: { | ||
baseName: "datadog", | ||
type: "EntityV3APIDatadog", | ||
}, | ||
extensions: { | ||
baseName: "extensions", | ||
type: "{ [key: string]: any; }", | ||
}, | ||
integrations: { | ||
baseName: "integrations", | ||
type: "EntityV3Integrations", | ||
}, | ||
kind: { | ||
baseName: "kind", | ||
type: "EntityV3APIKind", | ||
required: true, | ||
}, | ||
metadata: { | ||
baseName: "metadata", | ||
type: "EntityV3Metadata", | ||
required: true, | ||
}, | ||
spec: { | ||
baseName: "spec", | ||
type: "EntityV3APISpec", | ||
}, | ||
}; | ||
|
||
/** | ||
* @ignore | ||
*/ | ||
static getAttributeTypeMap(): AttributeTypeMap { | ||
return EntityV3API.attributeTypeMap; | ||
} | ||
|
||
public constructor() {} | ||
} |
78 changes: 78 additions & 0 deletions
78
packages/datadog-api-client-v2/models/EntityV3APIDatadog.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/** | ||
* 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 { EntityV3DatadogCodeLocationItem } from "./EntityV3DatadogCodeLocationItem"; | ||
import { EntityV3DatadogEventItem } from "./EntityV3DatadogEventItem"; | ||
import { EntityV3DatadogLogItem } from "./EntityV3DatadogLogItem"; | ||
import { EntityV3DatadogPerformance } from "./EntityV3DatadogPerformance"; | ||
import { EntityV3DatadogPipelines } from "./EntityV3DatadogPipelines"; | ||
|
||
import { AttributeTypeMap } from "../../datadog-api-client-common/util"; | ||
|
||
/** | ||
* Datadog product integrations for the API entity. | ||
*/ | ||
export class EntityV3APIDatadog { | ||
/** | ||
* Schema for mapping source code locations to an entity. | ||
*/ | ||
"codeLocations"?: Array<EntityV3DatadogCodeLocationItem>; | ||
/** | ||
* Events associations. | ||
*/ | ||
"events"?: Array<EntityV3DatadogEventItem>; | ||
/** | ||
* Logs association. | ||
*/ | ||
"logs"?: Array<EntityV3DatadogLogItem>; | ||
/** | ||
* Performance stats association. | ||
*/ | ||
"performanceData"?: EntityV3DatadogPerformance; | ||
/** | ||
* CI Pipelines association. | ||
*/ | ||
"pipelines"?: EntityV3DatadogPipelines; | ||
|
||
/** | ||
* @ignore | ||
*/ | ||
"_unparsed"?: boolean; | ||
|
||
/** | ||
* @ignore | ||
*/ | ||
static readonly attributeTypeMap: AttributeTypeMap = { | ||
codeLocations: { | ||
baseName: "codeLocations", | ||
type: "Array<EntityV3DatadogCodeLocationItem>", | ||
}, | ||
events: { | ||
baseName: "events", | ||
type: "Array<EntityV3DatadogEventItem>", | ||
}, | ||
logs: { | ||
baseName: "logs", | ||
type: "Array<EntityV3DatadogLogItem>", | ||
}, | ||
performanceData: { | ||
baseName: "performanceData", | ||
type: "EntityV3DatadogPerformance", | ||
}, | ||
pipelines: { | ||
baseName: "pipelines", | ||
type: "EntityV3DatadogPipelines", | ||
}, | ||
}; | ||
|
||
/** | ||
* @ignore | ||
*/ | ||
static getAttributeTypeMap(): AttributeTypeMap { | ||
return EntityV3APIDatadog.attributeTypeMap; | ||
} | ||
|
||
public constructor() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* 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"; | ||
|
||
/** | ||
* The definition of Entity V3 API Kind object. | ||
*/ | ||
|
||
export type EntityV3APIKind = typeof API | UnparsedObject; | ||
export const API = "api"; |
Oops, something went wrong.