Hog
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
POST | |
GET | |
GET | |
GET | |
GET | |
GET | |
PATCH |
Create hog functions enable backfills
Path parameters
- idstring
Request parameters
- type
- namestring
- descriptionstring
- enabledboolean
- deletedboolean
- hogstring
- inputs_schemaarray
- inputsobject
- filters
- masking
- mappingsarray
- icon_urlstring
- template_idstring
- execution_orderinteger
- _create_in_folderstring
Example request
POST /api /projects /:project_id /hog_functions /:id /enable_backfillsExample response
Status 200 No response body
Create hog functions enable backfills
Path parameters
- idstring
Request parameters
- type
- namestring
- descriptionstring
- enabledboolean
- deletedboolean
- hogstring
- inputs_schemaarray
- inputsobject
- filters
- masking
- mappingsarray
- icon_urlstring
- template_idstring
- execution_orderinteger
- _create_in_folderstring
Example request
POST /api /projects /:project_id /hog_functions /:id /enable_backfillsExample response
Status 200 No response body
Create hog functions invocations
Required API key scopes
hog_function:writePath parameters
- idstring
Request parameters
- configuration
- globalsobject
- clickhouse_eventobject
- mock_async_functionsbooleanDefault:
true - invocation_idstring
Response
Example request
POST /api /projects /:project_id /hog_functions /:id /invocationsExample response
Status 200
RESPONSE
Create hog functions invocations
Required API key scopes
hog_function:writePath parameters
- idstring
Request parameters
- configuration
- globalsobject
- clickhouse_eventobject
- mock_async_functionsbooleanDefault:
true - invocation_idstring
Response
Example request
POST /api /projects /:project_id /hog_functions /:id /invocationsExample response
Status 200
RESPONSE
Retrieve hog functions logs
Required API key scopes
hog_function:readPath parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /projects /:project_id /hog_functions /:id /logsExample response
Status 200 No response body
Retrieve hog functions logs
Required API key scopes
hog_function:readPath parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /projects /:project_id /hog_functions /:id /logsExample response
Status 200 No response body
Retrieve hog functions metrics
Required API key scopes
hog_function:readPath parameters
- idstring
Query parameters
- afterstringDefault:
-7d - beforestring
- breakdown_bystringDefault:
kindOne of:"name""kind" - instance_idstring
- intervalstringDefault:
dayOne of:"hour""day""week" - kindstring
- namestring
Response
Example request
GET /api /projects /:project_id /hog_functions /:id /metricsExample response
Status 200
RESPONSE
Retrieve hog functions metrics
Required API key scopes
hog_function:readPath parameters
- idstring
Query parameters
- afterstringDefault:
-7d - beforestring
- breakdown_bystringDefault:
kindOne of:"name""kind" - instance_idstring
- intervalstringDefault:
dayOne of:"hour""day""week" - kindstring
- namestring
Response
Example request
GET /api /projects /:project_id /hog_functions /:id /metricsExample response
Status 200
RESPONSE
Retrieve hog functions metrics totals
Required API key scopes
hog_function:readPath parameters
- idstring
Query parameters
- afterstringDefault:
-7d - beforestring
- breakdown_bystringDefault:
kindOne of:"name""kind" - instance_idstring
- intervalstringDefault:
dayOne of:"hour""day""week" - kindstring
- namestring
Response
Example request
GET /api /projects /:project_id /hog_functions /:id /metrics /totalsExample response
Status 200
RESPONSE
Retrieve hog functions metrics totals
Required API key scopes
hog_function:readPath parameters
- idstring
Query parameters
- afterstringDefault:
-7d - beforestring
- breakdown_bystringDefault:
kindOne of:"name""kind" - instance_idstring
- intervalstringDefault:
dayOne of:"hour""day""week" - kindstring
- namestring
Response
Example request
GET /api /projects /:project_id /hog_functions /:id /metrics /totalsExample response
Status 200
RESPONSE
Retrieve hog functions icon
Example request
GET /api /projects /:project_id /hog_functions /iconExample response
Status 200 No response body
Retrieve hog functions icon
Example request
GET /api /projects /:project_id /hog_functions /iconExample response
Status 200 No response body
Retrieve hog functions icons
Example request
GET /api /projects /:project_id /hog_functions /iconsExample response
Status 200 No response body
Retrieve hog functions icons
Example request
GET /api /projects /:project_id /hog_functions /iconsExample response
Status 200 No response body
Update hog functions rearrange
Update the execution order of multiple HogFunctions.
Required API key scopes
hog_function:writeRequest parameters
- ordersobject
Example request
PATCH /api /projects /:project_id /hog_functions /rearrangeExample response
Status 200
RESPONSE
Update hog functions rearrange
Update the execution order of multiple HogFunctions.
Required API key scopes
hog_function:writeRequest parameters
- ordersobject
Example request
PATCH /api /projects /:project_id /hog_functions /rearrangeExample response
Status 200
RESPONSE