Cloud Big Data

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

Get feed for Big Data events

GET /bigdata/events/{tid}

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

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.

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

This operation does not return a response body.

Get Big Data event by ID

GET /bigdata/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.

Big Data cluster usage event message event, v1

Specifies the usage message for a big data cluster, version 1

The following table describes attributes for the event message.

Attribute NameDescriptionTypeOptionality
flavorIdSpecifies the flavor Id of the cluster.stringRequired
flavorNameSpecifies the flavor name of the cluster.stringRequired
numberServersInClusterSpecifies the number of data nodes that are in the cluster.unsignedIntRequired
aggregatedClusterDurationSpecifies the sum of the durations of all nodes of the cluster, in seconds.unsignedLongOptional
bandwidthInSpecifies the inbound bandwidth, in bytes.unsignedLongRequired
bandwidthOutSpecifies the outband bandwidth, in bytes.unsignedLongRequired

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema">
       <atom:id> urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814 </atom:id>
       <atom:category term="tid:1234"/>
       <atom:category term="rgn:DFW"/>
       <atom:category term="dc:DFW1"/>
       <atom:category term="rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"/>
       <atom:category term="bigdata.bigdata.hadoop_hdp1_1.usage"/>
       <atom:category term="type:bigdata.bigdata.hadoop_hdp1_1.usage"/>
       <atom:title> BigData </atom:title>
       <atom:content type="application/xml">
              <event xmlns="http://docs.rackspace.com/core/event" xmlns:sample="http://docs.rackspace.com/usage/bigdata" id="e53d007a-fc23-11e1-975c-cfa6b29bb814" version="2" resourceId="4a2b42f4-6c63-11e1-815b-7fcbcf67f549" tenantId="1234" startTime="2013-03-15T11:51:11Z" endTime="2013-03-16T00:00:00Z" type="USAGE" dataCenter="DFW1" region="DFW">
                     <sample:product aggregatedClusterDuration="43729" serviceCode="BigData" version="1" resourceType="HADOOP_HDP1_1" flavorId="a" flavorName="a" numberServersInCluster="1" bandwidthIn="0" bandwidthOut="0"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/bigdata/events/entries/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814" rel="self"/>
       <atom:updated> 2013-03-01T19:42:35.507Z </atom:updated>
       <atom:published> 2013-03-01T19:42:35.507 </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:1234"
                     },
                     {
                            "term": "rgn:DFW"
                     },
                     {
                            "term": "dc:DFW1"
                     },
                     {
                            "term": "rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"
                     },
                     {
                            "term": "bigdata.bigdata.hadoop_hdp1_1.usage"
                     },
                     {
                            "term": "type:bigdata.bigdata.hadoop_hdp1_1.usage"
                     }
              ],
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/bigdata\/events\/entries\/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
                            "rel": "self"
                     }
              ],
              "id": "urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
              "title": "BigData",
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "id": "e53d007a-fc23-11e1-975c-cfa6b29bb814",
                            "version": "2",
                            "resourceId": "4a2b42f4-6c63-11e1-815b-7fcbcf67f549",
                            "tenantId": "1234",
                            "startTime": "2013-03-15T11:51:11Z",
                            "endTime": "2013-03-16T00:00:00Z",
                            "type": "USAGE",
                            "dataCenter": "DFW1",
                            "region": "DFW",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/bigdata",
                                   "aggregatedClusterDuration": 43729,
                                   "serviceCode": "BigData",
                                   "version": "1",
                                   "resourceType": "HADOOP_HDP1_1",
                                   "flavorId": "a",
                                   "flavorName": "a",
                                   "numberServersInCluster": 1,
                                   "bandwidthIn": 0,
                                   "bandwidthOut": 0
                            }
                     }
              },
              "updated": "2013-03-01T19:42:35.507Z",
              "published": "2013-03-01T19:42:35.507"
       }
}

Big Data cluster usage event message event, v2

Specifies the usage message for a big data cluster, version 2

