Updated on 2024-10-15 GMT+08:00

Basic Configuration Check

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

function-graph-settings-check

Identifier

function-graph-settings-check

Description

If the runtime, timeout, or memory limit of a function is not within the specified ranges, this function is noncompliant.

Tag

fgs

Trigger Type

Configuration change

Filter Type

fgs.functions

Configure Rule Parameters

  • runtimeList: runtime identifiers, such as Python3.6
  • timeout: execution timeout, in seconds
  • memorySize: memory size of a function instance, in MB

Rule Logic

  • If the runtime of a FunctionGraph function is not within the specified runtimes, this function is noncompliant.
  • If the execution timeout of a FunctionGraph function is greater than the specified timeout, this function is noncompliant.
  • If the memory size of a FunctionGraph function is greater than the specified memory size, this function is noncompliant.
  • If a function does not meet any of the above conditions, this function is noncompliant.