Skip to main content

system.kanoa.performanceState.getAssetPerformanceStates

This function requires KanoaOPS module

Description

Returns performanceState info for assets for given parameters

Syntax

getAssetPerformanceStates(paramsDict)
  • Parameters
      paramsDict (dict)
      - enabled (bool)
      - performanceStateId (int)
      - performanceStateName (string)
      - performanceStatePath (string)
      - performanceStateClassPath (string)
      - performanceStateClassId (int)
      - counterTypeId (int)
      - counterTypeName (string)
  • Returns
    pyDataset
  • Code Example

    # 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
    }
    >>>