Skip to content

mF2C/SlaManagementUI

Repository files navigation

SLA Management UI

UI for the mF2C SLA Management component.

Description

The UI has the following main capabilities:

  • create a SLA template;
  • retrieve templates;
  • retrieve agreements and violations of service executions.

The UI allows to create templates, to be used when defining a service. This way, an SLA will be created on each execution of a service.

The guarantees to be set on a template are:

  • availability(%)
  • execution time of an operation

The SLA Management UI is a React application that depends on CIMI to obtain the information about ServiceInstances, Agreements, Violations... The connection to CIMI is done through an Nginx, used both in development and production.

Development

The following steps may be used for development.

  1. Execute npm start.

    The React application is now running on http://localhost:3000.

  2. Execute ./start.sh.

    This starts an Nginx container (configuration in resources/default.conf.dev) that expects the React application running at http://172.17.0.1:3000 and a CIMI server (or an SSH tunnel to it) at http://172.17.0.1:10443.

    NOTE: Check the IP to access the local host from the container, and modify default.conf.dev if needed.

  3. You can now develop locally and see the changes immediately at http://localhost:8000

Production

To build the Docker container:

./build.sh <version>

This executes npm run build and then builds the image mf2c/sla-ui:<version>.

The container is intended to be executed inside the mF2C docker-compose and expects a CIMI server running at https://proxy/api/.

To execute the container in standalone mode:

docker run -p 8000:8000 --add-host proxy:172.17.0.1 -e PROXY=https://proxy:10443/api/ --name slaui mf2c/sla-ui:0.6

This expects the CIMI server is available at the local host in port 10443. The CIMI server URL can be modified using the env var PROXY. The PROXY URL must end with a '/'.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Credits

This project was bootstrapped with Create React App.

About

UI for the mF2C SLA Management component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published