Billhighway Cloud API

<back to all web services

CacheStatsRq

The following routes are available for this service:
GET/devops/api/caches/{location}/stats
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CacheStatsRq
    {
        public String location = null;
        
        public String getLocation() { return location; }
        public CacheStatsRq setLocation(String value) { this.location = value; return this; }
    }

    public static class CacheStatsRs
    {
        public CacheStatResult Statistics = null;
        
        public CacheStatResult getStatistics() { return Statistics; }
        public CacheStatsRs setStatistics(CacheStatResult value) { this.Statistics = value; return this; }
    }

    public static class CacheStatResult extends CacheResultBase
    {
        public ArrayList<CacheStat> Statistics = null;
        public Boolean IsHit = null;
        
        public ArrayList<CacheStat> getStatistics() { return Statistics; }
        public CacheStatResult setStatistics(ArrayList<CacheStat> value) { this.Statistics = value; return this; }
        public Boolean getIsHit() { return IsHit; }
        public CacheStatResult setIsHit(Boolean value) { this.IsHit = value; return this; }
    }

    public static class CacheResultBase
    {
        public CacheResult Result = null;
        public CacheLocation Location = null;
        public CacheKey Key = null;
        
        public CacheResult getResult() { return Result; }
        public CacheResultBase setResult(CacheResult value) { this.Result = value; return this; }
        public CacheLocation getLocation() { return Location; }
        public CacheResultBase setLocation(CacheLocation value) { this.Location = value; return this; }
        public CacheKey getKey() { return Key; }
        public CacheResultBase setKey(CacheKey value) { this.Key = value; return this; }
    }

    @Flags()
    public static enum CacheResult
    {
        @SerializedName("0") None(0),
        @SerializedName("1") Miss(1),
        @SerializedName("2") Hit(2),
        @SerializedName("4") Put(4),
        @SerializedName("8") Deleted(8),
        @SerializedName("16") Cleared(16),
        @SerializedName("32") Added(32),
        @SerializedName("64") Updated(64),
        @SerializedName("128") Unavailable(128),
        @SerializedName("256") Expired(256);

        private final int value;
        CacheResult(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static enum CacheLocation
    {
        @SerializedName("0") None(0),
        @SerializedName("1") OutOfProcess(1),
        @SerializedName("2") InProcess(2),
        @SerializedName("3") InContext(3);

        private final int value;
        CacheLocation(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class CacheKey
    {
        public String Region = null;
        public String BaseKey = null;
        public String Key = null;
        public Integer ExpirationSeconds = null;
        
        public String getRegion() { return Region; }
        public CacheKey setRegion(String value) { this.Region = value; return this; }
        public String getBaseKey() { return BaseKey; }
        public CacheKey setBaseKey(String value) { this.BaseKey = value; return this; }
        public String getKey() { return Key; }
        public CacheKey setKey(String value) { this.Key = value; return this; }
        public Integer getExpirationSeconds() { return ExpirationSeconds; }
        public CacheKey setExpirationSeconds(Integer value) { this.ExpirationSeconds = value; return this; }
    }

    public static class CacheStat
    {
        public String Name = null;
        public String Value = null;
        
        public String getName() { return Name; }
        public CacheStat setName(String value) { this.Name = value; return this; }
        public String getValue() { return Value; }
        public CacheStat setValue(String value) { this.Value = value; return this; }
    }

}

Java CacheStatsRq DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /devops/api/caches/{location}/stats HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Statistics":{"Statistics":[{"Name":"String","Value":"String"}],"IsHit":false,"Result":0,"Location":0}}