Previous page

Next page

Locate page in Contents

Print this page

get_log

Summary:

Retrieves performance logs for the specified server.

Request specification:

Name

Min/Max

Type

Description

get_log

 

 

 

{

 

 

 

eid

1..1

eid_type

The ID of the server to get the data for.

class

0..[]

classType

Performance class. If this element is omitted, retrieves logged data for all classes. The classes specified here must be compatible with the type of the server specified in the eid element. See perf_mon:start_monitor for more info on classes.

start_time

0..1

datetime_type

Start time of the log.

end_time

0..1

datetime_type

End time of the log.

[

 

 

The following two elements are not the children of the end_time element. They are a separate choice group.

records

0..1

int

Number of records to retrieve beginning from the most recent record going back through time. The records will appear in the reverse chronological order, i.e. the most recent record will appear first in the list.

period

0..1

int

Period of logging, i.e. time in seconds between the two neighbouring results in the log. Most of the time the recorded periods in the database will not be equal to the requested ones, so recalculation and approximation will be used. If an interval doesn't have a value, it means that there is no information in the log from which the result can be approximated.

]

 

 

 

report_empty

0..1

none

If this element is included then absent data intervals will be reported explicitly.

}

 

 

 

Returns:

Name

Min/Max

Type

Description

data

0..[]

perf_dataType

Performance data.

Example:

Retrieving performance logs for the specified server for the class counters_vz_cpu.

Input

<packet version="4.0.0">

<target>res_log</target>

<data>

<res_log>

<get_log>

<eid>565b96bd-d2da-4c7e-a212-0943a4bd6b29</eid>

<class>

<name>counters_vz_cpu</name>

</class>

<records>5</records>

<report_empty/>

</get_log>

</res_log>

</data>

</packet>

Output

<ns1:packet xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="3ec4683b8e5t1547rb2c" time="2007-06-28T17:22:55+0000" priority="0" version="4.0.0">

<ns1:origin>perf_mon</ns1:origin>

<ns1:target>vzclient1-6d9ea6b6-e470-424b-98ca-27dd10e49860</ns1:target>

<ns1:dst>

<ns1:director>gend</ns1:director>

</ns1:dst>

<ns1:data>

<ns1:perf_mon>

<ns1:data>

<ns1:eid>1649d32f-3e18-6642-9690-4fe3cd406eb0</ns1:eid>

<ns1:interval>

<ns1:start_time>2007-06-28T17:22:35+0000</ns1:start_time>

<ns1:end_time>2007-06-28T17:22:55+0000</ns1:end_time>

</ns1:interval>

<ns1:class>

<ns1:name>counters_vz_cpu</ns1:name>

<ns1:instance>

<ns1:name></ns1:name>

<ns1:counter>

<ns1:name>counter_cpu_system</ns1:name>

<ns1:value>

<ns1:avg>180</ns1:avg>

<ns1:min>87</ns1:min>

<ns1:max>87</ns1:max>

<ns1:cur>87</ns1:cur>

</ns1:value>

</ns1:counter>

</ns1:instance>

</ns1:class>

</ns1:data>

</ns1:perf_mon>

</ns1:data>

<ns1:src>

<ns1:director>gend</ns1:director>

</ns1:src>

</ns1:packet>

Please send us your feedback on this help page