CB Context ( antares.context.CBContext )

Antares context module.

class antares.context.CBContext

Bases: antares.context.Context

Represents a CB (Alert Combo) context object which is a sub-class of Context. It contains all the properties defined under CB context. :param: container_id(int): ID of the object that owns the context, which is a AlertCombo.

Attributes Summary

name Name of CB context.
alert_combo This is the AlertCombo which contains this CBContext.

Methods Summary

assembleVector_replicas(context, propname) The function assembles a vector of all the values of an property inside a context of the alert replicas associated with the alert combo.

Attributes Documentation

name = 'CB'

Name of CB context.

Type:string
alert_combo = None

This is the AlertCombo which contains this CBContext.

Type:AlertCombo

Methods Documentation

assembleVector_replicas(context, propname)

The function assembles a vector of all the values of an property inside a context of the alert replicas associated with the alert combo.

Parameters:
  • context (string) – the name of the context
  • propname (string) – the name of the property
Returns:

a list of values

Return type:

list