Skip to content

ECS  >  Dictionaries  >  ResourceDict

ResourceDict

Dictionary Type

ResourceDict

Bases: TypedDict

Dictionary form of Resource.

Attributes

double_value instance-attribute
double_value: float | None

When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

integer_value instance-attribute
integer_value: int | None

When the integerValue type is set, the value of the resource must be an integer.

long_value instance-attribute
long_value: int | None

When the longValue type is set, the value of the resource must be an extended precision floating-point type.

name instance-attribute
name: str | None

The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined resource.

string_set_value instance-attribute
string_set_value: Sequence[str] | None

When the stringSetValue type is set, the value of the resource must be a string type.

type instance-attribute
type: str | None

The type of the resource. Valid values: INTEGER, DOUBLE, LONG, or STRINGSET.