Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Files

Latest commit

ed01a04 · Jan 17, 2017

History

History

ns-monitoring-repository

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 9, 2016
Nov 4, 2016
Feb 2, 2016
May 9, 2016
Oct 20, 2016
Feb 2, 2016
Jan 17, 2017
Dec 15, 2016
May 11, 2016
Sep 28, 2016
May 9, 2016
Dec 15, 2016

T-NOVA WP3

Orchestrator NS Monitoring Repository

Requirements

This code has been run on Ruby 2.1.

Gems used

Installation

After you cloned the source from the repository, you can run

bundle install

Which will install all the gems.

Tests

For tests execute

rspec

API Documentation

The API is documented with yardoc and can be built with a rake task:

rake yard

from here you can use the yard server to browse the docs from the source root:

yard server

and they can be viewed from http://localhost:8808/

Run Server

The following shows how to start the API server:

rake start

Prepare Cassandra Keyspace and tables:

Start Cassandra

apache-cassandra-2.1.2/bin/cassandra -f

Load CQL schema

apache-cassandra-2.1.2/bin/cqlsh localhost 9042 -f db/schema.txt

Put data

curl -X POST -d '{"cpu": 50, "mem":"10","packetLoss":"11"}' http://localhost:4014/nsmonitoring/:instance_id