Skip to main content

system.kanoa.performanceState.getPerformanceStateClasses

This function requires KanoaOPS module

Description

Returns performanceStateClass info for given parameters

Syntax

getPerformanceStateClasses(paramsDict)
  • Parameters
      paramsDict (dict)
      - enabled (bool)
      - performanceStateClassName (string)
      - performanceStateClassPath (string)
      - performanceStateClassId (int)
      - performanceStateClassIdList (list[int])
  • Returns
    performanceStateClassData (pyDataset)
  • Code Example

    # Example Usage:
    data = system.kanoa.performanceState.getPerformanceStateClasses({'enabled': True})
    print system.kanoa.utilities.convertDatasetToJSON(data)
    >
    {
    'performanceStateClassDescription': None,
    'performanceStateClassPath': 'Operations',
    'performanceStateClassId': 1,
    'parentId': None,
    'enabled': True,
    'path': 'Operations',
    'changedDate': Wed Apr 02 21:23:30 UTC 2025,
    'createdDate': Wed Apr 02 21:22:53 UTC 2025,
    'performanceStateClassName': 'Operations',
    'createdBy': 5,
    'changedBy': 5,
    'parentEnabled': True
    }

    >>>