# MonitorringMessageController Resource

### POST /user/v1.0/monitoring_message/

Security Roles Allowed
  ADMIN, USER

Request Body
media type | data type
--- | ---
application/json | MonitorringMessage (JSON)
application/json | MonitorringMessage (JSON)

Response Codes
code | condition
--- | ---
401 | Bad credentials

Response Body
media type | data type
--- | ---
application/json | string (JSON)
application/json | string (JSON)
application/xml | string (XML)

#### Example

##### Request

    POST /user/v1.0/monitoring_message/
    Content-Type: application/json
    Accept: application/json

    {
      "metricMame" : "cpuTotal",
      "subid" : "1ccba0cc92174ce788695cfc0a027b57",
      "value" : 91.0500021021063,
      "messageType" : "critical",
      "date" : "2017-08-25",
      "time" : "11:30:00",
      "owner" : "user1",
      "id" : "58e3946e0fb4f562d84ba1ad",
      "timestamp" : 1499793079011
    }

##### Response

    HTTP/1.1 201 Looks Good
    Content-Type: application/json

    ...

### GET /user/v1.0/monitoring_message/ids

Security Roles Allowed
  ADMIN, USER

Response Codes
code | condition
--- | ---
401 | Bad credentials

Response Body
media type | data type
--- | ---
application/json | array of string (JSON)
application/json | array of string (JSON)
application/xml | list of string (XML)

#### Example

##### Request

    GET /user/v1.0/monitoring_message/ids
    Accept: application/json

##### Response

    HTTP/1.1 200 Looks Good
    Content-Type: application/json

    ...

### GET /user/v1.0/monitoring_message/{id}

Security Roles Allowed
  ADMIN, USER

Request Parameters
name | type | description | constraints
--- | --- | --- | ---
id | path |  | required

Response Codes
code | condition
--- | ---
401 | Bad credentials

Response Body
media type | data type
--- | ---
application/json | MonitorringMessage (JSON)
application/json | MonitorringMessage (JSON)
application/xml | monitorringMessage (XML)

#### Example

##### Request

    GET /user/v1.0/monitoring_message/{id}
    Accept: application/json

##### Response

    HTTP/1.1 200 Looks Good
    Content-Type: application/json

    {
      "metricMame" : "cpuTotal",
      "subid" : "1ccba0cc92174ce788695cfc0a027b57",
      "value" : 91.0500021021063,
      "messageType" : "critical",
      "date" : "2017-08-25",
      "time" : "11:30:00",
      "owner" : "user1",
      "id" : "58e3946e0fb4f562d84ba1ad",
      "timestamp" : 1499793079011
    }