Configure application resource thresholds
configure_application_resource_thresholdsReplace the complete resource-threshold set and email preference for a managed application; omitted fields disable thresholds. Confirm thresholds and email preference with the user first.
Instructions
Replace the complete optional resource-threshold set and email preference for one owned managed application. Read get_application_installation first. Omitted or null numeric fields disable that threshold; omitted email_enabled is false; omitting all four thresholds clears the preferences and disables email. Thresholds highlight measured CPU, memory, combined network-per-minute, and restart-delta samples. When email is enabled, VPSnet sends one account email when a configured threshold is reached and one when it recovers, without repeating while it remains high. Replacing thresholds can stop existing alerts. Thresholds do not reserve or enforce resources, restart containers, or affect billing. Confirm the exact thresholds and email preference with the user first. Requires applications:manage and is not a paid API-key operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderNo | Yes | Tenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1 | |
| confirmed | Yes | True only after the user confirmed the complete threshold set | |
| memory_mib | No | Optional application memory display threshold in MiB | |
| cpu_percent | No | Optional display threshold as a percentage of one CPU core | |
| email_enabled | No | Send one account email when a configured threshold is reached and one when it recovers | |
| restart_delta | No | Optional restart display threshold between comparable samples | |
| installation_id | Yes | Managed application installation UUID | |
| network_mib_per_minute | No | Optional combined RX and TX display threshold in MiB per minute |