Skip to content

Commit c25e6c6

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ee2bcf4 of spec repo (#4454)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent da852ef commit c25e6c6

65 files changed

Lines changed: 8502 additions & 1029 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 1789 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Delete a patterns configuration returns "No Content" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.deleteLLMObsPatternsConfig"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiDeleteLLMObsPatternsConfigRequest = {
12+
configId: "config_id",
13+
};
14+
15+
apiInstance
16+
.deleteLLMObsPatternsConfig(params)
17+
.then((data: any) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Get a patterns configuration returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.getLLMObsPatternsConfig"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
apiInstance
12+
.getLLMObsPatternsConfig()
13+
.then((data: v2.LLMObsPatternsConfigResponse) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Get patterns run status returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.getLLMObsPatternsRunStatus"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiGetLLMObsPatternsRunStatusRequest = {
12+
configId: "config_id",
13+
};
14+
15+
apiInstance
16+
.getLLMObsPatternsRunStatus(params)
17+
.then((data: v2.LLMObsPatternsRunStatusResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* List patterns clustered points returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listLLMObsPatternsClusteredPoints"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiListLLMObsPatternsClusteredPointsRequest = {
12+
topicId: "topic_id",
13+
};
14+
15+
apiInstance
16+
.listLLMObsPatternsClusteredPoints(params)
17+
.then((data: v2.LLMObsPatternsClusteredPointsResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* List patterns configurations returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listLLMObsPatternsConfigs"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
apiInstance
12+
.listLLMObsPatternsConfigs()
13+
.then((data: v2.LLMObsPatternsConfigsResponse) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* List patterns runs returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listLLMObsPatternsRuns"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiListLLMObsPatternsRunsRequest = {
12+
configId: "config_id",
13+
};
14+
15+
apiInstance
16+
.listLLMObsPatternsRuns(params)
17+
.then((data: v2.LLMObsPatternsRunsResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* List patterns topics returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listLLMObsPatternsTopics"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiListLLMObsPatternsTopicsRequest = {
12+
configId: "config_id",
13+
};
14+
15+
apiInstance
16+
.listLLMObsPatternsTopics(params)
17+
.then((data: v2.LLMObsPatternsTopicsResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* List patterns topics with clustered points returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations[
9+
"v2.listLLMObsPatternsTopicsWithClusteredPoints"
10+
] = true;
11+
const apiInstance = new v2.LLMObservabilityApi(configuration);
12+
13+
const params: v2.LLMObservabilityApiListLLMObsPatternsTopicsWithClusteredPointsRequest =
14+
{
15+
configId: "config_id",
16+
};
17+
18+
apiInstance
19+
.listLLMObsPatternsTopicsWithClusteredPoints(params)
20+
.then((data: v2.LLMObsPatternsTopicsWithClusteredPointsResponse) => {
21+
console.log(
22+
"API called successfully. Returned data: " + JSON.stringify(data)
23+
);
24+
})
25+
.catch((error: any) => console.error(error));
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Trigger a patterns run returns "Accepted" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.triggerLLMObsPatterns"] = true;
9+
const apiInstance = new v2.LLMObservabilityApi(configuration);
10+
11+
const params: v2.LLMObservabilityApiTriggerLLMObsPatternsRequest = {
12+
body: {
13+
data: {
14+
attributes: {
15+
configId: "a7c8d9e0-1234-5678-9abc-def012345678",
16+
},
17+
type: "topic_discovery",
18+
},
19+
},
20+
};
21+
22+
apiInstance
23+
.triggerLLMObsPatterns(params)
24+
.then((data: v2.LLMObsPatternsTriggerResponse) => {
25+
console.log(
26+
"API called successfully. Returned data: " + JSON.stringify(data)
27+
);
28+
})
29+
.catch((error: any) => console.error(error));

0 commit comments

Comments
 (0)