Search Results for

    Show / Hide Table of Contents

    Interface IIncidentManager

    Интерфейс серверного модуля, который отвечает за работу с нештатными ситуациями.

    Namespace: Lers.Diag
    Assembly: Lers.Server.System.dll
    Syntax
    public interface IIncidentManager

    Methods

    AddIncident(Incident, INode, IMeasurePoint, Byte[], DiagParam)

    Создаёт новую нештатную ситуацию.

    Declaration
    void AddIncident(Incident incident, INode node, IMeasurePoint measurePoint = null, byte[] distinction = null, DiagParam diagParam = null)
    Parameters
    Type Name Description
    Lers.Models.Incident incident

    Описание нештатной ситуации.

    INode node

    Объект учёта, к которому относится НС.

    IMeasurePoint measurePoint

    Точка учёта, к которой относится НС

    System.Byte[] distinction

    Отличительная особенность нештатной ситуации. По этому полю определяется нужно ли создать новую НС с таким же типом или дописать журнал существующей. Пример - пользовательская диагностика. Если в объекте учёта создать несколько диагностических параметров, все зафиксированные НС будут записаны в журнал первой возникшей. Если же передать хэш формулы, для каждого параметра будет создана своя нештатная ситуация.

    Lers.Interop.DiagParam diagParam

    Параметры диагностики. Используется только для того, чтобы передать параметры скриптовому обработчику.

    CloseIncidentAsync(IAccount, Incident, INode, String)

    Закрывает нештатную ситуацию.

    Declaration
    Task<DateTime> CloseIncidentAsync(IAccount doer, Incident incident, INode node, string reason)
    Parameters
    Type Name Description
    IAccount doer
    Lers.Models.Incident incident
    INode node
    System.String reason
    Returns
    Type Description
    Task<DateTime>

    GetActiveListByMeasurePoint(IMeasurePoint)

    Возвращает открытые (активные) НС по точке учёта.

    Declaration
    IEnumerable<Incident> GetActiveListByMeasurePoint(IMeasurePoint measurePoint)
    Parameters
    Type Name Description
    IMeasurePoint measurePoint
    Returns
    Type Description
    IEnumerable<Lers.Models.Incident>

    GetIncidentById(EntityIdentifier<Incident>)

    Возвращает нештатную ситуацию по её идентификатору.

    Declaration
    Incident GetIncidentById(EntityIdentifier<Incident> id)
    Parameters
    Type Name Description
    EntityIdentifier<Lers.Models.Incident> id
    Returns
    Type Description
    Lers.Models.Incident

    RemoveNotMatchSeasonNodeIncidents(INode, Interval, Season)

    Удаляет нештатные ситуации по объекту учёта не совпадающие с указанным режимом работы.

    Declaration
    Task RemoveNotMatchSeasonNodeIncidents(INode node, Interval interval, Season season)
    Parameters
    Type Name Description
    INode node

    Объект учёта по которому нужно удалить НС.

    Interval interval

    Период за который необходимо удалить НС.

    Season season

    Режим работы, НС за который должны остаться.

    Returns
    Type Description
    Task

    Extension Methods

    IncidentManagerExtensions.AddIncident(IIncidentManager, IncidentType, DateTime, String, String, IncidentImportance, DeviceDataType, INode, IMeasurePoint, Byte[], DateTime)
    In This Article
    Back to top ©2018 - 2026, ООО "ЛЭРС УЧЁТ"