koigrid 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to the koigrid CLI are documented here. Format: [Keep a Chan
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.24.0] — 2026-11-30
8
+
9
+ ### Added
10
+
11
+ - `koigrid db metrics <id>` and `koigrid redis metrics <id>` accept `--since <ISO> [--until <ISO>]` for any window of up to 168 h (like CloudWatch GetMetricData StartTime/EndTime), instead of only the last `--hours`. A week at `--bucket 5m` now fits (2016 points).
12
+
7
13
  ## [0.23.0] — 2026-11-30
8
14
 
9
15
  ### Added
@@ -126,10 +126,10 @@ export async function db(a) {
126
126
  return output(l, false, { rows: l.map((x) => ({ member: x.member, role: x.role + (x.papel === 'dr' ? ' (dr)' : ''), allocated: x.measured ? `${x.allocatedGb} GB` : 'not measured', used: x.measured ? `${x.usedGb} GB` : '', pct: x.measured ? `${x.usedPct}%` : '', ago: x.measured ? `${x.measuredAgoSec}s` : '' })), columns: ['member', 'role', 'allocated', 'used', 'pct', 'ago'] });
127
127
  }
128
128
  case 'metrics': {
129
- // ?metric=a,b · ?bucket=5m&stat=max · ?hours (ficha c6f869c8, como CloudWatch GetMetricData)
129
+ // ?metric=a,b · ?bucket=5m&stat=max · ?hours o ?since=&until= (ficha c6f869c8, como CloudWatch GetMetricData)
130
130
  need();
131
131
  const q = new URLSearchParams();
132
- for (const k of ['hours', 'metric', 'bucket', 'stat'])
132
+ for (const k of ['hours', 'metric', 'bucket', 'stat', 'since', 'until'])
133
133
  if (a.flags[k] != null)
134
134
  q.set(k, String(a.flags[k]));
135
135
  return console.log(JSON.stringify(await api(`/databases/${encodeURIComponent(id)}/metrics${q.size ? `?${q}` : ''}`), null, 2));
@@ -49,10 +49,10 @@ export async function redis(a) {
49
49
  return process.exit(res.status ?? 0);
50
50
  }
51
51
  case 'metrics': {
52
- // ?metric=a,b · ?bucket=5m&stat=max · ?hours (ficha c6f869c8, como CloudWatch GetMetricData)
52
+ // ?metric=a,b · ?bucket=5m&stat=max · ?hours o ?since=&until= (ficha c6f869c8, como CloudWatch GetMetricData)
53
53
  need();
54
54
  const q = new URLSearchParams();
55
- for (const k of ['hours', 'metric', 'bucket', 'stat'])
55
+ for (const k of ['hours', 'metric', 'bucket', 'stat', 'since', 'until'])
56
56
  if (a.flags[k] != null)
57
57
  q.set(k, String(a.flags[k]));
58
58
  return console.log(JSON.stringify(await api(`/redis/${encodeURIComponent(id)}/metrics${q.size ? `?${q}` : ''}`), null, 2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koigrid",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "koigrid CLI — deploy apps, databases, redis, storage and more from your terminal (or your AI agent).",
5
5
  "bin": {
6
6
  "koigrid": "dist/index.js"