Opc.Ua.Server.DiagnosticsNodeManager.IsDiagnosticsStructureNode C# (CSharp) Method

IsDiagnosticsStructureNode() private method

Returns true of the node is a diagnostics node.
private IsDiagnosticsStructureNode ( NodeState node ) : bool
node NodeState
return bool
        private bool IsDiagnosticsStructureNode(NodeState node)
        {
            BaseInstanceState instance = node as BaseInstanceState;

            if (instance == null)
            {
                return false;
            }

            NodeId typeId = instance.TypeDefinitionId;

            if (typeId == null || typeId.IdType != IdType.Numeric || typeId.NamespaceIndex != 0)
            {
                return false;
            }

            switch ((uint)typeId.Identifier)
            {
                case VariableTypes.ServerDiagnosticsSummaryType:
                case ObjectTypes.SessionDiagnosticsObjectType:
                case VariableTypes.SessionDiagnosticsVariableType:
                case VariableTypes.SessionDiagnosticsArrayType:
                case VariableTypes.SessionSecurityDiagnosticsType:
                case VariableTypes.SessionSecurityDiagnosticsArrayType:
                case VariableTypes.SubscriptionDiagnosticsType:
                case VariableTypes.SubscriptionDiagnosticsArrayType:
                case VariableTypes.SamplingIntervalDiagnosticsArrayType:
                {
                    return true;
                }
            }

            return false;
        }