Atlast i could get the solution from my colleague who was expert in finding solutions. Below is the way i could resolve this problem
ADX Tables
.create table ABC(CountryCode: string, PlatformDeviceType: string, UnitState: string, SystemType: string, AttributeId: int, OccuredTime: datetime, ReceivedTime: datetime, SourceApplicationId: int,AlarmClearAttributes: string)
.create table AlarmClearDetails (AlarmId: string, ClearAlarmId: string, AlarmClearTime: datetime)
ADX Function:
We need to mention all columns and below is syntax of the function
.create-or-alter function with (
docstring = "<Details abouve the function>",
folder = "<FolderNAME>"
)
G3MS_ClearAlarm(input: (
CountryCode: string, PlatformDeviceType: string, UnitState: string, SystemType: string, AttributeId: int, OccuredTime: datetime, ReceivedTime: datetime, SourceApplicationId: int,AlarmClearAttributes: string
))
{
//WRITE logic you wanted to do as part of business.
}
ADX Update Policy
.alter table AlarmClearDetails policy update
@'[{"Source": "Alarm", "Query": "G3MS_ClearAlarm(ABC)", "IsEnabled": true}]'
In this way we can solve the problem statement i had.