Cloud Queues

Use the Cloud Queues feed operations to get information about usage and system events for the Rackspace Cloud Queues service.

Get feed for Queues events

GET /queues/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 Queues event by ID

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

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

Request

The following table shows the header parameters for the request:

NameTypeDescription
ACCEPTAcceptheadertype (Required)

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.

Queue request count usage message, v1

Specifies the usage message for a queue request count, version 1

The following table describes the attribute for the usage message.

Attribute NameDescriptionTypeOptionality
requestCountSpecifies the number of requests. The maximum value is 3, 000,000.unsignedLongRequired

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
       <atom:id> urn:uuid:f53d007a-fc23-11e1-975c-cfa6b29bb814 </atom:id>
       <atom:category term="tid:2888"/>
       <atom:category term="rgn:DFW"/>
       <atom:category term="dc:DFW1"/>
       <atom:category term="cloudqueues.queues.usage"/>
       <atom:category term="type:cloudqueues.queues.usage"/>
       <atom:title type="text"> Cloud Queues </atom:title>
       <atom:content type="application/xml">
              <event xmlns="http://docs.rackspace.com/core/event" xmlns:queues="http://docs.rackspace.com/usage/queues" dataCenter="DFW1" endTime="2013-03-16T11:51:11Z" environment="PROD" id="f53d007a-fc23-11e1-975c-cfa6b29bb814" region="DFW" startTime="2013-03-15T11:51:11Z" tenantId="2888" type="USAGE" version="1">
                     <queues:product requestCount="1000" serviceCode="CloudQueues" version="1"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/queues/events/entries/urn:uuid:f53d007a-fc23-11e1-975c-cfa6b29bb814" rel="self"/>
       <atom:updated> 2013-11-08T19:31:49.248Z </atom:updated>
       <atom:published> 2013-11-08T19:31:49.248Z </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:2888"
                     },
                     {
                            "term": "rgn:DFW"
                     },
                     {
                            "term": "dc:DFW1"
                     },
                     {
                            "term": "cloudqueues.queues.usage"
                     },
                     {
                            "term": "type:cloudqueues.queues.usage"
                     }
              ],
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "dataCenter": "DFW1",
                            "endTime": "2013-03-16T11:51:11Z",
                            "environment": "PROD",
                            "id": "f53d007a-fc23-11e1-975c-cfa6b29bb814",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/queues",
                                   "requestCount": 1000,
                                   "serviceCode": "CloudQueues",
                                   "version": "1"
                            },
                            "region": "DFW",
                            "startTime": "2013-03-15T11:51:11Z",
                            "tenantId": "2888",
                            "type": "USAGE",
                            "version": "1"
                     }
              },
              "id": "urn:uuid:f53d007a-fc23-11e1-975c-cfa6b29bb814",
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/queues\/events\/entries\/urn:uuid:f53d007a-fc23-11e1-975c-cfa6b29bb814",
                            "rel": "self"
                     }
              ],
              "published": "2013-11-08T19:31:49.248Z",
              "title": {
                     "@text": "Cloud Queues",
                     "type": "text"
              },
              "updated": "2013-11-08T19:31:49.248Z"
       }
}

Queue bandwidth usage message, v1

Specifies the usage message for queue bandwidth, version 1

The following table describes the attributes for the usage message.

Attribute NameDescriptionTypeOptionality
bandwidthInPublicSpecifies the amount of inbound public bandwidth, in bytes. The maximum value is 6 TB.unsignedLongRequired
bandwidthInServiceNetSpecifies the amount of inbound bandwidth on Service Net, in bytes. The maximum value is 6 TB.unsignedLongRequired
bandwidthOutPublicSpecifies the amount of public outbound bandwidth, in bytes. The maximum value is 6 TB.unsignedLongRequired
bandwidthOutServiceNetSpecifies the amount of outbound bandwidth on Service Net, in bytes. The maximum value is 6 TB.unsignedLongRequired

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
       <atom:id> urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814 </atom:id>
       <atom:category term="tid:2888"/>
       <atom:category term="rgn:DFW"/>
       <atom:category term="dc:DFW1"/>
       <atom:category term="cloudqueues.bandwidth.usage"/>
       <atom:category term="type:cloudqueues.bandwidth.usage"/>
       <atom:title type="text"> Cloud Queues Bandwidth </atom:title>
       <atom:content type="application/xml">
              <event xmlns="http://docs.rackspace.com/core/event" xmlns:queues="http://docs.rackspace.com/usage/queues/bandwidth" dataCenter="DFW1" endTime="2013-03-16T11:51:11Z" environment="PROD" id="e53d007a-fc23-11e1-975c-cfa6b29bb814" region="DFW" startTime="2013-03-15T11:51:11Z" tenantId="2888" type="USAGE" version="1">
                     <queues:product bandwidthInPublic="1024" bandwidthInServiceNet="256" bandwidthOutPublic="19992" bandwidthOutServiceNet="0" serviceCode="CloudQueues" version="1"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/queues/events/entries/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814" rel="self"/>
       <atom:updated> 2013-11-08T19:28:01.783Z </atom:updated>
       <atom:published> 2013-11-08T19:28:01.783Z </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:2888"
                     },
                     {
                            "term": "rgn:DFW"
                     },
                     {
                            "term": "dc:DFW1"
                     },
                     {
                            "term": "cloudqueues.bandwidth.usage"
                     },
                     {
                            "term": "type:cloudqueues.bandwidth.usage"
                     }
              ],
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "dataCenter": "DFW1",
                            "endTime": "2013-03-16T11:51:11Z",
                            "environment": "PROD",
                            "id": "e53d007a-fc23-11e1-975c-cfa6b29bb814",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/queues\/bandwidth",
                                   "bandwidthInPublic": 1024,
                                   "bandwidthInServiceNet": 256,
                                   "bandwidthOutPublic": 19992,
                                   "bandwidthOutServiceNet": 0,
                                   "serviceCode": "CloudQueues",
                                   "version": "1"
                            },
                            "region": "DFW",
                            "startTime": "2013-03-15T11:51:11Z",
                            "tenantId": "2888",
                            "type": "USAGE",
                            "version": "1"
                     }
              },
              "id": "urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/queues\/events\/entries\/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
                            "rel": "self"
                     }
              ],
              "published": "2013-11-08T19:28:01.783Z",
              "title": {
                     "@text": "Cloud Queues Bandwidth",
                     "type": "text"
              },
              "updated": "2013-11-08T19:28:01.783Z"
       }
}

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.