GetHieMdResult GetHieMd(HieId tHie, GetHieMdArg tArg)
tHie. Moniker of opened indicators hierarchy instance.
tArg. Parameters of getting metadata.
The GetHieMd operation gets metadata of the time series database indicators' hierarchy.
To execute the operation, in the tHie parameter specify the indicators hierarchy instance moniker, and in the tArg parameter specify metadata getting parameters. The moniker can be obtained on executing the OpenHie operation. The operation results in the requested metadata.
Below is the example of getting information about attributes, levels and properties of indicators hierarchy. The request contains indicators hierarchy moniker. The response contains requested data.
{
"GetHieMd" :
{
"tHie" :
{
"id" : "S1!M!S!H2"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"atts" : "true",
"levs" : "true",
"props" : "true"
}
}
}
}
{
"GetHieMdResult" :
{
"id" :
{
"id" : "S1!M!S!H2"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "1",
"@hf" : "0",
"i" : "TS_DB",
"n" : "Time series database",
"k" : "2147483646",
"c" : "2829",
"p" : "5472",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "0",
"isTemp" : "1"
}
},
"dirty" : "0",
"atts" :
{
"its" :
{
"it" :
[
{
"k" : "4",
"id" : "DL",
"n" : "Period",
"vis" : "1",
"dim" :
{
"k" : "5482",
"id" : "CALENDAR_LEVELS",
"n" : "Frequencies",
"vis" : "1"
},
"includeSelectedOnly" : "0",
"namingFormat" : "",
"isLeaf" : "0",
"levKey" : "1",
"orderBy" :
{
"isActive" : "0"
},
"orderInDefaultHie" : "-1"
},
{
"k" : "9",
"id" : "COUNTRY",
"n" : "Country",
"vis" : "1",
"dim" :
{
"k" : "208",
"id" : "COUNTRIES",
"n" : "Countries",
"vis" : "1"
},
"includeSelectedOnly" : "0",
"namingFormat" : "",
"isLeaf" : "1",
"levKey" : "2",
"orderBy" :
{
"isActive" : "0"
},
"orderInDefaultHie" : "-1"
}
]
}
},
"levs" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"id" : "LEVEL",
"n" : "Period",
"vis" : "1",
"atts" :
{
"its" :
{
"it" :
[
{
"k" : "4",
"id" : "DL",
"n" : "Period",
"vis" : "1",
"dim" :
{
"k" : "5482",
"id" : "CALENDAR_LEVELS",
"n" : "Frequencies",
"vis" : "1"
},
"includeSelectedOnly" : "0",
"namingFormat" : "",
"isLeaf" : "0",
"levKey" : "1",
"orderBy" :
{
"isActive" : "0"
},
"orderInDefaultHie" : "-1"
}
]
}
},
"isLeaf" : "0"
},
{
"k" : "2",
"id" : "LEVEL1",
"n" : "Country",
"vis" : "1",
"atts" :
{
"its" :
{
"it" :
[
{
"k" : "9",
"id" : "COUNTRY",
"n" : "Country",
"vis" : "1",
"dim" :
{
"k" : "208",
"id" : "COUNTRIES",
"n" : "Countries",
"vis" : "1"
},
"includeSelectedOnly" : "0",
"namingFormat" : "",
"isLeaf" : "1",
"levKey" : "2",
"orderBy" :
{
"isActive" : "0"
},
"orderInDefaultHie" : "-1"
}
]
}
},
"isLeaf" : "1"
}
]
}
},
"props" :
{
"whereIsEmpty" : "0",
"leafLoadExtent" : "0",
"filterMode" : "All"
}
}
}
}
public static GetHieMdResult GetHieMetadata(HieId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetHieMd()
{
tArg = new GetHieMdArg()
{
//Pattern that will be used to get metadata
pattern = new HieMdPattern()
{
atts = true,
levs = true,
props = true
}
},
tHie = moniker
};
//Get indicators hierarchy metadata
var result = somClient.GetHieMd(tGet);
return result;
}
See also: