Skip to content

oom_report_rule

Manage VPS OOM report rules

Create

Input parameters

ParameterTypeRequiredDetails
vps
VPS
Resource yes
action
Action
String yes

Default: null

Validation rules
RuleDetails
Include

Allowed values:

  • notify
  • ignore

Validation error message: %{value} cannot be used

Present

Must be supplied and cannot be null. Must not be empty; strings must contain a non-whitespace character.

Validation error message: must be present and non-empty

cgroup_pattern
Cgroup path pattern
String yes

Default: null

Validation rules
RuleDetails
Present

Must be supplied and cannot be null. Must not be empty; strings must contain a non-whitespace character.

Validation error message: must be present and non-empty

Length
  • Maximum length: 255 characters (inclusive).

Validation error message: length must be at most 255

hit_count
Hit count
Integer no

Default: null

Output parameters

ParameterTypeDescription
id
Id
Integer
vps
VPS
Resource
action
Action
String
cgroup_pattern
Cgroup path pattern
String
hit_count
Hit count
Integer
label
Label
String
created_at
Created_at
Datetime
updated_at
Updated_at
Datetime

Delete

Input parameters

No parameters.

Output parameters

No parameters.

Index

Input parameters

ParameterTypeRequiredDetails
from_id
From ID
Integer no

List objects with IDs greater or lower than this value

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).

Validation error message: must be at least 0

limit
Limit
Integer no

Number of objects to retrieve

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).
  • Maximum: 1000 (inclusive).

Validation error message: must be between 0 and 1000

vps
VPS
Resource no

Output parameters

ParameterTypeDescription
id
Id
Integer
vps
VPS
Resource
action
Action
String
cgroup_pattern
Cgroup path pattern
String
hit_count
Hit count
Integer
label
Label
String
created_at
Created_at
Datetime
updated_at
Updated_at
Datetime

Show

Input parameters

No parameters.

Output parameters

ParameterTypeDescription
id
Id
Integer
vps
VPS
Resource
action
Action
String
cgroup_pattern
Cgroup path pattern
String
hit_count
Hit count
Integer
label
Label
String
created_at
Created_at
Datetime
updated_at
Updated_at
Datetime

Update

Input parameters

ParameterTypeRequiredDetails
action
Action
String no

Default: null

Validation rules
RuleDetails
Include

Allowed values:

  • notify
  • ignore

Validation error message: %{value} cannot be used

cgroup_pattern
Cgroup path pattern
String no

Default: null

Validation rules
RuleDetails
Length
  • Maximum length: 255 characters (inclusive).

Validation error message: length must be at most 255

Output parameters

ParameterTypeDescription
id
Id
Integer
vps
VPS
Resource
action
Action
String
cgroup_pattern
Cgroup path pattern
String
hit_count
Hit count
Integer
label
Label
String
created_at
Created_at
Datetime
updated_at
Updated_at
Datetime