knitr::opts_chunk$set(echo = TRUE)

Cortex Analytics API

Python example to launch a long running pipeline step by calling a Cortex API endpoint and passing in the query needed to kick-off the process.

Additionally, subsequent requests are made to check completion of long-running processes.

Cortex API provides endpoints that serve asyncronous analytics capabilities.

import requests
url = 'https://icecube.hpds.network/ocpu/user/bobbyf/library/cortexapi/R/indexcases'

data = "this is a query passed to the cortex API to launch"


r = requests.post(url, data=data)
r.status_code


bfatemi/cortexapi documentation built on Oct. 5, 2019, 7:13 a.m.