# Gestation visits
Gestation visits resources represent the state of gestation pens activity for a 15-minutes span at a given date.
Mark vs Span
The time_index value ranges from 0 to 95 representing each 15-minutes steps of a 24 hours day (ex: 0 is 00:00, 1 is 00:15, 37 is 09:15, 95 is 23:45).
A time_index mark means the data was generated at this point in time.
A time_index span means the data was generated for the 15-minutes period preceding this point in time.
# Endpoint
https://api.gestal.cloud/integration/ges-visits/:ges-visit_id
# Parameters
Basic parameters and queries are supported.
# The gestation visits object
In addition to the common request attributes, the following attributes define the object.
| Attribute | Type | Description |
|---|---|---|
visits_at | date | Date at which the data was generated. |
time_index | integer | 15-minutes span for which the data was generated. |
meals_visits | integer | Number of visits where feed was distributed. |
fast_visits | integer | Number of visits where feed was not distributed. |
total_qty | integer | Total quantity of feed distributed. |
# Example Response
{
"data": [
{
"cloud_id": "ges_visit_Guk13lZnBC86p5oiSQe8A9Ra3dnO",
"visits_at": "2019-05-23",
"time_index": 14,
"meals_visits": 100,
"fast_visits": 0,
"total_qty": 1257,
"created_at": "2019-05-23T14:04:13.642Z",
"updated_at": "2019-05-23T14:04:13.642Z"
}
],
"meta": {
"total": 1,
"page_total": 1,
"pages": 1,
"per_page": 100,
"current_page": 1,
"next_page": false,
"previous_page": false,
"first_page": true,
"last_page": true,
"out_of_range": false
}
}