Get custom log distinct values

GET/projects/{projectId}/entities/{entityId}/customLogs/{customLogDefinitionId}/valueList/{fieldName}

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

Retrieves a list of distinct values for a given field in the entity's custom log.

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 custom log, 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).
fieldNamestringYesThe name of the field to find distinct values.

Query parameters

NameTypeRequiredConstraintsDescription
beginstringYesThe beginning time of the data entries. The format follows RFC3339.
endstringYesThe end time of the data entries. The format follows RFC3339.
fieldsFilterstringNoA filter string starting with a conjunction. Supported conjunctions are AND() and OR(). A conjunction takes a comma-separated condition string like AND(group==="group_1",maxSpeed<5). Each condition string defines a filter for the field value. The left-hand side must be a valid field name. The right-hand side must be a value condition. For example, group==="group_1" matches any records that the group field value exactly matches "group_1". Supported operators are following: | Operator | | | --- | --- | | === | exact match | | == | substring match | | ~== | included in array as exact match. name~==["john"|"jeff"|"jack"] matches one of the three. | | ~= | included in array as substring match. name~=["j"|"e"] matches "john", "jeff", "jack", and "ethan". | | < | less than | | <= | less than or equal to | | > | greater than | | >= | greater than or equal to |

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"
  ]
}