# NOT RUN {
# Create data frame which contains time series for the given metric
# and all entities for the last 1 hour.
dfr <- query(metric = "disk_used_percent", selection_interval = "1-Hour")
dfr <- query( export_type = "Forecast",
metric = "disk_used_percent",
entity_group = "Linux",
tags = c("mount_point=/boot", "file_system=/dev/sda1"),
selection_interval = "1-Week",
aggregate_statistics = c("Avg", "Min", "Max"),
aggregate_interval = "1-Minute",
interpolation = "Linear")
# Example of the end_time argument usage.
dfr <- query( metric = "cpu_usage",
entity = "host-383",
selection_interval = "1-Day",
end_time = "date('2015-02-10 10:15:03')")
# }
Run the code above in your browser using DataLab