此内容没有您所选择的语言版本。
24.2. Exporting Raw Data
Raw monitoring data is, by default, purged from the database every week. To save the raw data, export it using the CLI.
The
MeasurementDataManager
class has a method to find the metric values for a specific resource within a certain time range:
findDataForResource(resourceId,[metricId],startTime,endTime,numberOfRecords)
findDataForResource(resourceId,[metricId],startTime,endTime,numberOfRecords)
For example, for a resource with the ID 10003 and a metric ID of 10473: