Skip to main content

system.kanoa.performanceState.getAssetPerformanceStates

Description

Returns performanceState info for assets for given parameters

Syntax

getAssetPerformanceStates(paramsDict)

Parameters:
  • paramsDict (dict)

  • Returns:
  • pyDataset
  • Dictionary

    ParameterTypeRequiredNotes
    enabledbool
    performanceStateIdint
    performanceStateNamestring
    performanceStatePathstring
    performanceStateClassPathstring
    performanceStateClassIdint
    counterTypeIdint
    counterTypeNamestring

    Code Examples

    # Example Usage:
    data = system.kanoa.performanceState.getAssetPerformanceStates({'enabled': True})
    print system.kanoa.utilities.convertDatasetToJSON(data)
    >
    {
    'performanceStateName': 'Blob',
    'performanceStateClassPath': 'Quality',
    'createdByUser': 'jason',
    'performanceStateColor': '#FFCCFF',
    'performanceStateClassId': 4,
    'enabled': True,
    'changedDate': None,
    'createdDate': Wed May 07 16:01:25 UTC 2025,
    'performanceStateClassName': 'Quality',
    'createdBy': 5,
    'performanceStatePath': 'Quality\\Blob',
    'changedBy': None,
    'changedByUser': None,
    'performanceStateId': 5
    }
    >>>