"use strict";
export class AnalyticsLogInfo {
/** @param {{id?:number,dateTime?:string,browser?:string,device?:string,bot?:string,op?:string,userId?:string,userName?:string,apiKey?:string,ip?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {string} */
dateTime;
/** @type {string} */
browser;
/** @type {string} */
device;
/** @type {string} */
bot;
/** @type {string} */
op;
/** @type {string} */
userId;
/** @type {string} */
userName;
/** @type {string} */
apiKey;
/** @type {string} */
ip;
}
export class GetAnalyticsInfoResponse {
/** @param {{months?:string[],result?:AnalyticsLogInfo,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string[]} */
months;
/** @type {AnalyticsLogInfo} */
result;
/** @type {ResponseStatus} */
responseStatus;
}
export class GetAnalyticsInfo {
/** @param {{month?:string,type?:string,op?:string,apiKey?:string,userId?:string,ip?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
month;
/** @type {string} */
type;
/** @type {string} */
op;
/** @type {string} */
apiKey;
/** @type {string} */
userId;
/** @type {string} */
ip;
}
JavaScript GetAnalyticsInfo 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 /jsv/reply/GetAnalyticsInfo HTTP/1.1
Host: test.servicestack.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
month: 0001-01-01,
type: String,
op: String,
apiKey: String,
userId: String,
ip: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
months:
[
String
],
result:
{
id: 0,
dateTime: 0001-01-01,
browser: String,
device: String,
bot: String,
op: String,
userId: String,
userName: String,
apiKey: String,
ip: String
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}