All Verbs | /RestApi/Sitefinity/Analytics/GetCustomMetricValues |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetCustomMetricValuesMessage
{
public ArrayList<String> MetricNames = null;
public Integer LastNDays = null;
public Integer MaxNDays = null;
public UUID SiteId = null;
public ArrayList<String> getMetricNames() { return MetricNames; }
public GetCustomMetricValuesMessage setMetricNames(ArrayList<String> value) { this.MetricNames = value; return this; }
public Integer getLastNDays() { return LastNDays; }
public GetCustomMetricValuesMessage setLastNDays(Integer value) { this.LastNDays = value; return this; }
public Integer getMaxNDays() { return MaxNDays; }
public GetCustomMetricValuesMessage setMaxNDays(Integer value) { this.MaxNDays = value; return this; }
public UUID getSiteId() { return SiteId; }
public GetCustomMetricValuesMessage setSiteId(UUID value) { this.SiteId = value; return this; }
}
public static class GetCustomMetricValuesData
{
public ArrayList<AnalyticsItem> Result = null;
public ArrayList<String> MetricDisplayNames = null;
public ArrayList<AnalyticsItem> getResult() { return Result; }
public GetCustomMetricValuesData setResult(ArrayList<AnalyticsItem> value) { this.Result = value; return this; }
public ArrayList<String> getMetricDisplayNames() { return MetricDisplayNames; }
public GetCustomMetricValuesData setMetricDisplayNames(ArrayList<String> value) { this.MetricDisplayNames = value; return this; }
}
@DataContract
public static class AnalyticsItem
{
@DataMember
public ArrayList<DimensionItem> Dimensions = null;
@DataMember
public ArrayList<MetricItem> Metrics = null;
@DataMember
public Double TotalItems = null;
public ArrayList<DimensionItem> getDimensions() { return Dimensions; }
public AnalyticsItem setDimensions(ArrayList<DimensionItem> value) { this.Dimensions = value; return this; }
public ArrayList<MetricItem> getMetrics() { return Metrics; }
public AnalyticsItem setMetrics(ArrayList<MetricItem> value) { this.Metrics = value; return this; }
public Double getTotalItems() { return TotalItems; }
public AnalyticsItem setTotalItems(Double value) { this.TotalItems = value; return this; }
}
@DataContract
public static class DimensionItem
{
@DataMember
public String Value = null;
@DataMember
public String Name = null;
public String getValue() { return Value; }
public DimensionItem setValue(String value) { this.Value = value; return this; }
public String getName() { return Name; }
public DimensionItem setName(String value) { this.Name = value; return this; }
}
@DataContract
public static class MetricItem
{
@DataMember
public Double Value = null;
public Double getValue() { return Value; }
public MetricItem setValue(Double value) { this.Value = value; return this; }
}
}
Java GetCustomMetricValuesMessage DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RestApi/Sitefinity/Analytics/GetCustomMetricValues HTTP/1.1
Host: www.asg.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
MetricNames:
[
String
],
LastNDays: 0,
MaxNDays: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Result: [ { } ], MetricDisplayNames: [ String ] }