﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<helpItems schema="maml">
  <_locDefinition>
    <_locDefault _loc="locNone" />
    <_locTag _loc="locData">maml:para</_locTag>
    <_locTag _loc="locData">maml:title</_locTag>
  </_locDefinition>
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10">
    <command:details>
      <command:name>ConvertTo-MessageLatency.ps1</command:name>
      <maml:description>
        <maml:para _locID="CommandShortDescription">The ConvertTo-MessageLatency command gets retrieves component latency details from a message tracking event.</maml:para>
      </maml:description>
      <maml:copyright>
        <maml:para _locID="Copyright">Copyright (c) Microsoft.  All rights reserved.</maml:para>
      </maml:copyright>
      <command:verb>ConvertTo</command:verb>
      <command:noun>MessageLatency.ps1</command:noun>
      <dev:version />
    </command:details>
    <maml:description>
      <maml:para _locID="CommandLongDescription"></maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <command:name>ConvertTo-MessageLatency.ps1</command:name>
        <command:parameter>
          <maml:name>MessageTrackingEvent</maml:name>
          <command:parameterValue>MessageTrackingEvent</command:parameterValue>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="true" variableLength="" globbing="" pipelineInput="false" position="1">
        <maml:name>MessageTrackingEvent</maml:name>
        <maml:description>
          <maml:para _locID="Param_Description_MessageTrackingEvent">A message tracking log event object.</maml:para>
        </maml:description>
        <command:parameterValue required="true" variableLength="false">MessageTrackingEvent</command:parameterValue>
        <dev:type>
          <maml:name>MessageTrackingEvent</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue />
      </command:parameter>
    </command:parameters>
    <command:examples>
      <command:example>
        <maml:title _locID="Example_Title_1">-------------------------- EXAMPLE 1 --------------------------</maml:title>
        <maml:introduction>
          <maml:para>C:\PS&gt;</maml:para>
        </maml:introduction>
        <dev:code>Get-MessageTrackingLog | ConvertTo-MessageLatency</dev:code>
        <dev:remarks>
          <maml:para _locID="Example_1_Remarks_1">Output: a collection of MessageTrackingLatency objects that will contain combination of message-specific properties and component latencies</maml:para>
        </dev:remarks>
      </command:example>
      <command:example>
        <maml:title _locID="Example_Title_2">-------------------------- EXAMPLE 2 --------------------------</maml:title>
        <maml:introduction>
          <maml:para>C:\PS&gt;</maml:para>
        </maml:introduction>
        <dev:code>Get-MessageTrackingLog -EventId:’SEND’ -Start:'5/4/2007 2:09:20 PM' -End:'5/4/2007 3:09:20 PM' | where {.MessageLatency.TotalSeconds -gt 90} | ConvertTo-MessageLatency | where {.ComponentCode -eq ‘QD’ -and .ComponentLatency.TotalSeconds -gt 30} | fl MessageId,ServerIp,MessageLatency,ComponentLatency</dev:code>
        <dev:remarks />
      </command:example>
    </command:examples>
  </command:command>
</helpItems>