@hoststack.dev/mcp 0.6.0 → 0.7.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/README.md CHANGED
@@ -79,22 +79,24 @@ If `HOSTSTACK_API_KEY` is set in your shell, it gets baked into the snippet; oth
79
79
 
80
80
  ## Tool inventory
81
81
 
82
- 45 tools, grouped by resource:
83
-
84
- | Category | Read | Write |
85
- | ---------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
86
- | **projects** | `list_projects`, `get_project` | `create_project`, `update_project` |
87
- | **services** | `list_services`, `get_service`, `get_service_metrics`, `get_service_logs` | `update_service`, `update_service_config`, `suspend_service`, `resume_service` |
88
- | **deploys** | `list_deploys`, `get_deploy`, `get_deploy_logs` | `trigger_deploy`, `cancel_deploy` |
89
- | **environments** | `list_environments` | `create_environment`, `delete_environment`, `promote_deploy` |
90
- | **databases** | `list_databases`, `get_database` | (use the dashboard for create/delete/credentials) |
91
- | **volumes** | `list_volumes` | `create_volume`, `update_volume`, `delete_volume` |
92
- | **domains** | `list_domains` | `add_domain`, `verify_domain`, `remove_domain` |
93
- | **dns** | `list_dns_zones`, `list_dns_records`, `get_dns_record` | `create_dns_record`, `update_dns_record`, `delete_dns_record` |
94
- | **env-vars** | `list_env_vars` | `set_env_var`, `delete_env_var`, `bulk_set_env_vars` |
95
- | **cron** | `list_cron_executions`, `get_cron_execution` | — |
96
- | **activity-log** | `list_activity_log` | |
97
- | **meta** | `get_me` | — |
82
+ 55 tools, grouped by resource:
83
+
84
+ | Category | Read | Write |
85
+ | ----------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
86
+ | **projects** | `list_projects`, `get_project` | `create_project`, `update_project` |
87
+ | **services** | `list_services`, `get_service`, `get_service_metrics`, `get_service_metrics_history`, `get_service_logs`, `get_service_logs_bulk` | `update_service`, `update_service_config`, `suspend_service`, `resume_service` |
88
+ | **deploys** | `list_deploys`, `get_deploy`, `get_deploy_logs`, `diagnose_deploy` | `trigger_deploy`, `cancel_deploy` |
89
+ | **environments** | `list_environments` | `create_environment`, `delete_environment`, `promote_deploy` |
90
+ | **databases** | `list_databases`, `get_database` | `update_database` (use the dashboard for create/delete/credentials) |
91
+ | **volumes** | `list_volumes` | `create_volume`, `update_volume`, `delete_volume` |
92
+ | **domains** | `list_domains` | `add_domain`, `verify_domain`, `remove_domain` |
93
+ | **dns** | `list_dns_zones`, `list_dns_records`, `get_dns_record` | `create_dns_record`, `update_dns_record`, `delete_dns_record` |
94
+ | **env-vars** | `list_env_vars` | `set_env_var`, `delete_env_var`, `bulk_set_env_vars` |
95
+ | **cron** | `list_cron_executions`, `get_cron_execution` | — |
96
+ | **notifications** | `list_notification_channels` | `create_notification_channel`, `update_notification_channel`, `delete_notification_channel`, `test_notification_channel` |
97
+ | **alerts** | `list_alerts` | — |
98
+ | **activity-log** | `list_activity_log` | — |
99
+ | **meta** | `get_me` | — |
98
100
 
99
101
  A few design notes worth knowing as a caller:
100
102
 
