Comments (1)
The code would look like this:
RequestBody body = RequestBody.create(MediaType.parse("Application/json"), grafanaRawDashboard);
Response<DashboardCreationResponse> response = service.postRawDashboard(apiKey, body).execute();
The benefit from using this approach is that I don't have to write POJOs for every dashboard part (I'm not sure they're all implemented in the models/
) and it's way easier for big dashboards I just copy and paste.
So my question is do you like this idea, would it be merged if I make a PR?
from grafana-api-java-client.
Related Issues (13)
- The ObjectMapper used by GrafanaClient should enable ACCEPT_SINGLE_VALUE_AS_ARRAY
- Use a common base class for all model classes that provides a way to transparently preserve unrecognized fields (via @JsonAnySetter/@JsonAnyGetter)
- Provide additional model classes that are currently missing (e.g. annotations, panel links, series overrides, etc.) HOT 1
- Release 1.0.4 to nexus HOT 1
- Support additional Grafana APIs
- Misleading method argument names
- Target HOT 1
- Can this library help us to get dashboard data from grafana? HOT 1
- Not support post/put alert rule and Contact points、 Mute timings?
- Support influxdb HOT 1
- Datasources support HOT 2
- Use private access for model member fields
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 grafana-api-java-client.