Fetch logged data programmatically in Galileo Observe with step-by-step instructions for seamless integration into automated workflows and analysis tools.
If you want to fetch your logged data and metrics programmatically, you can do so via our Typescript and Python clients or via our REST APIs:
First, npm install @rungalileo/observe
Then add the following to your project:
You can use this with getLoggedData
to retrieve the raw data.
First, npm install @rungalileo/observe
Then add the following to your project:
You can use this with getLoggedData
to retrieve the raw data.
Fetching data via our RESTful APIs is a two-step process: 1 Authentication 2 Fetching
To fetch an authentication token, send a POST
request to /login
with your username
and password
:
Note: access_token
will need to be refreshed every 48 hours for security reasons.
Reach out to us if you don’t know your ‘base_url’. For most users, this is the same as their console URL except with the word ‘console’ replaced by ‘api’ (e.g. http://www.**console**.galileo.myenterprise.com -> http://www.**api**.galileo.myenterprise.com)
Once you have your auth token, you can start making ingestion calls to Galileo Observe.
To log data, you’ll need your project ID. Get your project ID by making a GET request to the /projects
endpoint, or simply copy it from the URL in your browser window. This project ID is static and will never change. You only have to do this once.
To fetch a list of your records, make a POST
the /observe/rows
endpoint:
Additional query params:
include_chains
: False by default.
start_time
/ end_time
: Use to limit your request to a specific time window (e.g. “2018-11-12T09:15:32Z”)
chain_id
: Fetch a specific chain.˝
limit
: Integer. Limit your the search to the n most recent records.
To fetch a list of aggregate metrics bucketed over time, make a POST
request to the /observe/metrics/
endpoint:
Additional query params:
include_chains
: False by default.
start_time
/ end_time
: Use to limit your request to a specific time window (e.g. “2018-11-12 09:15:32”)
Fetch logged data programmatically in Galileo Observe with step-by-step instructions for seamless integration into automated workflows and analysis tools.
If you want to fetch your logged data and metrics programmatically, you can do so via our Typescript and Python clients or via our REST APIs:
First, npm install @rungalileo/observe
Then add the following to your project:
You can use this with getLoggedData
to retrieve the raw data.
First, npm install @rungalileo/observe
Then add the following to your project:
You can use this with getLoggedData
to retrieve the raw data.
Fetching data via our RESTful APIs is a two-step process: 1 Authentication 2 Fetching
To fetch an authentication token, send a POST
request to /login
with your username
and password
:
Note: access_token
will need to be refreshed every 48 hours for security reasons.
Reach out to us if you don’t know your ‘base_url’. For most users, this is the same as their console URL except with the word ‘console’ replaced by ‘api’ (e.g. http://www.**console**.galileo.myenterprise.com -> http://www.**api**.galileo.myenterprise.com)
Once you have your auth token, you can start making ingestion calls to Galileo Observe.
To log data, you’ll need your project ID. Get your project ID by making a GET request to the /projects
endpoint, or simply copy it from the URL in your browser window. This project ID is static and will never change. You only have to do this once.
To fetch a list of your records, make a POST
the /observe/rows
endpoint:
Additional query params:
include_chains
: False by default.
start_time
/ end_time
: Use to limit your request to a specific time window (e.g. “2018-11-12T09:15:32Z”)
chain_id
: Fetch a specific chain.˝
limit
: Integer. Limit your the search to the n most recent records.
To fetch a list of aggregate metrics bucketed over time, make a POST
request to the /observe/metrics/
endpoint:
Additional query params:
include_chains
: False by default.
start_time
/ end_time
: Use to limit your request to a specific time window (e.g. “2018-11-12 09:15:32”)