@@ -483,21 +483,31 @@ defineTool({
483
483
  "",
484
484
  'By default events are AGGREGATED by (action, resourceId) so flapping events collapse to one row with a fire count + first/last timestamps \u2014 e.g. "service.auto_restarted on service 31, 8 times in the last hour, last at 14:22". Pass aggregate=false to see every raw row.',
485
485
  "",
486
+ 'ACTIVE vs HISTORICAL (v89): each aggregated entry now has an `active` boolean and a `lastResolvedAt` timestamp. `active=true` means the most recent occurrence has NOT been resolved \u2014 the alert is still on fire. The default `active=true` filter hides resolved/historical alerts so triage starts with "what is broken right now". Pass `active=false` to include resolved entries too (useful for post-mortems). Resolution is automatic for some alert kinds \u2014 e.g. `deploy.failed_consecutive` is cleared when the next deploy of the same service goes live.',
487
+ "",
488
+ 'Database backup_failed entries (v89) include `containerStatus` / `containerHealth` / `containerExitCode` in lastMetadata when the agent could resolve the container at failure time, so you can tell "Redis is overloaded" apart from "Redis is restarting" without a second tool call.',
489
+ "",
490
+ "Deploy.failed_consecutive entries (v89) carry the offending `commitHash` in lastMetadata, and the streak now dedupes per (service, commitHash) \u2014 one critical per bad commit, not one every 6 retries.",
491
+ "",
486
492
  "Inputs (all optional):",
487
493
  ' - since: ISO-8601 timestamp OR relative offset like "-1h" / "-2d". Default: -24h.',
488
494
  " - until: ISO-8601 upper bound (ignored when aggregating \u2014 aggregated view always extends to now).",
489
495
  " - limit: max rows (default 100, hard cap 500).",
490
496
  " - aggregate: true (default) collapses by (action, resourceId); false returns raw rows.",
497
+ " - active: true (default) shows only alerts that are still on fire (resolved_at IS NULL on the most recent row). false includes resolved historical alerts.",
491
498
  "",
492
- "Returns: { alerts: Array, aggregated: boolean }. Each aggregated entry includes action, resourceType, resourceId, severity, count, firstFiredAt, lastFiredAt, lastMetadata. Each raw entry includes id, action, resourceType, resourceId, severity, metadata, createdAt.",
499
+ "Returns: { alerts: Array, aggregated: boolean, activeOnly: boolean }. Each aggregated entry includes action, resourceType, resourceId, severity, count, firstFiredAt, lastFiredAt, lastResolvedAt (nullable), active (boolean), lastMetadata. Each raw entry adds resolvedAt (nullable).",
493
500
  "",
494
- "Example: list_alerts({ since: '-1h' }) \u2192 { alerts: [{ action: 'deploy.failed', resourceId: 31, severity: 'error', count: 3, lastFiredAt: '\u2026', \u2026 }] }."
501
+ "Example: list_alerts({ since: '-1h' }) \u2192 { alerts: [{ action: 'deploy.failed_consecutive', resourceId: 31, severity: 'critical', active: true, count: 3, lastFiredAt: '\u2026', lastResolvedAt: null, lastMetadata: { commitHash: 'abc1234' }, \u2026 }] }."
495
502
  ].join("\n"),
496
503
  input: {
497
504
  since: z3.string().optional().describe('ISO-8601 timestamp or relative offset (e.g. "-1h", "-2d"). Default: -24h.'),
498
505
  until: z3.string().optional().describe("ISO-8601 upper bound. Only honored when aggregate=false."),
499
506
  limit: z3.number().int().positive().max(500).optional().describe("Max rows (default 100, hard cap 500)."),
500
- aggregate: z3.boolean().optional().describe("Collapse by (action, resourceId). Default true.")
507
+ aggregate: z3.boolean().optional().describe("Collapse by (action, resourceId). Default true."),
508
+ active: z3.boolean().optional().describe(
509
+ "Only return alerts still on fire (resolved_at IS NULL on the most recent row). Default true. Pass false to include resolved historical alerts."
510
+ )
501
511
  },
502
512
  handler: async (args2, ctx) => {
503
513
  const teamId = await ctx.resolveTeamId();
@@ -506,11 +516,13 @@ defineTool({
506
516
  if (args2.until !== void 0) params["until"] = args2.until;
507
517
  if (args2.limit !== void 0) params["limit"] = String(args2.limit);
508
518
  if (args2.aggregate === false) params["aggregate"] = "0";
519
+ if (args2.active === false) params["active"] = "0";
509
520
  const response = await ctx.api.get(`/api/alerts/${teamId}`, params);
510
521
  const items = Array.isArray(response.alerts) ? response.alerts.map(shape) : [];
511
522
  const aggregated = Boolean(response.aggregated);
512
- const summary = items.length === 0 ? "No alerts in the requested window \u2014 everything is operating normally." : aggregated ? `Returned ${items.length} alert group${items.length === 1 ? "" : "s"} (flapping events collapsed).` : `Returned ${items.length} raw alert event${items.length === 1 ? "" : "s"}.`;
513
- return respond({ summary, data: { alerts: items, aggregated } });
523
+ const activeOnly = args2.active !== false;
524
+ const summary = items.length === 0 ? activeOnly ? "No active alerts in the requested window \u2014 everything is operating normally." : "No alerts in the requested window (active or resolved)." : aggregated ? `Returned ${items.length} alert group${items.length === 1 ? "" : "s"}${activeOnly ? " (active only \u2014 pass active=false for resolved history)" : ""} (flapping events collapsed).` : `Returned ${items.length} raw alert event${items.length === 1 ? "" : "s"}.`;
525
+ return respond({ summary, data: { alerts: items, aggregated, activeOnly } });
514
526
  }
515
527
  });
516
528
 
@@ -613,7 +625,7 @@ defineTool({
613
625
  "Inputs:",
614
626
  ' - database_id: publicId of the database (e.g. "db_\u2026").',
615
627
  " - name (optional): new database name.",
616
- ' - plan (optional): "free" | "starter" | "standard" | "pro" \u2014 changes memory tier.',
628
+ ' - plan (optional): "free" | "micro" | "starter" | "standard" | "pro" \u2014 changes memory tier.',
617
629
  " - disk_size_gb (optional): new disk size in GB (must be \u2265 current).",
618
630
  "",
619
631
  "Returns: { database: Database } \u2014 the updated record.",
@@ -623,7 +635,7 @@ defineTool({
623
635
  input: {
624
636
  database_id: z5.string().describe("Database publicId (e.g. db_xyz)."),
625
637
  name: z5.string().min(1).max(100).optional().describe("New database name."),
626
- plan: z5.enum(["free", "starter", "standard", "pro"]).optional().describe("Plan tier (memory/CPU)."),
638
+ plan: z5.enum(["free", "micro", "starter", "standard", "pro"]).optional().describe("Plan tier (memory/CPU)."),
627
639
  disk_size_gb: z5.number().int().min(1).max(1024).optional().describe("New disk size in GB. Must be \u2265 current.")
628
640
  },
629
641
  handler: async (args2, ctx) => {
@@ -682,7 +694,7 @@ defineTool({
682
694
  "Inputs:",
683
695
  ' - service_id: publicId of the service (e.g. "svc_abc123"). Use list_services to find it.',
684
696
  "",
685
- "Returns: { items: Deploy[] } \u2014 each deploy includes id, publicId, status (pending|building|deploying|live|failed|cancelled), commitSha, commitMessage, branch, triggeredBy, startedAt, finishedAt, buildDurationMs (just the docker build / image-pull step), totalDurationMs (full deploy wall-clock = finishedAt \u2212 startedAt).",
697
+ 'Returns: { items: Deploy[] } \u2014 each deploy includes id, publicId, status (pending|building|deploying|live|failed|cancelled), commitSha, commitMessage, branch, triggeredBy, startedAt, finishedAt, imageBuildMs (docker build / image-pull only; null on skip-build redeploys \u2014 v89), containerBootMs (deploying \u2192 live wall-clock; null on builds that failed before container start \u2014 v89), buildDurationMs (legacy alias of imageBuildMs kept for back-compat), totalDurationMs (full deploy wall-clock = finishedAt \u2212 startedAt). Use imageBuildMs + containerBootMs together to tell "build is slow" apart from "boot is slow".',
686
698
  "",
687
699
  'Example: list_deploys({ service_id: "svc_abc" }) \u2192 { items: [{ publicId: "dpl_\u2026", status: "live", commitMessage: "Fix login", \u2026 }, \u2026] }'
688
700
  ].join("\n"),
@@ -709,7 +721,7 @@ defineTool({
709
721
  " - service_id: publicId of the service.",
710
722
  ' - deploy_id: publicId of the deploy (e.g. "dpl_\u2026").',
711
723
  "",
712
- "Returns: { deploy: Deploy } \u2014 full deploy record (status, commitSha, commitMessage, branch, buildDurationMs, totalDurationMs, finishedAt, etc).",
724
+ "Returns: { deploy: Deploy } \u2014 full deploy record (status, commitSha, commitMessage, branch, imageBuildMs + containerBootMs (v89 split timings; legacy buildDurationMs preserved as alias), totalDurationMs, finishedAt, etc).",
713
725
  "",
714
726
  'Example: get_deploy({ service_id: "svc_abc", deploy_id: "dpl_xyz" }) \u2192 { deploy: { status: "live", \u2026 } }'
715
727
  ].join("\n"),
@@ -1703,7 +1715,9 @@ defineTool({
1703
1715
  type: z11.enum(["slack", "discord", "email"]).describe("Channel type."),
1704
1716
  name: z11.string().min(1).max(128).describe("Human-readable label."),
1705
1717
  webhook_url: z11.string().max(500).describe("Slack/Discord webhook URL or email address (when type=email)."),
1706
- events: z11.array(z11.enum(NOTIFICATION_EVENTS)).describe("List of events the channel subscribes to. Empty list = subscribe to nothing.")
1718
+ events: z11.array(z11.enum(NOTIFICATION_EVENTS)).describe(
1719
+ "List of events the channel subscribes to. Empty list = subscribe to nothing."
1720
+ )
1707
1721
  },
1708
1722
  handler: async (args2, ctx) => {
1709
1723
  const teamId = await ctx.resolveTeamId();
@@ -2004,24 +2018,30 @@ defineTool({
2004
2018
  name: "get_service",
2005
2019
  category: "services",
2006
2020
  description: [
2007
- "Fetch a single service by ID, including its current status and configuration summary.",
2021
+ "Fetch a single service by ID with its current status AND its service_config row (resources, health-check tuning, scaling, restart policy).",
2008
2022
  "",
2009
- "When to use: drilling into a service after list_services, checking deploy/runtime status, or grabbing the repo+branch before triggering a deploy.",
2023
+ "When to use: drilling into a service after list_services, checking deploy/runtime status, grabbing the repo+branch before triggering a deploy, or inspecting the health-check / autoscale knobs before tweaking them via update_service_config.",
2010
2024
  "",
2011
2025
  "Inputs:",
2012
2026
  ' - service_id: publicId of the service (e.g. "svc_abc123").',
2013
2027
  "",
2014
- "Returns: { service: Service } \u2014 type, status, runtime, repoUrl, branch, autoDeploy, region, plan, createdAt, updatedAt.",
2028
+ "Returns: { service: Service, config: ServiceConfig } \u2014 service has type/status/runtime/repoUrl/branch/autoDeploy/region/plan/timestamps; config has memoryMb, cpuShares, diskSizeGb, port, protocol, healthCheckEnabled, healthCheckInterval, healthCheckTimeout, healthCheckGracePeriodSec, restartPolicy, preDeployCommand, min/maxInstances, scale thresholds.",
2015
2029
  "",
2016
- 'Example: get_service({ service_id: "svc_abc" }) \u2192 { service: { type: "web", status: "running", \u2026 } }'
2030
+ 'Example: get_service({ service_id: "svc_abc" }) \u2192 { service: { type: "web", status: "running", \u2026 }, config: { healthCheckGracePeriodSec: 120, \u2026 } }'
2017
2031
  ].join("\n"),
2018
2032
  input: {
2019
2033
  service_id: z13.string().describe("Service publicId (e.g. svc_abc123).")
2020
2034
  },
2021
2035
  handler: async (args2, ctx) => {
2022
2036
  const teamId = await ctx.resolveTeamId();
2023
- const response = await ctx.hoststack.services.get(teamId, args2.service_id);
2024
- const data = { service: shapeService(response.service) };
2037
+ const [serviceResponse, configResponse] = await Promise.all([
2038
+ ctx.hoststack.services.get(teamId, args2.service_id),
2039
+ ctx.hoststack.services.getConfig(teamId, args2.service_id)
2040
+ ]);
2041
+ const data = {
2042
+ service: shapeService(serviceResponse.service),
2043
+ config: shape(configResponse.config)
2044
+ };
2025
2045
  const status = data.service && "status" in data.service ? data.service.status : "unknown";
2026
2046
  return respond({ summary: `Service ${args2.service_id} is ${status}.`, data });
2027
2047
  }
@@ -2133,9 +2153,9 @@ defineTool({
2133
2153
  name: "update_service_config",
2134
2154
  category: "services",
2135
2155
  description: [
2136
- "Update build/runtime configuration for a service: build command, start command, install command, branch, root directory, dockerfile path, auto-deploy flag, instance count. All fields optional \u2014 pass only what you want to change.",
2156
+ "Update build/runtime configuration for a service. All fields optional \u2014 pass only what you want to change.",
2137
2157
  "",
2138
- "When to use: the user wants to tweak how a service builds or runs. Build/runtime fields (branch, install/build/start command, root, dockerfile) take effect on the next deploy \u2014 call trigger_deploy after if you need them applied immediately. instance_count rescales without a redeploy.",
2158
+ "When to use: the user wants to tweak how a service builds, runs, scales, or health-checks. Build/runtime fields (branch, install/build/start command, root, dockerfile) take effect on the next deploy \u2014 call trigger_deploy after if you need them applied immediately. Instance_count, resource and health-check changes rescale or rewire without a redeploy.",
2139
2159
  "",
2140
2160
  "Inputs:",
2141
2161
  " - service_id: publicId of the service.",
@@ -2144,12 +2164,26 @@ defineTool({
2144
2164
  " - root_directory (optional): build context root inside the repo.",
2145
2165
  " - dockerfile_path (optional): path to Dockerfile relative to root_directory. Pass null to clear.",
2146
2166
  " - auto_deploy (optional): boolean \u2014 auto-deploy on git push.",
2147
- " - instance_count (optional): integer \u22651 \u2014 pin both min and max instances to this value.",
2167
+ ' - health_check_path (optional): HTTP path the platform GETs to verify liveness (e.g. "/health"). Pass null for TCP-only check.',
2168
+ " - health_check_enabled (optional): boolean \u2014 toggle health checking on/off.",
2169
+ " - health_check_interval (optional): integer 5\u2013300 seconds \u2014 how often the check runs.",
2170
+ " - health_check_timeout (optional): integer 1\u201360 seconds \u2014 single-attempt timeout.",
2171
+ ' - health_check_grace_period_sec (optional): integer 1\u20131800 seconds \u2014 startup tolerance before failures count. RAISE THIS (e.g. 180) when the agent reports "Health check timed out" on a cold-boot app (Bun + Vite SSR typically need 90\u2013180s).',
2172
+ " - memory_mb (optional): integer 128\u201316384 \u2014 container memory cap.",
2173
+ " - cpu_shares (optional): integer 128\u20134096 \u2014 relative CPU weight.",
2174
+ " - disk_size_gb (optional): integer 1\u2013100 \u2014 ephemeral disk cap.",
2175
+ " - port (optional): integer 1\u201365535 \u2014 container port the platform forwards traffic to.",
2176
+ ' - protocol (optional): "http" | "tcp".',
2177
+ ' - restart_policy (optional): "always" | "on-failure" | "no".',
2178
+ " - pre_deploy_command (optional): shell command run before the new release accepts traffic (typical use: migrations).",
2179
+ " - instance_count (optional): integer 1\u201350 \u2014 pin both min and max instances to this value.",
2180
+ " - min_instances, max_instances (optional): integers \u2014 autoscale bounds. Use instead of instance_count when you want a range.",
2181
+ " - scale_cpu_threshold, scale_memory_threshold (optional): integer 10\u2013100 \u2014 autoscale trigger percentage.",
2148
2182
  ' - log_filter_rules (optional): list of { pattern, action } rules applied to runtime logs at query time. Pattern matches the message by case-insensitive substring; action is "drop" (filter out) or "downgrade" (flip stderr \u2192 stdout so it stops looking like an error). Pass [] to clear all rules. Capped at 50 rules.',
2149
2183
  "",
2150
2184
  "Returns: { service?: Service, config?: ServiceConfig } \u2014 whichever rows were touched.",
2151
2185
  "",
2152
- 'Example: update_service_config({ service_id: "svc_abc", start_command: "bun apps/api/src/index.ts" }) \u2192 { service: { startCommand: "bun apps/api/src/index.ts", \u2026 } }'
2186
+ 'Example: update_service_config({ service_id: "svc_abc", health_check_grace_period_sec: 180 }) \u2192 { config: { healthCheckGracePeriodSec: 180, \u2026 } }'
2153
2187
  ].join("\n"),
2154
2188
  input: {
2155
2189
  service_id: z13.string().describe("Service publicId."),
@@ -2160,7 +2194,25 @@ defineTool({
2160
2194
  root_directory: z13.string().optional().describe("Build context root."),
2161
2195
  dockerfile_path: z13.string().nullable().optional().describe("Path to Dockerfile relative to root. Null clears."),
2162
2196
  auto_deploy: z13.boolean().optional().describe("Auto-deploy on push."),
2197
+ health_check_path: z13.string().nullable().optional().describe('HTTP health-check path (e.g. "/health"). Null = TCP-only check.'),
2198
+ health_check_enabled: z13.boolean().optional().describe("Toggle health checking on/off."),
2199
+ health_check_interval: z13.number().int().min(5).max(300).optional().describe("How often the check runs, in seconds (5\u2013300)."),
2200
+ health_check_timeout: z13.number().int().min(1).max(60).optional().describe("Single-attempt timeout in seconds (1\u201360)."),
2201
+ health_check_grace_period_sec: z13.number().int().min(1).max(1800).optional().describe(
2202
+ "Startup grace period in seconds (1\u20131800). Raise this if the app needs more time to boot before health checks start counting failures."
2203
+ ),
2204
+ memory_mb: z13.number().int().min(128).max(16384).optional().describe("Container memory cap in MB (128\u201316384)."),
2205
+ cpu_shares: z13.number().int().min(128).max(4096).optional().describe("Relative CPU weight (128\u20134096)."),
2206
+ disk_size_gb: z13.number().int().min(1).max(100).optional().describe("Ephemeral disk size in GB (1\u2013100)."),
2207
+ port: z13.number().int().min(1).max(65535).optional().describe("Container port the platform forwards traffic to."),
2208
+ protocol: z13.enum(["http", "tcp"]).optional().describe("Traffic protocol."),
2209
+ restart_policy: z13.enum(["always", "on-failure", "no"]).optional().describe("Docker restart policy."),
2210
+ pre_deploy_command: z13.string().optional().describe("Shell command run before the new release accepts traffic."),
2163
2211
  instance_count: z13.number().int().positive().max(50).optional().describe("Pin min and max instances to this value (1\u201350)."),
2212
+ min_instances: z13.number().int().min(0).max(50).optional().describe("Autoscale lower bound. Use with max_instances for a range."),
2213
+ max_instances: z13.number().int().min(1).max(50).optional().describe("Autoscale upper bound. Use with min_instances for a range."),
2214
+ scale_cpu_threshold: z13.number().int().min(10).max(100).optional().describe("Autoscale CPU trigger percentage (10\u2013100)."),
2215
+ scale_memory_threshold: z13.number().int().min(10).max(100).optional().describe("Autoscale memory trigger percentage (10\u2013100)."),
2164
2216
  log_filter_rules: z13.array(
2165
2217
  z13.object({
2166
2218
  pattern: z13.string().min(1).max(200),
@@ -2182,11 +2234,35 @@ defineTool({
2182
2234
  if (args2.branch !== void 0) serviceUpdate["branch"] = args2.branch;
2183
2235
  if (args2.root_directory !== void 0) serviceUpdate["rootDirectory"] = args2.root_directory;
2184
2236
  if (args2.auto_deploy !== void 0) serviceUpdate["autoDeploy"] = args2.auto_deploy;
2237
+ if (args2.health_check_path !== void 0)
2238
+ serviceUpdate["healthCheckPath"] = args2.health_check_path;
2185
2239
  const configUpdate = {};
2240
+ if (args2.health_check_enabled !== void 0)
2241
+ configUpdate["healthCheckEnabled"] = args2.health_check_enabled;
2242
+ if (args2.health_check_interval !== void 0)
2243
+ configUpdate["healthCheckInterval"] = args2.health_check_interval;
2244
+ if (args2.health_check_timeout !== void 0)
2245
+ configUpdate["healthCheckTimeout"] = args2.health_check_timeout;
2246
+ if (args2.health_check_grace_period_sec !== void 0)
2247
+ configUpdate["healthCheckGracePeriodSec"] = args2.health_check_grace_period_sec;
2248
+ if (args2.memory_mb !== void 0) configUpdate["memoryMb"] = args2.memory_mb;
2249
+ if (args2.cpu_shares !== void 0) configUpdate["cpuShares"] = args2.cpu_shares;
2250
+ if (args2.disk_size_gb !== void 0) configUpdate["diskSizeGb"] = args2.disk_size_gb;
2251
+ if (args2.port !== void 0) configUpdate["port"] = args2.port;
2252
+ if (args2.protocol !== void 0) configUpdate["protocol"] = args2.protocol;
2253
+ if (args2.restart_policy !== void 0) configUpdate["restartPolicy"] = args2.restart_policy;
2254
+ if (args2.pre_deploy_command !== void 0)
2255
+ configUpdate["preDeployCommand"] = args2.pre_deploy_command;
2186
2256
  if (args2.instance_count !== void 0) {
2187
2257
  configUpdate["minInstances"] = args2.instance_count;
2188
2258
  configUpdate["maxInstances"] = args2.instance_count;
2189
2259
  }
2260
+ if (args2.min_instances !== void 0) configUpdate["minInstances"] = args2.min_instances;
2261
+ if (args2.max_instances !== void 0) configUpdate["maxInstances"] = args2.max_instances;
2262
+ if (args2.scale_cpu_threshold !== void 0)
2263
+ configUpdate["scaleCpuThreshold"] = args2.scale_cpu_threshold;
2264
+ if (args2.scale_memory_threshold !== void 0)
2265
+ configUpdate["scaleMemoryThreshold"] = args2.scale_memory_threshold;
2190
2266
  if (args2.log_filter_rules !== void 0) {
2191
2267
  configUpdate["logFilterRules"] = args2.log_filter_rules;
2192
2268
  }