Export custom log data

POST/projects/{projectId}/entities/{entityId}/customLogs/{customLogDefinitionId}/export

Base URL: https://api.tinkermode.com

Export the custom log data.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain a user API key of a user with permission to read the entity metrics, a service account token with the same permission, or a project API key.

Path parameters

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
entityIdstringYesEntity ID (unique within project)
customLogDefinitionIdstringYesCustom log definition ID (unique within entity class).

Request body

Content type: application/json

PropertyTypeRequiredConstraintsDescription
beginstringYesThe begin time of the search range.
endstringYesThe end time of the search range.
fileNamestringNoOptional parameter to specify the export CSV file name. If omitted, custom log definition ID will be used in the file name.
includeHeaderbooleanNoIf true, the exported CSV file will start with a header.
timeFormatstringNoOptional parameter to specify the timestamp format in the exported CSV. Use "rfc3339Milli" for RFC3339 format with millisecond precision. If omitted, the default format (YYYY/MM/DD HH:MM:SS) is used.

Responses

200 The URLs for downloading the exported data are returned.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataUrlstringYesread-only (server-generated)URL of file containing the exported data. This URL is usable only if the export is completed successfully.
statusUrlstringYesread-only (server-generated)URL to a JSON file that reports the status of the export. Clients should poll this URL until a file is returned.

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of invalid data or denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.