Selecting the Statistic for a Query
Select the statistic for querying metric data in Monitoring. The statistic is the aggregation function applied to the set of raw data points at the specified interval.
 Example: Mean Statistic

CpuUtilization[1m].mean()
For valid statistic options in MQL expressions, see Statistic. For alarm instructions, see Creating a Basic Alarm.
This section describes how to select the statistic on the Metrics Explorer page. For alarm query edits, see Creating a Basic Alarm.
Use the oci monitoring metricdata summarizemetricsdata command and required parameters to query metric data. Use the
querytext
parameter to select the statistic (part of the MQL expression).oci monitoring metricdata summarizemetricsdata [...] querytext <mql_expression> [OPTIONS]
For valid statistic options in MQL expressions, see Statistic.
For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Monitoring.
Run the SummarizeMetricsData operation to query metric data. Use the
query
attribute to select the statistic (part of the MQL expression). For an example, see SummarizeMetricsDataDetails.For valid statistic options in MQL expressions, see Statistic.