-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating Vizceral with your ecosystem #7
Comments
@AnandJayaraman your comment is ambiguous: integrate Vizceral into your existing ecosystem. If your ecosystem is React then you should have no problem. If you want a pure method to import the Vizceral JS into your html then check out the main Vizceral project and read the data format file. |
To elaborate:
|
@AnandJayaraman Thank you for your interest in Vizceral!
|
@jrsquared I could not found any code which using socket.io... beginSampleData () { |
@chennqqi I cannot comment on the specifics of integrating with the backend that you created, but if it is just a GET endpoint at Once you do get the data updating in the client, all you have to do is call |
Just to sheerly check if I can get the animation to update, I am calling the beginSampleData at a short, set interval. Naturally this function calls updateData(), and with each successful load of the json. This works initially and the custom json data loads up in the correct regions and subregions, but when I change the values of some of the metrics with new json information, the animation does not reflect the changes unless I refresh the page. |
@mrmarss I just came across this and was experiencing a similar issue. Assuming we were facing the same issue, my fix was to put the following at the top of updateData (newTraffic) {
// We give new traffic the current time so vizceral always thinks this is the latest data (so the view updates properly)
newTraffic.updated = Date.now();
... // remainder of the implementation
} @jrsquared you may want to clarify this behaviour in the How to Use on the wiki perhaps because this seems to trip people up. :) |
Ah, nice. Yeah, it's a bug if you have to pass in updated. It should only skip an update if updated exists and is not greater than the last time it was updated. If the field is null, it should force update anyways... |
Hi @jrsquared ! First, thanks for share. It is very useful to me. I have a question for you: |
@federicoboga you have to provide your own data.json from a REST API or other service. |
@jrsquared can you explain more clearly your statement:
So, if i understood correctly, there should be a service that can do traffic metering on each microservice, then be capable to render that into a sane format that vizceral can read, is that right? |
@jrsquared Looking forward to getting the feedback as soon as possible. |
Hi
Are there steps/documentation that explains how to integrate Vizceral into your existing ecosystem.
Rgs
Anand
The text was updated successfully, but these errors were encountered: