Skip to content

Commit 39a5bdc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c4abe16 of spec repo
1 parent 48b6e1c commit 39a5bdc

File tree

22 files changed

+666
-2
lines changed

22 files changed

+666
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51083,6 +51083,49 @@ components:
5108351083
$ref: '#/components/schemas/ServiceDefinitionData'
5108451084
type: array
5108551085
type: object
51086+
ServiceList:
51087+
properties:
51088+
data:
51089+
$ref: '#/components/schemas/ServiceListData'
51090+
type: object
51091+
ServiceListData:
51092+
properties:
51093+
attributes:
51094+
$ref: '#/components/schemas/ServiceListDataAttributes'
51095+
id:
51096+
type: string
51097+
type:
51098+
$ref: '#/components/schemas/ServiceListDataType'
51099+
required:
51100+
- type
51101+
type: object
51102+
ServiceListDataAttributes:
51103+
properties:
51104+
metadata:
51105+
items:
51106+
$ref: '#/components/schemas/ServiceListDataAttributesMetadataItems'
51107+
type: array
51108+
services:
51109+
items:
51110+
type: string
51111+
type: array
51112+
type: object
51113+
ServiceListDataAttributesMetadataItems:
51114+
properties:
51115+
isTraced:
51116+
type: boolean
51117+
isUsm:
51118+
type: boolean
51119+
type: object
51120+
ServiceListDataType:
51121+
default: services_list
51122+
description: Services list resource type.
51123+
enum:
51124+
- services_list
51125+
example: services_list
51126+
type: string
51127+
x-enum-varnames:
51128+
- SERVICES_LIST
5108651129
ServiceNowBasicAuth:
5108751130
description: The definition of the `ServiceNowBasicAuth` object.
5108851131
properties:
@@ -61276,6 +61319,26 @@ paths:
6127661319
permissions:
6127761320
- apm_retention_filter_write
6127861321
- apm_pipelines_write
61322+
/api/v2/apm/services:
61323+
get:
61324+
operationId: GetServiceList
61325+
responses:
61326+
'200':
61327+
content:
61328+
application/json:
61329+
schema:
61330+
$ref: '#/components/schemas/ServiceList'
61331+
description: OK
61332+
'429':
61333+
$ref: '#/components/responses/TooManyRequestsResponse'
61334+
security:
61335+
- apiKeyAuth: []
61336+
appKeyAuth: []
61337+
- AuthZ:
61338+
- apm_read
61339+
summary: Get service list
61340+
tags:
61341+
- APM
6127961342
/api/v2/app-builder/apps:
6128061343
delete:
6128161344
description: Delete multiple apps in a single request from a list of app IDs.
@@ -69009,6 +69072,9 @@ paths:
6900969072
operator: OR
6901069073
permissions:
6901169074
- incident_read
69075+
x-unstable: '**Note**: This endpoint is in Preview.
69076+
69077+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6901269078
post:
6901369079
description: Create an impact for an incident.
6901469080
operationId: CreateIncidentImpact
@@ -69052,6 +69118,9 @@ paths:
6905269118
operator: OR
6905369119
permissions:
6905469120
- incident_write
69121+
x-unstable: '**Note**: This endpoint is in Preview.
69122+
69123+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6905569124
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
6905669125
delete:
6905769126
description: Delete an incident impact.
@@ -69082,6 +69151,9 @@ paths:
6908269151
operator: OR
6908369152
permissions:
6908469153
- incident_write
69154+
x-unstable: '**Note**: This endpoint is in Preview.
69155+
69156+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6908569157
/api/v2/incidents/{incident_id}/relationships/integrations:
6908669158
get:
6908769159
description: Get all integration metadata for an incident.
@@ -88017,6 +88089,9 @@ servers:
8801788089
tags:
8801888090
- description: Configure your API endpoints through the Datadog API.
8801988091
name: API Management
88092+
- description: Observe, troubleshoot, and improve cloud-scale applications with all
88093+
telemetry in context
88094+
name: APM
8802088095
- description: Manage configuration of [APM retention filters](https://app.datadoghq.com/apm/traces/retention-filters)
8802188096
for your organization. You need an API and application key with Admin rights to
8802288097
interact with this endpoint. See [retention filters](https://docs.datadoghq.com/tracing/trace_pipeline/trace_retention/#retention-filters)

features/v2/apm.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@endpoint(apm) @endpoint(apm-v2)
2+
Feature: APM
3+
Observe, troubleshoot, and improve cloud-scale applications with all
4+
telemetry in context
5+
6+
@generated @skip @team:DataDog/apm-aoe
7+
Scenario: Get service list returns "OK" response
8+
Given a valid "apiKeyAuth" key in the system
9+
And a valid "appKeyAuth" key in the system
10+
And an instance of "APM" API
11+
And new "GetServiceList" request
12+
When the request is sent
13+
Then the response status is 200 OK

features/v2/incidents.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,14 +806,16 @@ Feature: Incidents
806806

807807
@generated @skip @team:DataDog/incident-app
808808
Scenario: List an incident's impacts returns "Bad Request" response
809-
Given new "ListIncidentImpacts" request
809+
Given operation "ListIncidentImpacts" enabled
810+
And new "ListIncidentImpacts" request
810811
And request contains "incident_id" parameter from "REPLACE.ME"
811812
When the request is sent
812813
Then the response status is 400 Bad Request
813814

814815
@generated @skip @team:DataDog/incident-app
815816
Scenario: List an incident's impacts returns "Not Found" response
816-
Given new "ListIncidentImpacts" request
817+
Given operation "ListIncidentImpacts" enabled
818+
And new "ListIncidentImpacts" request
817819
And request contains "incident_id" parameter from "REPLACE.ME"
818820
When the request is sent
819821
Then the response status is 404 Not Found

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,12 @@
516516
"type": "idempotent"
517517
}
518518
},
519+
"GetServiceList": {
520+
"tag": "APM",
521+
"undo": {
522+
"type": "safe"
523+
}
524+
},
519525
"DeleteApps": {
520526
"tag": "App Builder",
521527
"undo": {

packages/datadog-api-client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ apiInstance
350350
| Actions Datastores | @datadog/datadog-api-client-actions-datastores | [README.md](../../services/actions-datastores/README.md) |
351351
| Agentless Scanning | @datadog/datadog-api-client-agentless-scanning | [README.md](../../services/agentless-scanning/README.md) |
352352
| API Management | @datadog/datadog-api-client-api-management | [README.md](../../services/api-management/README.md) |
353+
| APM | @datadog/datadog-api-client-apm | [README.md](../../services/apm/README.md) |
353354
| APM Retention Filters | @datadog/datadog-api-client-apm-retention-filters | [README.md](../../services/apm-retention-filters/README.md) |
354355
| App Builder | @datadog/datadog-api-client-app-builder | [README.md](../../services/app-builder/README.md) |
355356
| Application Security | @datadog/datadog-api-client-application-security | [README.md](../../services/application-security/README.md) |

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,6 +3102,9 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
31023102
},
31033103
operationResponseType: "{}",
31043104
},
3105+
"APMApi.V2.GetServiceList": {
3106+
operationResponseType: "ServiceList",
3107+
},
31053108
"AppBuilderApi.V2.ListApps": {
31063109
limit: {
31073110
type: "number",

services/apm/.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

services/apm/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# @datadog/datadog-api-client-apm
2+
3+
## Description
4+
5+
Observe, troubleshoot, and improve cloud-scale applications with all telemetry in context
6+
7+
## Navigation
8+
9+
- [Installation](#installation)
10+
- [Getting Started](#getting-started)
11+
12+
## Installation
13+
14+
```sh
15+
# NPM
16+
npm install @datadog/datadog-api-client-apm
17+
# Yarn
18+
yarn add @datadog/datadog-api-client-apm
19+
```
20+
21+
## Getting Started
22+
```ts
23+
import { createConfiguration } from "@datadog/datadog-api-client";
24+
import { APMApiV2 } from "@datadog/datadog-api-client-apm";
25+
import { v2 } from "@datadog/datadog-api-client-apm";
26+
27+
const configuration = createConfiguration();
28+
const apiInstance = new APMApiV2(configuration);
29+
30+
apiInstance.getServiceList().then((data) => {
31+
console.log("API called successfully. Returned data: " + JSON.stringify(data));
32+
}).catch((error) => {
33+
console.error("Error calling API: " + error);
34+
});
35+
```

services/apm/package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@datadog/datadog-api-client-apm",
3+
"description": "",
4+
"author": "",
5+
"keywords": [
6+
"api",
7+
"fetch",
8+
"typescript"
9+
],
10+
"license": "Apache-2.0",
11+
"licenses": [
12+
{
13+
"type": "Apache-2.0",
14+
"url": "http://www.apache.org/licenses/LICENSE-2.0"
15+
}
16+
],
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/DataDog/datadog-api-client-typescript.git",
20+
"directory": "services/apm"
21+
},
22+
"files": [
23+
"dist/**/*"
24+
],
25+
"main": "./dist/index.js",
26+
"typings": "./dist/index.d.ts",
27+
"scripts": {
28+
"prepack": "yarn workspace @datadog/datadog-api-client build && yarn build",
29+
"build": "yarn generate-version-files && tsc",
30+
"generate-version-files": "node -p \"'export const version = ' + JSON.stringify(require('./package.json').version)\" > src/version.ts"
31+
},
32+
"dependencies": {
33+
"@datadog/datadog-api-client": "^2.0.0-beta.0"
34+
},
35+
"devDependencies": {
36+
"typescript": "5.8.3"
37+
},
38+
"engines": {
39+
"node": ">=18.0.0"
40+
},
41+
"version": "0.0.1",
42+
"packageManager": "[email protected]"
43+
}

services/apm/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * as v2 from "./v2";
2+
3+
export { APMApi as APMApiV2 } from "./v2/APMApi";

0 commit comments

Comments
 (0)