Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Service statistics resource


The service statistics resource lets you retrieve the statistical information of services used by your HCP system.

Data type

Method

Use

Access

Notes

.../services/statistics

serviceStatistics

GET

Retrieve the statistics of services used by the HCP system

System-level user with the administrator or monitor role.

 

© 2015, 2019 Hitachi Vantara Corporation. All rights reserved.

Example: Retrieving service statistics


Here is a sample request that retrieves service statistics for a system. In this example, statistics are collected on a service that is running, a service that is ready to run, and a service that is currently disabled.

Request with cURL command line

curl -ik -H "Authorization: HCP ZGVa3b9c17d52107f34fhdb83c7a5" -H "Accept: application/xml" "https://admin.hcp.example.com:9090/m...cs?prettyprint"

Response body in XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<serviceStatistics>
     <requestTime>1524773822369</requestTime>
     <services>
          <service>
               <name>StorageTieringService</name>
               <state>RUNNING</state>
               <startTime>1524773425</startTime>
               <endTime>-1</endTime>
               <performanceLevel>MEDIUM</performanceLevel>
               <objectsExamined>0</objectsExamined>
               <objectsServiced>0</objectsServiced>
               <objectsUnableToService>0</objectsUnableToService>
          </service>
          <service>
               <name>GarbageCollection</name>
               <state>READY</state>
               <startTime>1523624400</startTime>
               <endTime>1523624748</endTime>
               <objectsExamined>29530</objectsExamined>
               <objectsServiced>27570</objectsServiced>
               <objectsUnableToService>5</objectsUnableToService>
          </service>
          <service>
               <name>RetirementPolicy</name>
               <state>DISABLED</state>
               <startTime>-1</startTime>
               <endTime>-1</endTime>
               <objectsExamined>0</objectsExamined>
               <objectsServiced>0</objectsServiced>
               <objectsUnableToService>0</objectsUnableToService>
          </service>
     </services>
<serviceStatistics>

© 2015, 2019 Hitachi Vantara Corporation. All rights reserved.

 

  • Was this article helpful?