/History ODB tree

From MidasWiki
Revision as of 17:08, 11 June 2014 by Suz (talk | contribs) (Created page with "==== Links ==== <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> * History System * mhttpd history page * Keys in the ODB /Logger tree|/Logger...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Links

Purpose

The ODB /History tree contains information related to the History System.

Creating the /History tree

The /History ODB tree is created by mlogger.



Example of /History tree

[local:pol:S]/>ls  /history -lt
Key name                        Type    #Val  Size  Last Opn Mode Value
---------------------------------------------------------------------------
DisableTags                     BOOL    1     4     14h  0   RWD  n
Display                         DIR
MaxDisplayEvents                INT     1     4     14h  0   RWD  20
MaxDisplayTags                  INT     1     4     14h  0   RWD  200
Events                          DIR
Tags                            DIR
Links                           DIR

Keys in the /History ODB tree

DisableTags

  • Type: BOOL
  • Default: "n"

Set this key in the /History ODB tree to "y" if reading the history tags directly from the history files. Set to "n" to read the history tags from the ODB. If this key is set to "y" the /History/Tags subdirectory (if present) will be deleted.


This key appears starting with version 4435 of mlogger. See [[#Note1].






CreateOldTags

  • Type: BOOL
  • Default: "n"


If this key in the /History ODB tree and set to "y", it will force creation of /History/Tags subtree(s) using the old format. See [[#Note1].

This key is optional and may not be present in recent versions.






MaxDisplayEvents

  • Type: INT
  • Default: 20

This key in the /History ODB tree is used by mhttpd to set the maximum number of events displayed in the history page maybe??






MaxDisplayTags

  • Type: INT
  • Default: 20

This key in the /History ODB tree is used by mhttpd to set the maximum number of tags ??






PerVariableHistory (obsolete)

  • Type: INT
  • Default: "n"

This key in the /History ODB tree is OBSOLETE and should be deleted from the ODB if using a recent version of MIDAS. A message will be printed to this effect.

It has been replaced by PerVariableHistory.





Links subtree

  • Type: DIR

This subtree in the /History ODB tree is created by mlogger. If an equipment named "Trigger" is present, mlogger creates





System subtree

  • Type: DIR

This subtree in the Links subtree is created by mlogger if an equipment named "Trigger" is present.






Trigger per sec.

  • Type: DIR

This link in the System subtree is created by mlogger if an equipment named "Trigger" is present. Trigger per sec. is linked to the key /Equipment/Trigger/Statistics/Events per sec..




Trigger kB per sec.

  • Type: DIR

This link in the System subtree is created by mlogger if an equipment named "Trigger" is present. Trigger kB per sec. is linked to the key /Equipment/Trigger/Statistics/kBytes per sec..






Tags subtree

  • Type: DIR

This subtree in the /History ODB tree is created by mlogger if the Equipment key /Equipment ODB tree#Log history is set for one or more Equipments.






Tags subtree

  • Type: DIR

This subtree in the /History ODB tree is created by mlogger if the Equipment key /Equipment ODB tree#Log history is set for one or more Equipments. It contains history tags created by mlogger for each equipment set to /Equipment ODB tree#Log history. If the global PerVariableHistory key is set or the PerVariableHistory key in the /Equipment/Settings subtree of that equipment, then tags for that Equipment will be created automatically by mlogger. The names of the tags will be taken from /Equipment/Settings/Names if present, otherwise



The contents of the event will then be completely copied into the history files, using the definition of the event as tag names for every element of the event.



Display subtree

  • Type: DIR

This subtree in the /History ODB tree contains parameters used to control the History panels display. It contains a subtree for each defined History panel.






<panel-name> subtree

  • Type: DIR

This subtree in the Display subtree is named for the panel on the mhttpd History page, and contains information to define the contents of this panel. In the example, only one panel is defined, named Default. The Default panel is created when If there is more than one panel defined, there will be other panel subtrees present with different panel names.


Trigger rate subtree

  • Type: DIR