spotfiresoftware / spotfire-wrapper

An Angular component packaged as custom elements that defined a new HTML element to display a Spotfire dashboard in a framework-agnostic way
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Feature/spotfire server monitor #74

Closed Gerromie closed 4 years ago

Gerromie commented 4 years ago

Story

The TIBCO Spotfire Server has an end point that responds to GET requests for server status. Nominally, this will return an HttpStatus.OK and "RUNNING" when the server is fully operational. In other circumstances, it may return other indicators. This API may be used to give a developer an indication of the server's availability at the moment or over time. It could also give an end user an indication that the backend services are not reachable.

Ideally, this may be built upon in this branch or in future work to detect maintenance notices from the server or report additional information when the server is not fully operational.

Changes

  1. Created a spotfire-server-service that periodically polls the end point to gather status
  2. Added a div to the demo to display the result

Tests

  1. In Chrome, determined that troubles pulling the end point due to CORS blocking the request were handled and displayed with an informational message.
  2. In Chrome, with web security disabled, witnessed a good connection to the end point. Successful status was indicated.

Notes

  1. If desired, this could be considered a work in progress and more enhancements may be added.
  2. The version value should be changed considering the other open pull requests that may be merged to master before this.