Time Series Endpoint¶
Returns a time series of data restricted by the query parameters passed in the POST
<!-- POST the request body to this endpoint -->
https://uslicer.iponweb.com/API/v2/time_series
Request Fields¶
Field |
Description |
---|---|
granularity |
A string, specifying the time granularity to use. Takes the following values,
|
limit |
(optional) The maximum number of returned rows. Possible values: any
integer in the range from 1 to 10,000. The default value is |
split_by |
An array of key values from those set in the |
start_date |
Sets the start of the date range from which to gather data. Supported formats:
|
end_date |
Sets the end of the date range from which to gather data. Supported formats:
|
timezone |
(optional): Time zone UTC offset in hours, where N can be any integer in
the range of |
filters |
(optional) An array of filters, each filter is built using the following format:
|
chart_lines |
(Required) An array of key field values for which Chart plots are required.
Can contain the special value of If the split_by POST argument contains several key fields, the values of
these key fields should be separated by the START OF TEXT character with
code 2, which has different representations in different systems,
like
|
Response Fields¶
Field |
Description |
---|---|
status |
Returns the status of the request,
|
reason |
Returns the status of the request, |
mappings |
This section contains optional mappings for requested chart lines. |
rows |
An array of objects, defining the data returned using the |
Request Example¶
{
"slicer_name":"",
"project_name":"",
"timezone":1,
"token":"token",
"split_by":[
"bid_context_wrapper.demand.campaign_id",
"bid_context_wrapper.supply.site_domain"
],
"start_date":"2019-10-15",
"end_date":"2019-10-28",
"granularity":"day",
"chart_lines":[
"\u0002bid_context_wrapper.demand.campaign_id",
"\u0002bid_context_wrapper.supply.site_domain",
"__total__"
],
"filters":[
{
"name":"bid_context_wrapper.demand.campaign_id",
"value":[
"3"
],
"match":"contains",
"case_insensitive":1
},
{
"name":"bid_context_wrapper.supply.site_domain",
"value":[
"thesauraus.com"
],
"match":"contains",
"case_insensitive":1
}
],
"data_field":"imps"
}
Response Example¶
{
"mappings": {
"bid_context_wrapper.demand.campaign_id": {},
"bid_context_wrapper.supply.site_domain": {
"bid_context_wrapper.demand.campaign_id": null,
"bid_context_wrapper.supply.site_domain": null
}
},
"rows": [
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-15",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-16",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-17",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-18",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-19",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-20",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-21",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-22",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-23",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-24",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-25",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-26",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-27",
"__total__": 0
},
{
"\u0002bid_context_wrapper.demand.campaign_id": 0,
"\u0002bid_context_wrapper.supply.site_domain": 0,
"__time__": "2019-10-28",
"__total__": 0
}
],
"status": "success"
}