system.kanoa.quality.analysis.getAvgChkItemEventsByRow
Description
Returns Check Sheet item event data averaged across all measurement counts for the given parameters with the check items in each row.Syntax
getAvgChkItemEventsByRow(paramsDict)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes | 
|---|---|---|---|
| startDate | dateTime | Required | |
| endDate | datetime | Required | |
| 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
params_dict = {'startDate': system.date.getDate(2023, 1, 1), 'endDate': system.date.getDate(2023, 12, 31), 'chkShtId': 123}
data, ermsgror = system.kanoa.quality.analysis.getAvgChkItemEventsByRow(paramsDict)
print(data)