Get custom log distinct values

GET/projects/{projectId}/customLogs/{logCollectionName}/valueList/{fieldName}

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

Retrieves a list of distinct values for a specified field across Log Entries.

Authentication

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

Must contain a project API key.

Path parameters

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
logCollectionNamestringYesThe name of the Log Collection.
fieldNamestringYesThe name of the field to find distinct values.

Query parameters

NameTypeRequiredConstraintsDescription
beginstringYesThe begin time of the search range. The format follows RFC3339.
endstringYesThe end time of the search range. The format follows RFC3339.
fieldsFilterstringNoA filter expression wrapped in a conjunction — either AND() or OR() — containing comma-separated conditions.
searchKeysstringYesOne or more search keys used to filter the result. Multiple search keys can be delimited with a comma.

Responses

200 Successfully retrieved distinct values.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
countintegerYesThe total number of unique values returned.
valuesarray<object>YesAn array containing the unique values found for the field. Values can be strings, numbers, or booleans.

Response example

{
  "count": 3,
  "values": [
    "error",
    "warning",
    "info"
  ]
}