hiloop
A client library for accessinghiloop.api
Contains methods for accessing the APIhiloop.api.identity_service
Contains endpoint functions for accessing the APIhiloop.api.identity_service.identity_service_who_am_i
sync_detailed
errors.UnexpectedStatus- If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException- If the request takes longer than Client.timeout.
sync
errors.UnexpectedStatus- If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException- If the request takes longer than Client.timeout.
asyncio_detailed
errors.UnexpectedStatus- If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException- If the request takes longer than Client.timeout.
asyncio
errors.UnexpectedStatus- If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException- If the request takes longer than Client.timeout.
hiloop.api.telemetry_query_service
Contains endpoint functions for accessing the APIhiloop.api.telemetry_query_service.telemetry_query_service_query
sync_detailed
errors.UnexpectedStatus- If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException- If the request takes longer than Client.timeout.
sync
errors.UnexpectedStatus- If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException- If the request takes longer than Client.timeout.
asyncio_detailed
errors.UnexpectedStatus- If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException- If the request takes longer than Client.timeout.
asyncio
errors.UnexpectedStatus- If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException- If the request takes longer than Client.timeout.
hiloop.client
Client Objects
base_url: The base URL for the API, all requests are made to a relative path to this URL
cookies: A dictionary of cookies to be sent with every request
headers: A dictionary of headers to be sent with every request
timeout: The maximum amount of a time a request can take. API functions will raise
httpx.TimeoutException if this is exceeded.
verify_ssl: Whether or not to verify the SSL certificate of the API server. This should be True in production,
but can be set to False for testing purposes.
follow_redirects: Whether or not to follow redirects. Default value is False.
httpx_args: A dictionary of additional arguments to be passed to the httpx.Client and httpx.AsyncClient constructor.
Attributes:
raise_on_unexpected_status- Whether or not to raise an errors.UnexpectedStatus if the API returns a status code that was not documented in the source OpenAPI document. Can also be provided as a keyword argument to the constructor.
with_headers
with_cookies
with_timeout
set_httpx_client
get_httpx_client
__enter__
__exit__
set_async_httpx_client
get_async_httpx_client
__aenter__
__aexit__
AuthenticatedClient Objects
base_url: The base URL for the API, all requests are made to a relative path to this URL
cookies: A dictionary of cookies to be sent with every request
headers: A dictionary of headers to be sent with every request
timeout: The maximum amount of a time a request can take. API functions will raise
httpx.TimeoutException if this is exceeded.
verify_ssl: Whether or not to verify the SSL certificate of the API server. This should be True in production,
but can be set to False for testing purposes.
follow_redirects: Whether or not to follow redirects. Default value is False.
httpx_args: A dictionary of additional arguments to be passed to the httpx.Client and httpx.AsyncClient constructor.
Attributes:
raise_on_unexpected_status- Whether or not to raise an errors.UnexpectedStatus if the API returns a status code that was not documented in the source OpenAPI document. Can also be provided as a keyword argument to the constructor.token- The token to use for authenticationprefix- The prefix to use for the Authorization headerauth_header_name- The name of the Authorization header
with_headers
with_cookies
with_timeout
set_httpx_client
get_httpx_client
__enter__
__exit__
set_async_httpx_client
get_async_httpx_client
__aenter__
__aexit__
hiloop.errors
Contains shared errors types that can be raised from API functionsUnexpectedStatus Objects
hiloop.models
Contains all the data models used in inputs/outputshiloop.models.attribute_value
AttributeValue Objects
hiloop.models.calculation
Calculation Objects
columnstr | Unset - The column to aggregate. Required for every op except COUNT.
hiloop.models.calculation_op
hiloop.models.filter_
Filter Objects
valueAttributeValue | Unset - A typed scalar attribute value (mirrors the Event v1 narrow value model).
hiloop.models.filter_op
hiloop.models.identity
Identity Objects
org_idstr | Unset - x-hiloop-org-id — the organization the caller acts in.tenant_idstr | Unset - x-hiloop-tenant-id — the tenant the caller acts in (drives app.tenant_id / RLS downstream).user_idstr | Unset - x-hiloop-user-id — the user, when the credential is user-scoped; empty for service keys.auth_methodstr | Unset - x-hiloop-auth-method — how the caller authenticated (e.g. “api_key”, “session”).scopestr | Unset - x-hiloop-scope — the granted scope, when present.
hiloop.models.order
Order Objects
hiloop.models.query_request
QueryRequest Objects
specQuerySpec | Unset - A structured, server-validated query. The set of addressable columns is fixed by the canonical event schema; unknown columns are rejected.
hiloop.models.query_response
QueryResponse Objects
hiloop.models.query_spec
QuerySpec Objects
run_idstr | Unset - The run (session) to query. Required.fork_pathstr | Unset - Subtree anchor: the fork-node path to scope to. Empty means the whole run.calculationslist[Calculation] | Unset - Aggregations to compute. Empty means return matching rows (subject tolimit).breakdownslist[str] | Unset - Group-by columns for the calculations.filterslist[Filter] | Unset - Conjunctive (AND-ed) typed predicates.time_rangeTimeRange | Unset - Inclusive wall-clock window in nanoseconds (matches CanonicalEvent.ts_wall_ns). orders (list[Order] | Unset):limitint | Unset - Row cap; clamped server-side to a maximum.
hiloop.models.row
Row Objects
hiloop.models.row_columns
RowColumns Objects
hiloop.models.time_range
TimeRange Objects
hiloop.models.who_am_i_response
WhoAmIResponse Objects
identityIdentity | Unset - The caller identity, as resolved by the authz enforcement point and stamped onto the request as x-hiloop-* headers. The hiloop API edge trusts these headers; it does not re-authenticate.