<!-- $Header: oracle_emrep.xml 27-jun-2005.18:04:44 rpatti Exp $ -->
<!-- CHANGES TO THIS MODULE ALSO NEED TO BE MADE TO HealthSql.java -->

<!DOCTYPE TargetMetadata SYSTEM "../dtds/TargetMetadata.dtd">

<TargetMetadata META_VER="3.0" TYPE="oracle_emrep">
  <Display>
    <Label NLSID="oracle_emrep_name">OMS and Repository</Label>
  </Display>

  <TypeProperties>
    <TypeProperty PROPERTY_NAME="disallow_redundancy_group" PROPERTY_VALUE="1"/>
    <TypeProperty PROPERTY_NAME="disallow_template" PROPERTY_VALUE="1"/>
  </TypeProperties>

  <Metric NAME="Response" TYPE="TABLE">
    <Display>
      <Label NLSID="oracle_emrep_resp">Response</Label>
    </Display>
    <TableDescriptor>
      <ColumnDescriptor NAME="Status" TYPE="NUMBER" IS_KEY="FALSE">
        <Display>
          <Label NLSID="oracle_emrep_resp_status">Status</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Message" TYPE="STRING" IS_KEY="FALSE" TRANSIENT="TRUE" >
        <Display>
          <Label NLSID="oracle_emrep_resp_message">Message</Label>
        </Display>
      </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="OSLineToken">
      <Property NAME="perlBin" SCOPE="SYSTEMGLOBAL">perlBin</Property>
      <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
      <Property NAME="command" SCOPE="GLOBAL">%perlBin%/perl</Property>
      <Property NAME="script" SCOPE="GLOBAL">%scriptsDir%/emrepresp.pl</Property>
      <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
      <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
      <Property NAME="ENVEM_TARGET_NAME" SCOPE="INSTANCE">NAME</Property>
      <Property NAME="ENVEM_REPOS_USER" SCOPE="INSTANCE">UserName</Property>
      <Property NAME="ENVEM_REPOS_PWD" SCOPE="INSTANCE">password</Property>
      <Property NAME="ENVHOST" SCOPE="INSTANCE" OPTIONAL="TRUE">MachineName</Property>
      <Property NAME="ENVPORT" SCOPE="INSTANCE" OPTIONAL="TRUE">Port</Property>
      <Property NAME="ENVSID" SCOPE="INSTANCE" OPTIONAL="TRUE">SID</Property>
      <Property NAME="ENVCONNECTDESCRIPTOR" SCOPE="INSTANCE" OPTIONAL="TRUE">ConnectDescriptor</Property>
      <Property NAME="ENVEM_TARGET_ADDRESS" SCOPE="GLOBAL">(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=%ENVHOST%)(Port=%ENVPORT%))(CONNECT_DATA=(SID=%ENVSID%)))
      </Property>
    </QueryDescriptor>
  </Metric>

  <Metric NAME="Notification_Status" TYPE="TABLE">
    <Display>
      <Label NLSID="notification_status">Notification Status</Label>
    </Display>
    <TableDescriptor>
       <ColumnDescriptor NAME="notificationStatus" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="notification_updown">Notification UpDown</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Message" TYPE="STRING" IS_KEY="FALSE" TRANSIENT="TRUE" >
        <Display>
          <Label NLSID="oracle_emrep_notif_message">Message</Label>
        </Display>
      </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="OSLineToken">
      <Property NAME="perlBin" SCOPE="SYSTEMGLOBAL">perlBin</Property>
      <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
      <Property NAME="command" SCOPE="GLOBAL">%perlBin%/perl</Property>
      <Property NAME="script" SCOPE="GLOBAL">%scriptsDir%/emrepnotif.pl</Property>
      <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
      <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
      <Property NAME="ENVEM_TARGET_NAME" SCOPE="INSTANCE">NAME</Property>
      <Property NAME="ENVEM_REPOS_USER" SCOPE="INSTANCE">UserName</Property>
      <Property NAME="ENVEM_REPOS_PWD" SCOPE="INSTANCE">password</Property>
      <Property NAME="ENVHOST" SCOPE="INSTANCE" OPTIONAL="TRUE">MachineName</Property>
      <Property NAME="ENVPORT" SCOPE="INSTANCE" OPTIONAL="TRUE">Port</Property>
      <Property NAME="ENVSID" SCOPE="INSTANCE" OPTIONAL="TRUE">SID</Property>
      <Property NAME="ENVCONNECTDESCRIPTOR" SCOPE="INSTANCE" OPTIONAL="TRUE">ConnectDescriptor</Property>
      <Property NAME="ENVEM_TARGET_ADDRESS" SCOPE="GLOBAL">(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=%ENVHOST%)(Port=%ENVPORT%))(CONNECT_DATA=(SID=%ENVSID%)))
      </Property>
    </QueryDescriptor>
  </Metric>

  <InstanceProperties>
    <InstanceProperty NAME="MachineName" CREDENTIAL="FALSE" OPTIONAL="TRUE">
      <Display>
        <Label NLSID="oracle_emrep_MachineName_iprop">Repository machine name</Label>
      </Display>
    </InstanceProperty>
    <InstanceProperty NAME="Port" CREDENTIAL="FALSE" OPTIONAL="TRUE">
      <Display>
        <Label NLSID="oracle_emrep_Port_iprop">Repository port</Label>
      </Display>
    </InstanceProperty>
    <InstanceProperty NAME="SID" CREDENTIAL="FALSE" OPTIONAL="TRUE">
      <Display>
        <Label NLSID="oracle_emrep_SID_iprop">Repository SID</Label>
      </Display>
    </InstanceProperty>
    <InstanceProperty NAME="ConnectDescriptor" CREDENTIAL="FALSE" OPTIONAL="TRUE">
      <Display>
        <Label NLSID="oracle_emrep_ConnectDescriptor_iprop">Repository Connect Descriptor</Label>
      </Display>
    </InstanceProperty>
    <InstanceProperty NAME="UserName" CREDENTIAL="TRUE" OPTIONAL="FALSE">
      <Display>
        <Label NLSID="oracle_emrep_UserName_iprop">Repository username</Label>
      </Display>
    </InstanceProperty>
    <InstanceProperty NAME="password" CREDENTIAL="TRUE" OPTIONAL="FALSE">
      <Display>
        <Label NLSID="oracle_emrep_password_iprop">Repository password</Label>
      </Display>
    </InstanceProperty>

<!--
    <InstanceProperty NAME="emdPerlTraceLevel" CREDENTIAL="FALSE" OPTIONAL="TRUE">
      <Display>
        <Label NLSID="oracle_emrep_trace_iprop">Perl Trace Level</Label>
      </Display>
    </InstanceProperty>
-->
  </InstanceProperties>

<!--
  Copy this block into your targets.xml and replace values for strings with
  %% to get a target instance

  <Target TYPE="oracle_emrep" NAME="%NAME%" VERSION="1.0">
     <Property NAME="MachineName" VALUE="%MachineName for Repository%"/>
     <Property NAME="Port" VALUE="%Port for Repository conn%" />
     <Property NAME="SID" VALUE="%SID for Repository conn%" />
     <Property NAME="ConnectDescriptor" SCOPE="INSTANCE">ConnectDescriptor</Property>
     <Property NAME="UserName" VALUE="%Username for Repository connection%"
               ENCRYPTED="FALSE" />
     <Property NAME="password" VALUE="%Password for Repository connection%" 
               ENCRYPTED="FALSE" />
  </Target>

-->

</TargetMetadata>
