Rackspace Monitoring

Use the Rackspace Monitoring feed operations to get information about usage fields for the Rackspace Cloud Monitoring service.

Get feed for Monitoring events

GET /monitoring/events/{tid}

This operation obtains the most recent events for this product's feed.

Request

The following table shows the header parameters for the request:

NameTypeDescription
ACCEPTAcceptheadertype (Required)Specifies the type of Accept header to be used in the request.

The following table shows the URI parameters for the request:

NameTypeDescription
{tid}StringSpecifies the tenant Id.

The following table shows the query parameters for the request:

NameTypeDescription
markerAnyuri (Optional)Specifies the entry from which the feed is read. If no value is specified, forward is used by default.
limitInt (Optional)Specifies the number of entries to return. By default the limit is set to 25. The minimum limit is 1 and the maximum limit is 1,000.
directionString (Optional)Valid values for this parameter are either backward or forward.

This operation does not accept a request body.

Response

The following table shows the possible response codes for this
operation.

Response CodeNameDescription
200OKThe request succeeded.
400Bad RequestThe request is missing one or more elements, or the values of some elements are invalid.
401UnauthorizedAuthentication failed, or the user does not have permissions for a requested operation.
404Not FoundThe requested resource was not found.
429Rate LimitedToo many requests. Wait and retry.
500Internal Server ErrorThe server encountered an unexpected condition which prevented it from fulfilling the request.
503Service UnavailableService is not available. Try again later.

Get Monitoring event by ID

GET /monitoring/events/{tid}/entries/{id}

This http request fetches one particular event whose ID is listed in the
URI.

Request

The following table shows the URI parameters for the request:

NameTypeDescription
{tid}StringSpecifies the tenant Id.
{id}Anyuri<urn:uuid:676f3860-447c-> 40a3-8f61-9791819cc82f

This operation does not accept a request body.

Message samples

The following examples show the XML and JSON messages for each event
message type.

Usage fields event message, v1

Specifies the usage fields that are specific to MaaS, version 1

The following table describes attributes for the event message.

Attribute NameDescriptionTypeOptionality
monitoringZonesSpeciifes the number of monitoring zones.intRequired
checkTypeSpecifies the type of check that is being performed.stringOptional

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.rackspace.com/core/event" xmlns:maas="http://docs.rackspace.com/usage/maas">
       <atom:id> urn:uuid:b2869958-a020-11e1-b15c-a38f4c3d83a9 </atom:id>
       <atom:category term="tid:7777"/>
       <atom:category term="rgn:GLOBAL"/>
       <atom:category term="dc:GLOBAL"/>
       <atom:category term="rid:chAAAA"/>
       <atom:category term="cloudmonitoring.maas.check.usage"/>
       <atom:category term="type:cloudmonitoring.maas.check.usage"/>
       <atom:title type="text"> MaaSEvent </atom:title>
       <atom:content type="application/xml">
              <event dataCenter="GLOBAL" endTime="2012-04-30T03:27:36Z" environment="PROD" id="b2869958-a020-11e1-b15c-a38f4c3d83a9" region="GLOBAL" resourceId="chAAAA" startTime="2012-04-30T03:27:35Z" tenantId="7777" type="USAGE" version="1">
                     <maas:product checkType="remote.http" monitoringZones="3" resourceType="CHECK" serviceCode="CloudMonitoring" version="1"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/monitoring/events/entries/urn:uuid:b2869958-a020-11e1-b15c-a38f4c3d83a9" rel="self"/>
       <atom:updated> 2013-02-28T14:21:45.604Z </atom:updated>
       <atom:published> 2013-02-28T14:21:45.604Z </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:7777"
                     },
                     {
                            "term": "rgn:GLOBAL"
                     },
                     {
                            "term": "dc:GLOBAL"
                     },
                     {
                            "term": "rid:chAAAA"
                     },
                     {
                            "term": "cloudmonitoring.maas.check.usage"
                     },
                     {
                            "term": "type:cloudmonitoring.maas.check.usage"
                     }
              ],
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "dataCenter": "GLOBAL",
                            "endTime": "2012-04-30T03:27:36Z",
                            "environment": "PROD",
                            "id": "b2869958-a020-11e1-b15c-a38f4c3d83a9",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/maas",
                                   "checkType": "remote.http",
                                   "monitoringZones": 3,
                                   "resourceType": "CHECK",
                                   "serviceCode": "CloudMonitoring",
                                   "version": "1"
                            },
                            "region": "GLOBAL",
                            "resourceId": "chAAAA",
                            "startTime": "2012-04-30T03:27:35Z",
                            "tenantId": "7777",
                            "type": "USAGE",
                            "version": "1"
                     }
              },
              "id": "urn:uuid:b2869958-a020-11e1-b15c-a38f4c3d83a9",
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/monitoring\/events\/entries\/urn:uuid:b2869958-a020-11e1-b15c-a38f4c3d83a9",
                            "rel": "self"
                     }
              ],
              "published": "2013-02-28T14:21:45.604Z",
              "title": {
                     "@text": "MaaSEvent",
                     "type": "text"
              },
              "updated": "2013-02-28T14:21:45.604Z"
       }
}

