GetHieMdResult GetHieMd(HieId tHie, GetHieMdArg tArg)
tHie. Factors hierarchy moniker.
tArg. Parameters of getting metadata.
The GetHieMd operation extracts metadata of the time series database factors' hierarchy.
To execute the operation, in the tHie parameter specify the factors hierarchy instance moniker, and in the tArg parameter specify data extraction parameters. The moniker can be obtained on executing the OpenHie operation. The result of the operation is the requested metadata.
{ "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" : { "@isShortcut" : "0", "@isLink" : "0", "i" : "TS_DB",
"n" : "Time series database", "k" : "1", "c" : "2829", "p" : "5472", "h" : "0" } }, "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" } }, { "k" : "9", "id" : "COUNTRY", "n" : "Country", "vis" : "1",
"dim" : { "k" : "208", "id" : "COUNTRY", "n" : "Country", "vis" : "1" }, "includeSelectedOnly" : "0", "namingFormat" : "", "isLeaf" : "1",
"levKey" : "2", "orderBy" : { "isActive" : "0" } } ] } }, "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" } } ] } },
"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" : "COUNTRY", "n" : "Country", "vis" : "1" }, "includeSelectedOnly" : "0", "namingFormat" : "", "isLeaf" : "1", "levKey" : "2", "orderBy" :
{ "isActive" : "0" } } ] } }, "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() { //The pattern, according to which the metadata will be extracted pattern = new HieMdPattern() { atts = true, levs = true, props = true } }, tHie = moniker }; //Open time series database var result = somClient.GetHieMd(tGet); return result; }
See also:
Working with Time Series Database