Skip to main content

system.kanoa.event.checkforDuplicateModeEvents

This function requires KanoaOPS module

Description

Checks for duplicate contiguous modeEvent entries and removes them.

Syntax

checkforDuplicateModeEvents(assetId, fromDate, toDate)
  • Parameters
      assetId - Asset ID.
      fromDate (datetime) - Start timestamp.
      toDate (datetime) - End timestamp.
  • Returns
    Records modified (int).
  • Code Example

    # Example Usage:
    assetId = 123
    fromDate = timestamp1
    toDate = timestamp2
    recordsModified = system.kanoa.event.checkforDuplicateModeEvents(assetId, fromDate, toDate)