get-monitoringobject operation

The get-monitoringobject operation retrieves the details of all the monitoring objects associated with the management server.

The following table describes the <items> XML and request elements for the get-monitoringobject operation:

Adapter request elements for the get-monitoringobject operation

Element

Definition

Required

<operation-name>

Specifies the operation name: get-monitoringobject

Yes

<command-request>

Specifies the parent element for the command elements

Yes

<timeout-secs>

Specifies the duration after which the operation times out

Default value: 60 seconds

No

<command-parameters>

Specifies the parent element for the command parameters

Yes

The following figure illustrates a sample adapter request for the get-monitoringobject operation: 

Sample adapter request for the get-monitoringobject operation

<scom-request>
  <operation-name>get-monitoringobject</operation-name>
  <command-request>
    <timeout-secs>120</timeout-secs>
    <command-parameters />
  </command-request>
</scom-request>


The following figure illustrates the adapter response for the sample request: 

Sample adapter response for the get-monitoringobject operation

<scom-response>
  <metadata>
    <status>success</status>
    <count>1</count>
  </metadata>
  <commands-output>
    <command-output>
      <metadata>
        <command>./Microsoft.EnterpriseManagement.OperationsManager.ClientShell.
        Startup.ps1;get-monitoringobject</command>
        <execution-milliseconds>5812</execution-milliseconds>
        <exit-code>0</exit-code>
        <status>success</status>
        <count>63</count>
      </metadata>
      <output>
        <item>
          <Id>fc2e672f-8c6f-6514-15bd-011ac4750974</Id>
          <PathName>Microsoft.SQLServer.InstanceGroup</PathName>
          <DisplayName>SQL Instances</DisplayName>
          <ManagementMode />
          <ManagementGroup>CATNoida</ManagementGroup>
          <HealthState>Uninitialized</HealthState>
          <OperationalState />
        </item>
        ...
      </output>
    </command-output>
  </commands-output>
</scom-response>
Was this page helpful? Yes No Submitting... Thank you

Comments