Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str ListLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad If BoolOpAnd NameLoad CompareLt NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return ListLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareEq NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A os st2common.constants.pack SYSTEM_PACK_NAME st2common.constants.sensors MINIMUM_POLL_INTERVAL st2common.models.db.sensor SensorTypeDB st2common.services triggers trigger_service N/A __all__ N/A to_sensor_db_model get_sensor_entry_point to_sensor_db_model N/A N/A sensor_api_model N/A None N/A N/A 
    Converts a SensorTypeAPI model to DB model.
    Also, creates trigger type objects provided in SensorTypeAPI.

    :param sensor_api_model: SensorTypeAPI object.
    :type sensor_api_model: :class:`SensorTypeAPI`

    :rtype: :class:`SensorTypeDB`
     N/A class_name N/A getattr sensor_api_model class_name None N/A pack N/A getattr sensor_api_model pack None N/A entry_point N/A get_sensor_entry_point sensor_api_model N/A artifact_uri N/A getattr sensor_api_model artifact_uri None N/A description N/A getattr sensor_api_model description None N/A trigger_types N/A getattr sensor_api_model trigger_types N/A N/A poll_interval N/A getattr sensor_api_model poll_interval None N/A enabled N/A getattr sensor_api_model enabled True N/A poll_interval N/A getattr sensor_api_model poll_interval None N/A N/A poll_interval N/A poll_interval MINIMUM_POLL_INTERVAL N/A N/A N/A ValueError N/A Minimum possible poll_interval is %s seconds MINIMUM_POLL_INTERVAL N/A trigger_type trigger_types N/A N/A N/A trigger_type N/A pack pack N/A trigger_type_refs N/A _create_trigger_types trigger_types N/A N/A _create_sensor_type pack pack name class_name description description artifact_uri artifact_uri entry_point entry_point trigger_types trigger_type_refs poll_interval poll_interval enabled enabled N/A _create_trigger_types N/A N/A trigger_types N/A N/A N/A N/A trigger_types N/A N/A N/A N/A trigger_type_dbs N/A N/A trigger_service add_trigger_models trigger_types trigger_types N/A trigger_type_refs N/A N/A N/A trigger_type_db _ trigger_type_dbs N/A N/A ref_obj N/A N/A trigger_type_db get_reference N/A trigger_type_ref N/A ref_obj ref N/A N/A N/A trigger_type_refs append trigger_type_ref N/A trigger_type_refs N/A _create_sensor_type N/A N/A pack name description artifact_uri entry_point trigger_types poll_interval enabled N/A None None None None None None 10 True N/A N/A sensor_type N/A SensorTypeDB pack pack name name description description artifact_uri artifact_uri entry_point entry_point poll_interval poll_interval enabled enabled trigger_types trigger_types N/A sensor_type N/A get_sensor_entry_point N/A N/A sensor_api_model N/A N/A N/A file_path N/A getattr sensor_api_model artifact_uri None N/A class_name N/A getattr sensor_api_model class_name None N/A pack N/A getattr sensor_api_model pack None N/A N/A pack SYSTEM_PACK_NAME N/A N/A entry_point class_name N/A N/A module_path N/A N/A N/A file_path split N/A /%s/ pack N/A 1 N/A module_path N/A N/A module_path replace N/A N/A os path sep . N/A module_path N/A N/A module_path replace .py N/A entry_point N/A %s.%s N/A module_path class_name N/A entry_point N/A