You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -239,12 +261,28 @@ Choose this method if no pre-compiled binary suits your system, you want to buil
239
261
240
262
-**get_metrics** - Get performance metrics for any Render resource (services, Postgres databases, key-value stores). Metrics may be empty if the metric is not valid for the given resource
241
263
-`resourceId`: The ID of the resource to get metrics for (service ID, Postgres ID, or key-value store ID) (string, required)
242
-
-`metricTypes`: Which metrics to fetch (array of strings, required). Accepted values: 'cpu_usage', 'cpu_limit', 'cpu_target', 'memory_usage', 'memory_limit', 'memory_target', 'http_request_count', 'active_connections', 'instance_count', 'http_latency', 'bandwidth_usage'. CPU usage/limits/targets, memory usage/limits/targets, and instance count metrics are available for all resources. HTTP request counts and response time metrics, and bandwidth usage metrics are only available for services. Active connection metrics are only available for databases and key-value stores. Limits show resource constraints, targets show autoscaling thresholds
264
+
-`metricTypes`: Which metrics to fetch (array of strings, required). Accepted values:
265
+
-`cpu_usage`: CPU usage metrics (available for all resources)
266
+
-`cpu_limit`: CPU resource constraints (available for all resources)
267
+
-`cpu_target`: CPU autoscaling thresholds (available for all resources)
268
+
-`memory_usage`: Memory usage metrics (available for all resources)
269
+
-`memory_limit`: Memory resource constraints (available for all resources)
270
+
-`memory_target`: Memory autoscaling thresholds (available for all resources)
271
+
-`instance_count`: Instance count metrics (available for all resources)
-`active_connections`: Active connection metrics (databases and key-value stores only)
243
276
-`startTime`: Start time for metrics query in RFC3339 format (e.g., '2024-01-01T12:00:00Z'), defaults to 1 hour ago. The start time must be within the last 30 days (string, optional)
244
277
-`endTime`: End time for metrics query in RFC3339 format (e.g., '2024-01-01T13:00:00Z'), defaults to the current time. The end time must be within the last 30 days (string, optional)
245
278
-`resolution`: Time resolution for data points in seconds. Lower values provide more granular data. Higher values provide more aggregated data points. API defaults to 60 seconds if not provided, minimum 30 seconds (number, optional)
246
-
-`cpuUsageAggregationMethod`: Method for aggregating CPU usage metric values over time intervals. Accepted values: 'AVG', 'MAX', 'MIN', defaults to 'AVG' (string, optional)
247
-
-`aggregateHttpRequestCountsBy`: Field to aggregate HTTP request count metrics by. Accepted values: 'host' (aggregate by request host), 'statusCode' (aggregate by HTTP status code). When not specified, returns total request counts (string, optional)
279
+
-`cpuUsageAggregationMethod`: Method for aggregating CPU usage metric values over time intervals (string, optional). Defaults to `AVG`. Accepted values:
280
+
-`AVG`: Average CPU usage over time intervals
281
+
-`MAX`: Maximum CPU usage over time intervals
282
+
-`MIN`: Minimum CPU usage over time intervals
283
+
-`aggregateHttpRequestCountsBy`: Field to aggregate HTTP request count metrics by (string, optional). When not specified, returns total request counts. Accepted values:
284
+
-`host`: Aggregate by request host
285
+
-`statusCode`: Aggregate by HTTP status code
248
286
-`httpLatencyQuantile`: The quantile/percentile of HTTP latency to fetch. Only supported for http_latency metric. Common values: 0.5 (median), 0.95 (95th percentile), 0.99 (99th percentile). Defaults to 0.95 if not specified (number, optional, min: 0.0, max: 1.0)
249
287
-`httpHost`: Filter HTTP metrics to specific request hosts. Supported for http_request_count and http_latency metrics. Example: 'api.example.com' or 'myapp.render.com'. When not specified, includes all hosts (string, optional)
250
288
-`httpPath`: Filter HTTP metrics to specific request paths. Supported for http_request_count and http_latency metrics. Example: '/api/users' or '/health'. When not specified, includes all paths (string, optional)
@@ -266,8 +304,36 @@ Choose this method if no pre-compiled binary suits your system, you want to buil
266
304
267
305
-**create_postgres** - Create a new PostgreSQL database
268
306
-`name`: Name of the PostgreSQL database (string, required)
0 commit comments