Partilhar via


Data - Retrieve Alert Context

Recupera o contexto de alerta para o ID de alerta especificado.

GET http://<Servername>/OperationsManager/data/alertContext/{id}

Parâmetros do URI

Name Em Necessário Tipo Description
id
path True

string

Especificar o ID de alerta

Respostas

Name Tipo Description
200 OK

string

Ok. Contexto de alerta recuperado com sucesso.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Exemplos

RetrieveAlertContext

Sample Request

GET http://<Servername>/OperationsManager/data/alertContext/FBB313A9-588C-49C6-867B-0802338717D1

Sample Response

[
  "<div align=\"left\"> <table border=\"0\" width=\"100%\" id=\"outertable\" style=\"border-collapse: collapse\">   <tr>     <td width=\"100%\">       <table border=\"0\" width=\"100%\" id=\"tablecolumn1\" style=\"border-collapse: collapse\">         <tr>           <td width=\"35%\" style=\"font:bold;color:gray\">Date and Time:</td>           <td width=\"65%\" style=\"color:gray\">5/16/2022 1:06:16 PM</td>         </tr>         <tr>           <td width=\"35%\" style=\"font:bold;color:gray\">Log Name:</td>           <td width=\"65%\" style=\"color:gray\">Operations Manager</td>         </tr>         <tr>           <td width=\"35%\" style=\"font:bold;color:gray\">Source:</td>           <td width=\"65%\" style=\"color:gray\">Health Service Modules</td>         </tr>         <tr>           <td width=\"35%\" style=\"font:bold;color:gray\">Event Number:</td>           <td width=\"65%\" style=\"color:gray\">22406</td>         </tr>         <tr>           <td width=\"35%\" style=\"font:bold;color:gray\">Level:</td>           <td width=\"65%\" style=\"color:gray\">1</td>         </tr>         <tr>           <td width=\"35%\" style=\"font:bold;color:gray\">Logging Computer:</td>           <td width=\"65%\" style=\"color:gray\">SCOMNFMPDEV0016.smx.net</td>         </tr>         <tr>           <td width=\"35%\" style=\"font:bold;color:gray\">User:</td>           <td width=\"65%\" style=\"color:gray\">N/A</td>         </tr>         <tr>           <td width=\"35%\" align=\"left\" style=\"font:bold;color:gray\">Description:</td>           <td width=\"65%\" align=\"left\" style=\"color:gray\">The PowerShell script failed with below exceptionSystem.Management.Automation.CmdletInvocationException: The client has been disconnected from the server. Please call ManagementGroup.Reconnect() to reestablish the connection.At line:9 char:24+ $configurationGroups = Get-SCOMPendingManagement | group AgentPending ...+                        ~~~~~~~~~~~~~~~~~~~~~~~~~  at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)  at Microsoft.EnterpriseManagement.Common.PowerShell.RunspaceController.RunScript[T](String scriptName, String scriptBody, Dictionary`2 parameters, Object[] constructorArgs, IScriptDebug iScriptDebug, Boolean bSerializeOutput)Script Name:\tDiscover Agent ConfigurationsOne or more workflows were affected by this. Workflow name: ManagementGroupDiscoveryAgentConfigurationInstance name: All Management Servers Resource PoolInstance ID: {4932D8F0-C8E2-2F4B-288E-3ED98A340B9F}Management group: SCOMNFMPDEV0016-MG</td>         </tr>       </table>     </td>   </tr> </table> <p style=\"font:bold;color:gray;margin-bottom:0\">Event Data:</p> <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">   <DIV STYLE=\"margin-left:1em;text-indent:-1em\">     <SPAN STYLE=\"color:blue\">&lt;</SPAN>     <SPAN STYLE=\"color:#990000\">DataItem </SPAN>     <SPAN STYLE=\"color:#990000\">type</SPAN>     <SPAN STYLE=\"color:blue\">=\"</SPAN>     <B>System.XmlData</B>     <SPAN STYLE=\"color:blue\">\"</SPAN>     <SPAN STYLE=\"color:#990000\">time</SPAN>     <SPAN STYLE=\"color:blue\">=\"</SPAN>     <B>2022-05-16T13:06:16.9564818-07:00</B>     <SPAN STYLE=\"color:blue\">\"</SPAN>     <SPAN STYLE=\"color:#990000\">sourceHealthServiceId</SPAN>     <SPAN STYLE=\"color:blue\">=\"</SPAN>     <B>D95C4085-20BB-6C5A-0151-7C86F9B14C2F</B>     <SPAN STYLE=\"color:blue\">\"</SPAN>     <SPAN STYLE=\"color:blue\">&gt;</SPAN>   </DIV>   <DIV>     <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">       <DIV STYLE=\"margin-left:1em;text-indent:-1em\">         <SPAN STYLE=\"color:blue\">&lt;</SPAN>         <SPAN STYLE=\"color:#990000\">EventData</SPAN>         <SPAN STYLE=\"color:blue\">&gt;</SPAN>       </DIV>       <DIV>         <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">           <DIV STYLE=\"margin-left:1em;text-indent:-2em\">             <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>             <SPAN STYLE=\"color:blue\">&lt;</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>             <SPAN STYLE=\"font-weight:bold\">SCOMNFMPDEV0016-MG</SPAN>             <SPAN STYLE=\"color:blue\">&lt;/</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>           </DIV>         </DIV>         <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">           <DIV STYLE=\"margin-left:1em;text-indent:-2em\">             <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>             <SPAN STYLE=\"color:blue\">&lt;</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>             <SPAN STYLE=\"font-weight:bold\">ManagementGroupDiscoveryAgentConfiguration</SPAN>             <SPAN STYLE=\"color:blue\">&lt;/</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>           </DIV>         </DIV>         <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">           <DIV STYLE=\"margin-left:1em;text-indent:-2em\">             <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>             <SPAN STYLE=\"color:blue\">&lt;</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>             <SPAN STYLE=\"font-weight:bold\">All Management Servers Resource Pool</SPAN>             <SPAN STYLE=\"color:blue\">&lt;/</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>           </DIV>         </DIV>         <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">           <DIV STYLE=\"margin-left:1em;text-indent:-2em\">             <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>             <SPAN STYLE=\"color:blue\">&lt;</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>             <SPAN STYLE=\"font-weight:bold\">{4932D8F0-C8E2-2F4B-288E-3ED98A340B9F}</SPAN>             <SPAN STYLE=\"color:blue\">&lt;/</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>           </DIV>         </DIV>         <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">           <DIV STYLE=\"margin-left:1em;text-indent:-2em\">             <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>             <SPAN STYLE=\"color:blue\">&lt;</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>             <SPAN STYLE=\"font-weight:bold\">Discover Agent Configurations</SPAN>             <SPAN STYLE=\"color:blue\">&lt;/</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>           </DIV>         </DIV>         <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">           <DIV STYLE=\"margin-left:1em;text-indent:-2em\">             <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>             <SPAN STYLE=\"color:blue\">&lt;</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>             <SPAN STYLE=\"font-weight:bold\">300</SPAN>             <SPAN STYLE=\"color:blue\">&lt;/</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>           </DIV>         </DIV>         <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">           <DIV STYLE=\"margin-left:1em;text-indent:-2em\">             <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>             <SPAN STYLE=\"color:blue\">&lt;</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>             <SPAN STYLE=\"font-weight:bold\">System.Management.Automation.CmdletInvocationException: The client has been disconnected from the server. Please call ManagementGroup.Reconnect() to reestablish the connection.At line:9 char:24+ $configurationGroups = Get-SCOMPendingManagement | group AgentPending ...+                        ~~~~~~~~~~~~~~~~~~~~~~~~~  at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)  at Microsoft.EnterpriseManagement.Common.PowerShell.RunspaceController.RunScript[T](String scriptName, String scriptBody, Dictionary`2 parameters, Object[] constructorArgs, IScriptDebug iScriptDebug, Boolean bSerializeOutput)</SPAN>             <SPAN STYLE=\"color:blue\">&lt;/</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>           </DIV>         </DIV>         <DIV STYLE=\"margin-left:1em; text-indent:-1em; margin-right:1em\">           <DIV STYLE=\"margin-left:1em;text-indent:-2em\">             <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>             <SPAN STYLE=\"color:blue\">&lt;</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>             <SPAN STYLE=\"font-weight:bold\">System.Management.Automation.CmdletInvocationException</SPAN>             <SPAN STYLE=\"color:blue\">&lt;/</SPAN>             <SPAN STYLE=\"color:#990000\">Data</SPAN>             <SPAN STYLE=\"color:blue\">&gt;</SPAN>           </DIV>         </DIV>         <DIV>           <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>           <SPAN STYLE=\"color:blue\">&lt;/</SPAN>           <SPAN STYLE=\"color:#990000\">EventData</SPAN>           <SPAN STYLE=\"color:blue\">&gt;</SPAN>         </DIV>       </DIV>     </DIV>     <DIV>       <SPAN STYLE=\"color:red; font-weight:bold;\"> </SPAN>       <SPAN STYLE=\"color:blue\">&lt;/</SPAN>       <SPAN STYLE=\"color:#990000\">DataItem</SPAN>       <SPAN STYLE=\"color:blue\">&gt;</SPAN>     </DIV>   </DIV> </DIV></div>"
]