Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClientSessionReadHistoryService

Hierarchy

Methods

readAggregateValue

  • readAggregateValue(nodesToRead: HistoryReadValueIdOptions[], startTime: DateTime, endTime: DateTime, aggregateFn: AggregateFunction[], processingInterval: number, callback: Callback<HistoryReadResult[]>): void
  • readAggregateValue(nodesToRead: HistoryReadValueIdOptions[], startTime: DateTime, endTime: DateTime, aggregateFn: AggregateFunction[], processingInterval: number): Promise<HistoryReadResult[]>
  • readAggregateValue(nodeToRead: HistoryReadValueIdOptions, startTime: DateTime, endTime: DateTime, aggregateFn: AggregateFunction, processingInterval: number, callback: Callback<HistoryReadResult>): void
  • readAggregateValue(nodeToRead: HistoryReadValueIdOptions, startTime: DateTime, endTime: DateTime, aggregateFn: AggregateFunction, processingInterval: number): Promise<HistoryReadResult>
  • method

    readAggregateValue

    async
    example
    //  es5
    session.readAggregateValue(
      {nodeId: "ns=5;s=Simulation Examples.Functions.Sine1" },
      new Date("2015-06-10T09:00:00.000Z"),
      new Date("2015-06-10T09:01:00.000Z"),
     AggregateFunction.Average, 3600000, (err,dataValues)  => {
    
    });
    //  es6
    const dataValues = await session.readAggregateValue(
      { nodeId: "ns=5;s=Simulation Examples.Functions.Sine1" },
      new Date("2015-06-10T09:00:00.000Z"),
      new Date("2015-06-10T09:01:00.000Z"),
      AggregateFunction.Average, 3600000);

    Parameters

    • nodesToRead: HistoryReadValueIdOptions[]
    • startTime: DateTime

      the start time in UTC format

    • endTime: DateTime

      the end time in UTC format

    • aggregateFn: AggregateFunction[]
    • processingInterval: number

      in milliseconds

    • callback: Callback<HistoryReadResult[]>

    Returns void

  • Parameters

    Returns Promise<HistoryReadResult[]>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<HistoryReadResult>

readHistoryValue

  • Parameters

    Returns void

  • Parameters

    Returns Promise<HistoryReadResult[]>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<HistoryReadResult>

Generated using TypeDoc