Attribute NameDescriptionTypeOptionality
flavorIdSpecifies the flavor Id of the cluster. Allowed Values: hadoop1-2, hadoop1-4, hadoop1-7, hadoop1- 15, hadoop1- 30, hadoop1- 60, onmetal- io1, general1- 1, general1- 2, general1- 4, general1- 8, io1- 120, io1- 15, io1- 30, io1- 60, io1- 90stringRequired
flavorNameSpecifies the flavor name of the cluster.stringRequired
numberServersInClusterSpecifies the number of data nodes in cluster.unsignedIntRequired
aggregatedClusterDurationSpecifies the sum of the durations of all nodes of the cluster, in seconds.unsignedLongOptional
bandwidthInSpecifies the inbound bandwidth, in bytes.unsignedLongRequired
bandwidthOutSpecifies the outbound bandwidth, in bytes.unsignedLongRequired

XML Sample

<?xml version="1.0"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema">
       <atom:id> urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814 </atom:id>
       <atom:category term="tid:1234"/>
       <atom:category term="rgn:DFW"/>
       <atom:category term="dc:DFW1"/>
       <atom:category term="rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"/>
       <atom:category term="bigdata.bigdata.hadoop_hdp2_1.usage"/>
       <atom:category term="type:bigdata.bigdata.hadoop_hdp2_1.usage"/>
       <atom:title> BigData </atom:title>
       <atom:content type="application/xml">
              <event xmlns="http://docs.rackspace.com/core/event" xmlns:sample="http://docs.rackspace.com/usage/bigdata" id="e53d007a-fc23-11e1-975c-cfa6b29bb814" version="2" resourceId="4a2b42f4-6c63-11e1-815b-7fcbcf67f549" tenantId="1234" startTime="2013-03-15T11:51:11Z" endTime="2013-03-16T00:00:00Z" type="USAGE" dataCenter="DFW1" region="DFW">
                     <sample:product aggregatedClusterDuration="43729" serviceCode="BigData" version="2" resourceType="HADOOP_HDP2_1" flavorId="hadoop1-7" flavorName="a" numberServersInCluster="1" bandwidthIn="0" bandwidthOut="0"/>
              </event>
       </atom:content>
       <atom:link href="https://ord.feeds.api.rackspacecloud.com/bigdata/events/entries/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814" rel="self"/>
       <atom:updated> 2013-03-01T19:42:35.507Z </atom:updated>
       <atom:published> 2013-03-01T19:42:35.507 </atom:published>
</atom:entry>

JSON Sample

{
       "entry": {
              "@type": "http:\/\/www.w3.org\/2005\/Atom",
              "category": [
                     {
                            "term": "tid:1234"
                     },
                     {
                            "term": "rgn:DFW"
                     },
                     {
                            "term": "dc:DFW1"
                     },
                     {
                            "term": "rid:4a2b42f4-6c63-11e1-815b-7fcbcf67f549"
                     },
                     {
                            "term": "bigdata.bigdata.hadoop_hdp2_1.usage"
                     },
                     {
                            "term": "type:bigdata.bigdata.hadoop_hdp2_1.usage"
                     }
              ],
              "link": [
                     {
                            "href": "https:\/\/ord.feeds.api.rackspacecloud.com\/bigdata\/events\/entries\/urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
                            "rel": "self"
                     }
              ],
              "id": "urn:uuid:e53d007a-fc23-11e1-975c-cfa6b29bb814",
              "title": "BigData",
              "content": {
                     "event": {
                            "@type": "http:\/\/docs.rackspace.com\/core\/event",
                            "id": "e53d007a-fc23-11e1-975c-cfa6b29bb814",
                            "version": "2",
                            "resourceId": "4a2b42f4-6c63-11e1-815b-7fcbcf67f549",
                            "tenantId": "1234",
                            "startTime": "2013-03-15T11:51:11Z",
                            "endTime": "2013-03-16T00:00:00Z",
                            "type": "USAGE",
                            "dataCenter": "DFW1",
                            "region": "DFW",
                            "product": {
                                   "@type": "http:\/\/docs.rackspace.com\/usage\/bigdata",
                                   "aggregatedClusterDuration": 43729,
                                   "serviceCode": "BigData",
                                   "version": "2",
                                   "resourceType": "HADOOP_HDP2_1",
                                   "flavorId": "hadoop1-7",
                                   "flavorName": "a",
                                   "numberServersInCluster": 1,
                                   "bandwidthIn": 0,
                                   "bandwidthOut": 0
                            }
                     }
              },
              "updated": "2013-03-01T19:42:35.507Z",
              "published": "2013-03-01T19:42:35.507"
       }
}

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.