NodeConfig#
- class NodeConfig(model=None, node_count=None, target_online_time=None, is_enabled=False, node_source=None, node_resource_capacity=None, *args, **kwargs)#
Bases:
object
Node specification.
- Parameters:
model (required) – (
model
) Model name of a node.node_count – (
node_count
) Number of nodes in a model.target_online_time – (
target_online_time
) Recommended time when a node should be live in a cluster.is_enabled (required) – (
is_enabled
) Flag to indicate if node is to be taken into account while performing capacity scenario analysis. (Default False)node_source (required) – (
node_source
)node_resource_capacity – (
node_resource_capacity
)
- property is_enabled#
Flag to indicate if node is to be taken into account while performing capacity scenario analysis.
- Type:
bool
- property model#
Model name of a node.
- Type:
str
- property node_count#
Number of nodes in a model.
- Type:
int
- property node_resource_capacity#
- Type:
- property node_source#
- Type:
- property target_online_time#
Recommended time when a node should be live in a cluster.
- Type:
datetime
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model