Comments (5)
Hi,
Do you have a reproducible example? Models are creating camelCase properties, which are available in my testing. Here is what I run:
import { client, v1 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v1.ServiceLevelObjectivesApi(configuration);
const params: v1.ServiceLevelObjectivesApiSearchSLORequest = {
pageSize: 20,
pageNumber: 0,
};
apiInstance
.searchSLO(params)
.then((data: v1.SearchSLOResponse) => {
console.log(data.data.attributes.slos[0].data.attributes?.sloType)
console.log(data.data.attributes.slos[0].data.attributes?.overallStatus)
})
.catch((error: any) => console.error(error));
Thanks.
from datadog-api-client-typescript.
Hey @therve
So that example you provided works for you? Because if asked that's the example I would provide. For me sloType
and overallStatus
are actually slo_type
and overall_status
. Requiring a @ts-expect-error for intellisense to ignore.
There are similar (but unrelated) issues like this throughout. For example, on the POST endpoint to create embedded graphs - the "size" parameter is an enum of strings (by fact and documentation) but vscode is saying it should be a number
type.
from datadog-api-client-typescript.
Yes that example work for me. What's your typescript version? The embedded graphs doesn't generate clients. so it's a different issue indeed.
from datadog-api-client-typescript.
5.0.4, Admittedly a few behind. Maybe this was solved already?
from datadog-api-client-typescript.
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.
If you would like this issue to remain open:
-
Verify that you can still reproduce the issue in the latest version of this project.
-
Comment that the issue is still reproducible and include updated details requested in the issue template.
from datadog-api-client-typescript.
Related Issues (20)
- HostsApi method listHosts results in a deserialization error HOT 5
- apiInstance.queryScalarData does not support Percentile as Aggregator HOT 1
- List logs from Historical index HOT 1
- dateToRFC3339String produces invalid dates
- Package size HOT 3
- Allow multiple clients to different site (don't rely on global state) HOT 3
- DataScalarColumn.values should be Array<number | null> HOT 1
- Uncatched API Exception in TeamsApi if StatusCode 403 HOT 3
- Request returns empty 429 HOT 1
- Documentation: add missing word in "Unstable Endpoints" section to add clarity
- Expose domain and endpoint list HOT 1
- criticalRecovery and warningRecovery always fail for `createMonitor` HOT 3
- How do you specify an eu server when using the v2.LogsAPI methods? HOT 4
- Intermittent error querying metrics HOT 2
- v1.searchSLO SearchSLOResponse does not match actual API response HOT 2
- FetchError: client socket disconnected before secure TLS connection is established HOT 9
- Log Aggregate API doesn't support Integer facets on group_by expression HOT 5
- How to change the Datadog host? HOT 2
- APIException HTTP-code: 429 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datadog-api-client-typescript.