GetRubMdResult GetRubMd(RubId tRub, GetRubMdArg tArg)
tRub. Opened time series database instance moniker.
tArg. Parameters of getting metadata.
The GetRubMd operation extracts metadata of time series database.
To execute the operation, in the tRub parameter specify the opened time series database instance moniker, and in the tArg parameter specify extraction parameters. The moniker can be obtained on executing the OpenRub operation. The result of the operation is the requested metadata.
{ "GetRubMd" : { "tRub" : { "id" : "S1!M!S!R1" }, "tArg" : { "pattern" : { "obInst" : "true", "period" : "true", "properties" : "true" } } } }
{ "GetRubMdResult" : { "id" : { "id" : "S1!M!S!R1" }, "meta" : { "obInst" : { "obDesc" : { "@isShortcut" : "0", "@isLink" : "0", "i" : "TS_DB", "n" : "Time series database", "k" : "5472", "c" : "2822", "p" : "5471", "h" : "0" }, "openArgs" : "" }, "period" : { "startYear" : "1980", "endYear" : "2020" }, "properties" : { "@lightWeight" : "0", "@valuesOnQuery" : "0", "@factsOnQuery" : "0", "@hasMnemonics" : "1", "@revisionsOnQuery" : "0", "@keepHistory" : "1", "@autoUpdateStat" : "1", "@useDistinctSequence" : "0", "@unitIsRequired" : "0", "@compoundFactorKey" : "0", "@hasEmptyAttribute" : "0" } } } }
public static GetRubMdResult GetRubMetadata(RubId moniker) { var somClient = new SomPortTypeClient(); //Proxy object for operation execution //Operation execution parameters var tGet = new GetRubMd() { tArg = new GetRubMdArg() { //The pattern, according to which the metadata will be extracted pattern = new RubMdPattern() { properties = true } }, tRub = moniker }; //Open time series database var result = somClient.GetRubMd(tGet); return result; }
See also:
Working with Time Series Database