def get_unfiltered_page(sdk_client, fields, start_index, stream):
service_name = GENERIC_ENDPOINT_MAPPINGS[stream]['service_name']
service_caller = sdk_client.GetService(service_name, version=VERSION)
selector = {
'fields': fields,
'paging': {
'startIndex': str(start_index),
'numberResults': str(PAGE_SIZE)
}
}
with metrics.http_request_timer(stream):
LOGGER.info("Request %s %s from start_index %s for customer %s",
PAGE_SIZE,
stream,
start_index,
sdk_client.client_customer_id)
page = attempt_get_from_service(service_caller, selector)
return page
评论列表
文章目录