<commit_before>FORMAT: 1A
HOST: http://policymanager.testbed.fi-ware.org:8000/v1.0

# Policy Manager
The PMI Scalability API is a RESTful, resource-oriented API accessed via HTTP/HTTPS that uses JSON-based representations for information interchange that provide functionalities to the Policy Manager GE. This document describes the FI-WARE-specific features extension, which allows cloud user to extend the basic functionalities offered by Policy Manager GE in order to cope with elasticity management.

# Group Facts
Notes related resources of the **Facts API**

## Facts Collection [/{tenantid}/servers/{serverid}]
### Create new facts associated to a server [POST]
This operation updates the context related to a specific server, identified with its serverId. The context information contains the description of the CPU, Memory, Disk and/or Network usages. This message follows the NGSI-10 information model but using JSON format and the response has no body.
+ Parameters
    + tenantid (required, text, `d3fdddc6324c439780a6fd963a9fa148`) ... Numeric `id` of the Tenant to perform action with. Has example value.
    + serverid (required, text, `52415800-8b69-11e0-9b19-734f6af67565`) ... Numeric `id` of the 

+ Request (application/json)

        {
            "subscriptionId": "<SubscriptionId>",
            "originator": "http://localhost/test",
            "contextResponses": [
                {
                    "contextElement": {
                        "type": "Server",
                        "isPattern": "false",
                        "id": "<ServerId>",
                        "attributes": [
                            {
                                "name": "CPU",
                                "type": "Probe",
                                "contextValue": "0.75"
                            },
                            {
                                "name": "Memory",
                                "type": "Probe",
                                "contextValue": "0.83"
                            },
                            {
                                "name": "Disk",
                                "type": "Probe",
                                "contextValue": "0.83"
                            },
                            {
                                "name": "Network",
                                "type": "Probe",
                                "contextValue": "0.83"
                            }
                        ]
                    },
                    "statusCode": {
                        "code": "200",
                        "reasonPhrase": "Ok",
                        "details": "a message"
                    }
                }
            ]
        }


+ Response 200 (application/json)

        { "id": 3, "title": "no error." }

# Group Cloto
Notes related resources of the **Cloto API**

## General Operations [/{tenantid}]
### Get the information of the API [GET]
This operation lists the information of the current version of the API.
+ Parameters
    + tenantid (required, text, `d3fdddc6324c439780a6fd963a9fa148`) ... Numeric `id` of the Tenant to perform action with. Has example value.<commit_msg>Transferring blueprint from apiary.io<commit_after>FORMAT: 1A
HOST: http://policymanager.testbed.fi-ware.org:8000/v1.0

# Policy Manager
The PMI Scalability API is a RESTful, resource-oriented API accessed via HTTP/HTTPS that uses JSON-based representations for information interchange that provide functionalities to the Policy Manager GE. This document describes the FI-WARE-specific features extension, which allows cloud user to extend the basic functionalities offered by Policy Manager GE in order to cope with elasticity management.

# Group Facts
Notes related resources of the **Facts API**

## Facts Collection [/{tenantid}/servers/{serverid}]
### Create new facts associated to a server [POST]
This operation updates the context related to a specific server, identified with its serverId. The context information contains the description of the CPU, Memory, Disk and/or Network usages. This message follows the NGSI-10 information model but using JSON format and the response has no body.
+ Parameters
    + tenantid (required, text, `d3fdddc6324c439780a6fd963a9fa148`) ... Numeric `id` of the Tenant to perform action with. Has example value.
    + serverid (required, text, `52415800-8b69-11e0-9b19-734f6af67565`) ... Numeric `id` of the 

+ Request (application/json)

        {
            "contextResponses": [
                {
                    "contextElement": {
                       "attributes": [
                           {
                               "value": "0.12",
                               "name": "usedMemPct",
                               "type": "string"
                           },
                           {
                               "value": "0.14",
                               "name": "cpuLoadPct",
                               "type": "string"
                           },
                           {
                               "value": "0.856240",
                               "name": "freeSpacePct",
                               "type": "string"
                           },
                           {
                               "value": "0.8122",
                               "name": "netLoadPct",
                               "type": "string"
                           }
                       ],
                       "id": "Trento:192.168.3.11",
                       "isPattern": "false",
                       "type": "host"
                   },
                   "statusCode": {
                       "code": "200",
                       "reasonPhrase": "OK"
                   }
               }
            ]
        }


+ Response 200 (application/json)

        { "id": 3, "title": "no error." }

# Group Cloto
Notes related resources of the **Cloto API**

## General Operations [/{tenantid}]
### Get the information of the API [GET]
This operation lists the information of the current version of the API.
+ Parameters
    + tenantid (required, text, `d3fdddc6324c439780a6fd963a9fa148`) ... Numeric `id` of the Tenant to perform action with. Has example value.
{'fraction_non_alphanumeric': 0.09250119407737621, 'fraction_numerical': 0.031682853048877566, 'mean_word_length': 1.3967951163677985, 'pattern_counts': {'":': 49, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7502225', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1480, 'n_words': 503}