### ExternalAPI of the JavaMelody monitoring

This page lists links to the external API of JavaMelody, including how to get the monitoring data in a XML or JSON format over http. For that, the XStream and XPP3 dependencies are needed in your webapp.
See Documentation.
Warning: The XML and JSON formats are dependent on the internal structure of data in JavaMelody. By using this XML/JSON format, you are coupled on this specific internal structure, which may change anytime without notice.

## JSON format

> ### Statistics

> - Current day
> - Week
> - Month
> - Year
> - All

> ### Current requests

> - Current requests

> ### System information

> - JVM
> - Threads or Threads dump
> - Heap histogram
> - Http sessions
> - MBeans
> - JNDI tree
> - OS processes
> - Opened jdbc connections
> - Database (first report)
> - Hotspots, if enabled

## XML format

> ### Statistics

> - Current day
> - Week
> - Month
> - Year
> - All

> ### Current requests

> - Current requests

> ### System information

> - JVM
> - Threads or Threads dump
> - Heap histogram
> - Http sessions
> - MBeans
> - JNDI tree
> - OS processes
> - Opened jdbc connections
> - Database (first report)
> - Hotspots, if enabled

### PNG and last value

- PNG example: used memory
- Last value example: cpu and used memory

### JMX value

- JMX (MBean) example: cpu time and used memory