tree: c2c46223b107b3e6fe182154c18765f8f6a8fba2 [path history] [tgz]
  1. src/
  2. .browserslistrc
  3. .editorconfig
  4. .gitignore
  5. angular.json
  6. karma.conf.js
  7. package.json
  8. README.md
  9. tsconfig.app.json
  10. tsconfig.json
  11. tsconfig.spec.json
scripts/monitoring/README.md

Frontend for monitoring tool of federated infrastrucuture

A frontend application, used to visualize and manipulate the backend application functionality of the monitoring tool

Backend requirements

A running instance of the backend application is required for the frontend to function, default port of the backend is 8080.

Install & Run

To install and run the app do the following:

  cd scripts/monitoring
  npm install
  npm run start

To view the app Navigate to http://localhost:4200/.

Running Tests

To run tests, run the following command:

  npm run test

API Reference

Get all registered workers

  GET /workers

Get specific worker

  GET /workers/${id}
ParameterTypeDescription
idintRequired. Id of the worker to fetch

Register worker for monitoring

  POST /workers
Request body in JSON format:
Body parameterTypeDescription
namestringRequired. Name of the worker to register
addressstringRequired. Address of the worker to register
Example:
{
  "name": "Worker 1",
  "address": "localhost:8001"
}

Edit registered worker

  PUT /workers/${id}
ParameterTypeDescription
idintRequired. Id of the worker to edit
Request body in JSON format:
Body parameterTypeDescription
namestringChanged name of the worker
addressstringChanged address of the worker
Example:
{
  "name": "Worker 42",
  "address": "localhost:8005"
}

Deregister specific worker

  DELETE /workers/${id}
ParameterTypeDescription
idintRequired. Id of the worker to deregister

Get all registered coordinators

  GET /coordinators

Get specific coordinator

  GET /coordinators/${id}
ParameterTypeDescription
idintRequired. Id of the coordinator to fetch

Register coordinator for monitoring

  POST /coordinators
Request body in JSON format:
Body parameterTypeDescription
namestringRequired. Name of the coordinator to register
addressstringRequired. Address of the coordinator to register
Example:
{
  "name": "Coordinator 1",
  "address": "localhost:8441"
}

Edit registered coordinator

  PUT /coordinators/${id}
ParameterTypeDescription
idintRequired. Id of the coordinator to edit
Request body in JSON format:
Body parameterTypeDescription
namestringChanged name of the coordinator
addressstringChanged address of the coordinator
Example:
{
  "name": "Coordinator 4",
  "address": "localhost:8445"
}

Deregister specific coordinator

  DELETE /coordinators/${id}
ParameterTypeDescription
idintRequired. Id of the coordinator to deregister

License

Apache-2.0