Hello,
I followed this forum for a while and find many helpful answers.
Now I have a specific problem. In order to create items through LLD I extract a JSON like this:
I woul like to create an item prototype to have 5 items in this case, each identified by "ResourceType" (EmbeddedResource will be ignored).
So far not a problem. But each ResourceType (Number) has an equivalent name:
DataChannel=1,
VCMChannel=2,
VMChannel=3,
ModemChannel=4,
ConferenceChannel=5,
EmbeddedChannel=6,
HighQualityConferenceChannel=7,
OutdialerVMChannel=8,
RTPMediaChannel=9,
I would like to have those names to be part of the item's name. Therefore I would like to have i.e. a LLD Macros like {#RESNAME} -> .$.ResourceType.[mappedvalue(RasourceType)].
I hope you get what I mean. If "ResourceType" equals 1, the macro {#RESNAME} should be "DataChannel"
Is this possible? Or is there another idea, how I can get the resource name into the item name?
Thanks in advance, Florian
I followed this forum for a while and find many helpful answers.
Now I have a specific problem. In order to create items through LLD I extract a JSON like this:
Code:
[
{
"ChannelsInstalled": "48",
"@CID": "sw/6/0/1",
"ChannelsInUse": "1",
"ResourceType": "1"
},
{
"ChannelsInstalled": "32",
"@CID": "sw/6/0/2",
"ChannelsInUse": "0",
"ResourceType": "2"
},
{
"ChannelsInstalled": "6",
"@CID": "sw/6/0/3",
"ChannelsInUse": "0",
"ResourceType": "3"
},
{
"ChannelsInstalled": "0",
"@CID": "sw/6/0/4",
"ChannelsInUse": "0",
"ResourceType": "4"
},
{
"ChannelsInstalled": "128",
"@CID": "sw/6/0/5",
"ChannelsInUse": "0",
"EmbeddedResource": {
"@CID": "sw/6/0/5/5",
"ChannelsInUse": "0",
"ResourceType": "7"
},
"FirstBankSize": "64",
"ResourceType": "5"
}
]
So far not a problem. But each ResourceType (Number) has an equivalent name:
DataChannel=1,
VCMChannel=2,
VMChannel=3,
ModemChannel=4,
ConferenceChannel=5,
EmbeddedChannel=6,
HighQualityConferenceChannel=7,
OutdialerVMChannel=8,
RTPMediaChannel=9,
I would like to have those names to be part of the item's name. Therefore I would like to have i.e. a LLD Macros like {#RESNAME} -> .$.ResourceType.[mappedvalue(RasourceType)].
I hope you get what I mean. If "ResourceType" equals 1, the macro {#RESNAME} should be "DataChannel"
Is this possible? Or is there another idea, how I can get the resource name into the item name?
Thanks in advance, Florian
Comment