<!--
   MODIFIED    (MM/DD/YY)
      jriel 06/17/05 - 
      jriel 04/15/05 - fix directory 
      jriel 04/12/05 - rsc gen 
      jhsy  12/20/04 - remove the keys_from_mult_colls
      jhsy  11/19/04 - jhsy_network_target_homepage
      jhsy  10/04/04 - Created
 -->

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

<TargetMetadata META_VER="3.0" TYPE="network">
  <Display>
    <Label NLSID="network_name">Network Manager Adapter</Label>
  </Display>

  <Metric NAME="Response" TYPE="TABLE">
    <Display>
      <Label NLSID="network_response">Response</Label>
    </Display>
    <TableDescriptor>
      <ColumnDescriptor NAME="Status" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="network_response_status">Status</Label>
        </Display>
      </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="OSLineToken">
        <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
        <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
        <Property NAME="command" SCOPE="GLOBAL">
          <![CDATA["%scriptsDir%/%CommandHandler%" ]]>
        </Property>
        <Property NAME="args" SCOPE="GLOBAL">
          <![CDATA["--result_type=response" ]]>
        </Property>
    </QueryDescriptor>
  </Metric>
  
  <!-- NOTE: command used to = %ResponseHandler% but this property has been removed because there is only a single script -->

  <Metric NAME="NetworkConnectivity" TYPE="TABLE">
    <Display>
      <Label NLSID="NetworkConnectivity">Network Connectivity</Label>
    </Display>
    <TableDescriptor>
      <ColumnDescriptor NAME="NetwrkEventID" TYPE="STRING" IS_KEY="TRUE">
        <Display>
          <Label NLSID="network_connectivity_event_id">Network Event ID</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="AffectedIPs" TYPE="STRING">
        <Display>
          <Label NLSID="network_connectivity_affected_ips">Affected IP Addresses</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="State" TYPE="STRING">
        <Display>
          <Label NLSID="network_connectivity_state">State</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Certainty" TYPE="NUMBER"> 
        <Display>
          <Label NLSID="network_connectivity_certainty">Certainty</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="In-contextLaunchURL" TYPE="STRING"> 
        <Display>
          <Label NLSID="network_connectivity_launch_url">In-context Launch URL</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Description" TYPE="STRING"> 
        <Display>
          <Label NLSID="network_connectivity_description">Description</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="OpenTimestamp" TYPE="STRING"> 
        <Display>
          <Label NLSID="network_connectivity_open_timestamp">Open Timestamp</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="ClosedTimestamp" TYPE="STRING"> 
        <Display>
          <Label NLSID="network_connectivity_closed_timestamp">Closed Timestamp</Label>
        </Display>
      </ColumnDescriptor>
    </TableDescriptor>

    <QueryDescriptor FETCHLET_ID="OSLineToken">
      <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
      <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
      <Property NAME="command" SCOPE="GLOBAL">
        <![CDATA["%scriptsDir%/%CommandHandler%" ]]>
      </Property>
      <Property NAME="args" SCOPE="GLOBAL">
        <![CDATA["--result_type=event" ]]>
      </Property>
    </QueryDescriptor>
  </Metric>

  <Metric NAME="NetworkCorrelation" TYPE="TABLE">
    <Display>
      <Label NLSID="network_correlation">Network RCA Correlation</Label>
    </Display>
    <TableDescriptor>
      <ColumnDescriptor NAME="EMEventID" TYPE="STRING" IS_KEY="TRUE">
        <Display>
          <Label NLSID="network_correlation_em_event_id">EM Event ID</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="NetworkEventList" TYPE="STRING">
        <Display>
          <Label NLSID="network_correlation_network_event_list">Correlated Network Events</Label>
        </Display>
      </ColumnDescriptor>
    </TableDescriptor>

    <QueryDescriptor FETCHLET_ID="OSLineToken">
      <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
      <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
      <Property NAME="command" SCOPE="GLOBAL">
        <![CDATA["%scriptsDir%/%CommandHandler%" ]]>
      </Property>
      <Property NAME="args" SCOPE="GLOBAL">
        <![CDATA["--result_type=correlation" ]]>
      </Property>
    </QueryDescriptor>
  </Metric>

  <Metric NAME="NetworkCommand" TYPE="STRING">
    <Display>
      <Label NLSID="network_command">Network Command</Label>
    </Display>
    <QueryDescriptor FETCHLET_ID="OS">
      <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
      <Property NAME="command" SCOPE="GLOBAL">
        <![CDATA["%scriptsDir%/%CommandHandler%" ]]>
      </Property>
      <Property NAME="args" SCOPE="USER">commandargs</Property>
    </QueryDescriptor>
  </Metric>

  <InstanceProperties>
    <InstanceProperty NAME="CommandHandler" READONLY="TRUE" OPTIONAL="FALSE" >
      <Display>
        <Label NLSID="network_command_handler">Command Handler</Label>
      </Display>ic_oracle_cmd
    </InstanceProperty>
  </InstanceProperties>

</TargetMetadata>