Usage fields event message, v2

Specifies the MaaS-specific usage fields, version 2.

The following table describes attributes for the event message.

Attribute NameDescriptionTypeOptionality
monitoringZonesSpecifies the number of monitoring zones.intRequired
checkTypeSpecifies the type of check that is being performed.stringOptional
productSpecifies the product that the check is intended to be used for. Allowed Values: CLOUD_DATABASE, CLOUD_SERVERNameRequired
productInstanceIdSpecifies the instanceId of the product that the check is intended to be used for.UUIDRequired

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.rackspace.com/core/event" xmlns:maas="http://docs.rackspace.com/usage/maas">
       <atom:id> urn:uuid:a2869958-a020-11e1-b15c-a38f4c3d83a9 </atom:id>
       <atom:category term="tid:7777"/>
       <atom:category term="rgn:GLOBAL"/>
       <atom:category term="dc:GLOBAL"/>
       <atom:category term="rid:chAAAA"/>
       <atom:category term="cloudmonitoring.maas.check.usage"/>
       <atom:category term="type:cloudmonitoring.maas.check.usage"/>
       <atom:title type="text"> MaaSEvent </atom:title>
       <atom:content type="application/xml">
              <event dataCenter="GLOBAL" endTime="2012-04-30T03:27:36Z" environment="PROD" id="a2869958-a020-11e1-b15c-a38f4c3d83a9" region="GLOBAL" resourceId="chAAAA" startTime="2012-04-30T03:27:35Z" tenantId="7777" type="USAGE" version="1">
                     <maas:product checkType="remote.http" monitoringZones="3" product="CLOUD_DATABASE" productInstanceId="4a2b42f4-6c63-11e1-815b-7fcbcf67f549" resourceType="CHECK" serviceCode="CloudMonitoring" version="2"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/monitoring/events/entries/urn:uuid:a2869958-a020-11e1-b15c-a38f4c3d83a9" rel="self"/>
       <atom:updated> 2014-03-03T16:59:13.958Z </atom:updated>
       <atom:published> 2014-03-03T16:59:13.958Z </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:7777"
                     },
                     {
                            "term": "rgn:GLOBAL"
                     },
                     {
                            "term": "dc:GLOBAL"
                     },
                     {
                            "term": "rid:chAAAA"
                     },
                     {
                            "term": "cloudmonitoring.maas.check.usage"
                     },
                     {
                            "term": "type:cloudmonitoring.maas.check.usage"
                     }
              ],
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "dataCenter": "GLOBAL",
                            "endTime": "2012-04-30T03:27:36Z",
                            "environment": "PROD",
                            "id": "a2869958-a020-11e1-b15c-a38f4c3d83a9",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/maas",
                                   "checkType": "remote.http",
                                   "monitoringZones": 3,
                                   "product": "CLOUD_DATABASE",
                                   "productInstanceId": "4a2b42f4-6c63-11e1-815b-7fcbcf67f549",
                                   "resourceType": "CHECK",
                                   "serviceCode": "CloudMonitoring",
                                   "version": "2"
                            },
                            "region": "GLOBAL",
                            "resourceId": "chAAAA",
                            "startTime": "2012-04-30T03:27:35Z",
                            "tenantId": "7777",
                            "type": "USAGE",
                            "version": "1"
                     }
              },
              "id": "urn:uuid:a2869958-a020-11e1-b15c-a38f4c3d83a9",
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/monitoring\/events\/entries\/urn:uuid:a2869958-a020-11e1-b15c-a38f4c3d83a9",
                            "rel": "self"
                     }
              ],
              "published": "2014-03-03T16:59:13.958Z",
              "title": {
                     "@text": "MaaSEvent",
                     "type": "text"
              },
              "updated": "2014-03-03T16:59:13.958Z"
       }
}

Response

The following table shows the possible response codes for this
operation.

Response CodeNameDescription
200OKThe request completed successfully
400Bad RequestThe request is missing one or more elements, or the values of some elements are invalid.
401UnauthorizedAuthentication failed, or the user does not have permissions for a requested operation.
429Rate LimitedToo many requests. Wait and retry.
500Internal Server ErrorThe server encountered an unexpected condition which prevented it from fulfilling the request.
503Service UnavailableService is not available. Try again later.