Exemplo n.º 1
0
def LatestTaskInfo(NamespaceID):
    try:
        objNamespace = Namespace.GetNamespace(NamespaceID)
        if None != objNamespace:
            return objNamespace.GetLastActorCalled()

    except Exception as Ex:
        pass
Exemplo n.º 2
0
def SetMinValueOperatorValue(NamespaceID, CollectorID, newValue):
    try:
        objNamespace = Namespace.GetNamespace(NamespaceID)
        if None != objNamespace:
            objCollector = objNamespace.GetCollector(CollectorID)
            if None != objCollector:
                if hasattr(objCollector, "SetMinValueForAll"):
                    objCollector.SetMinValueForAll(newValue)

    except Exception as Ex:
        pass
Exemplo n.º 3
0
def ZeroOutAverageOperatorHistory(NamespaceID, CollectorID):
    try:
        objNamespace = Namespace.GetNamespace(NamespaceID)
        if None != objNamespace:
            objCollector = objNamespace.GetCollector(CollectorID)
            if None != objCollector:
                if hasattr(objCollector, "historyList"):
                    objCollector.historyList = []

    except Exception as Ex:
        pass
Exemplo n.º 4
0
def SetMaxValueOperatorValue(NamespaceID, CollectorID, newValue):
    try:
        objNamespace = Namespace.GetNamespace(NamespaceID)
        if None != objNamespace:
            objCollector = objNamespace.GetCollector(CollectorID)
            if None != objCollector:
                if hasattr(objCollector, "SetMaxValueForAll"):
                    objCollector.SetMaxValueForAll(newValue)
    #pylint: disable=unused-variable
    except Exception as Ex:
        pass