Database Administration (MOSC)

MOSC Banner

oci-cli operation doesnt work anymore (summarize_metrics_data) : invalid time range for given inter

Hello,

2 weeks ago, I was using an oci-cli operation that doesn't work anymore :

oci monitoring metric-data summarize-metrics-data --query-text 'CpuUtilization[5m].groupBy(resourceName).mean()' --compartment-id ${envs[$ocid]} --namespace oci_database_cluster --start-time '2024-05-07T00:00:00Z' --end-time '2024-05-21T23:59:59Z'> "db_cpu_$ocid"

The returned error is : invalid time range for given interval (300s)

Though, the time range worked 2 weeks ago. I could be fine with it, but I cannot find the information relative to what are the valid time ranges according to ranges of time intervals.

Can someone shed light on that matter ?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center