a temporary fix for the duplicate incident issue.

will try to add some automation tests to verify:
    1: has incidents generated.
    2: no duplicate
and then find a decent fix.
This commit is contained in:
Ying Huang 2023-01-24 13:42:41 -08:00
Родитель 3338fe0c4d
Коммит 66c1136590
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -181,7 +181,7 @@ namespace Helios2Sentinel
log.LogError("Exception --> 2 " + ex.Message);
}
if (startDateUsecs == 0 || hasException)
if (startDateUsecs == 0)
{
TestAlertToQueue(outputQueueItem);
startDateUsecs = GetPreviousUnixTime(log);

Просмотреть файл

@ -4,7 +4,7 @@ SCRIPTPATH=$(dirname "$SCRIPT")
cd "$SCRIPTPATH"
resourcegroup="ying-test-resource-group"
workspacename="auto-deploy-workspace-01-19-23-v1"
workspacename="auto-deploy-workspace-01-24-23-v2"
producer_fun_prefix="cohesitypro"
producer_context="IncidentProducer"
consumer_fun_prefix="cohesitycon"