Skip to main content
Version: 2.29.0

AppProfile

The AppProfile is designed for configuring the virtual machine that your Edge application will run on. It allows you to customize the computational resources for your application, including the number of CPUs, the amount of memory, and the availability of a GPU.

# Initialize profile
data = AppProfile(
uid='1488ac82-8e38-11ee-84c0-a3b1666a7dea',
profile_id='my.profile',
name='Dashboard (2 CPU, 2 GB RAM)',
instance_name='t3.small',
cpu=2.0,
gpu=0,
memory=2.0,
built_in=True,
status=AppProfileStatusEnum.Ready,
disable=False
)

# Create profile
edge.compute.create_app_profile('my.profile', data)

Properties​

uid​

Property (str). Unique identifier.

profile_id​

Property (str). Logical profile identifier.

name​

Property (CapKindEnum). Human readable name.

instance_name​

Property (date). Instance type name.

cpu​

Property (float). CPU allocation.

gpu​

Property (int). GPU allocation.

memory​

Property (float). Memory in GB.

built_in​

Property (bool). True if this is a built-in profile.

status​

Property (AppProfileStatusEnum). Profile status.

disable​

Property (bool). True if this profile is disabled.

Methods​

to_dict​

to_dict() -> dict

Translates the connection as a dictionary for serialization.

Returns:​

dict Connection contents as a dictionary.