system.kanoa.quality.analysis.getChkItemEventsByRow
Description
Returns Check Sheet item event data for the given parameters with the check items pivoted in each row.Syntax
getChkItemEventsByRow(paramsDict)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes |
|---|---|---|---|
| startDate | dateTime | Required | |
| endDate | datetime | Required | |
| fromDate | dateTime | Can select to only return data between certain times, while still getting aggregate data (min, max) for the entire date range | |
| toDate | dateTime | ||
| chkShtId | int | Required | |
| assetId | int | ||
| assetPath | string | ||
| itemClassPath | string | ||
| itemId | int | ||
| chkShtTypeId | int | ||
| chkItemGroupId | int | ||
| chkItemGroupIdList | list[int] | ||
| chkShtStateIds | list(int) | ||
| enabled | bool | ||
| limit | int | Limit the number of records returned. Default is 1000 |
Code Examples
# Usage example
paramsDict = {'startDate': system.date.parse('2024-01-01 00:00:00'), 'endDate': system.date.now(), 'chkShtId': 123}
data, error = system.kanoa.quality.analysis.getChkItemEventsByRow(paramsDict)
print(data)