FarmGetStats

From $1

    Description

    This API returns information about bandwidth usage and instances usage for specified farm in specified date.
     

    Changelog

    API version Changes
     2.0.0 Initial version

     

    Request Parameters

    Name Description Required
     FarmID Farm ID

    Example: 123
    Yes
     Date Date (mm-yyyy).

    Example: 06-2009
    No

     

    Response Elements

    Name Description
     Month Month
     Year Year
     Statistics->BandwidthIn Inbound bandwith usage
     Statistics->BandwidthOut Outbound bandwidth usage
     Statistics->BandwidthTotal Total bandwidth usage

     

    Sample Request

    https://api.scalr.net/?Action=FarmGetStats
    &FarmID=126
    &Version=2.0.0
    &KeyID=<Your Scalr API Key ID>
    &TimeStamp=2009-06-19T05%3A13%3A00.000Z
    &Signature=<URLEncode(Base64Encode(Signature))>

     

    Sample Response

    <?xml version="1.0"?>
    <FarmGetStatsResponse>
        <TransactionID>5147c852-308b-4fb8-bb6e-5f67d42dc678</TransactionID>
        <StatisticsSet>
            <Item>
                <Month>6</Month>
                <Year>2009</Year>
                <Statistics>
                    <BandwidthIn>95.69</BandwidthIn>
                    <BandwidthOut>95.29</BandwidthOut>
                    <BandwidthTotal>190</BandwidthTotal>
                </Statistics>
            </Item>
            <Item>
                <Month>5</Month>
                <Year>2009</Year>
                <Statistics>
                    <BandwidthIn>49.01</BandwidthIn>
                    <BandwidthOut>4.17</BandwidthOut>
                    <BandwidthTotal>53</BandwidthTotal>
                </Statistics>
            </Item>
        </StatisticsSet>
    </FarmGetStatsResponse>


     

    Tags: (Edit tags)
    • No tags
     
    Comments (0)
    You must login to post a comment.

     
    Powered by MindTouch Core