Skip to main content

system.kanoa.quality.analysis.getChkItemEventsByRow

Requires kanoaQDS license

Description

Returns Check Sheet item event data for the given parameters with the check items pivoted in each row.

Syntax

getChkItemEventsByRow(paramsDict)

Parameters:
  • paramsDict (dict)

  • Returns:
  • data (pyDataset)
  • msg (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    startDatedateTimeRequired
    endDatedatetimeRequired
    fromDatedateTimeCan select to only return data between certain times, while still getting aggregate data (min, max) for the entire date range
    toDatedateTime
    chkShtIdintRequired
    assetIdint
    assetPathstring
    itemClassPathstring
    itemIdint
    chkShtTypeIdint
    chkItemGroupIdint
    chkItemGroupIdListlist[int]
    chkShtStateIdslist(int)
    enabledbool
    limitintLimit 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)