83. Query: Collect Platform Context
At a large number (hundreds or thousands) of processed datasets (like "SatelliteImage", "AsAppliedDataset", "YieldDataset", "SoilDataset", etc) there is always a demand to understand the status of the processing of every dataset and collect the processing summary. These details are provided using getPlatformContext query.
The common cases:
Trace the processing progress
Collect processing summary and statistics
Observe errors and warnings during processing for further deeper investigation of affected datasets
query CollectPlatformContext {
getPlatformContext(input: {
userUuids: ["<placeholder_of_user_uuid>"],
statuses: [Start, Done, Warning, Error, Ignored],
dateFrom: "2023-05-25T12:49:00.000Z",
dateTo: "2023-05-30T06:35:00.000Z",
}) {
events {
fieldUuid
subFieldUuid
subFieldType
operationId
status
executionDate
messageKey
optional
}
}
}Supported input filters:
dateFromas datetime in ISO 8601 format (ex:"2023-05-25T12:49:00.000Z")dateToas datetime in ISO 8601 format (ex:"2023-05-30T06:35:00.000Z")operationIdsas array of the operation identificators (Strings)statusesas array contained values fromContextEventStatusenum with all processing statuses including intermediate, recommended to use the key ones[Start, Done, Warning, Error, Ignored]subFieldTypesas array had values ofTreeNodeEntityenum with all GeoPard entitiessubFieldUuidsas array with UUIDs linked to the selected entities insubFieldTypesuserUuidsas array of "User" UUIDs to search
The output object includes the following attributes:
fieldUuidrepresents the UUID of the associated FieldsubFieldUuiddenotes the UUID of the linked processed dataset (like "SatelliteImage", "AsAppliedDataset", "YieldDataset", "SoilDataset", etc)subFieldTypeas enum linked to theTreeNodeEntityoperationIdas string that holds the identifier of the operation, it remains consistent across all related processing chains, it's advisable to group by this identifier to trace all processing stagesstatusas enum linked toContextEventStatusexecutionDateas string in the ISO 8601 format that indicates the moment of executionmessageKeyas enum linked toContextMessageKeythat describes the outcome of the executionoptionalas string that provides a technical description (if relevant), it is primarily used for debugging and bug reporting
Last updated
Was this helpful?