Module Expr Str ImportFrom alias alias ImportFrom alias alias alias alias Import alias Import alias FunctionDef arguments args NameParam defaults body If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Return NameLoad orelse Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If CompareEq NameLoad Str body Return ListComp AttributeLoad NameLoad attr comprehension NameStore Call NameLoad orelse Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return IfExp NameLoad Call AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad Str attr NameLoad Call NameLoad AttributeLoad NameLoad attr Print Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list
N/A N/A 
.. module: security_monkey.backup
    :platform: Unix

.. version:: $$VERSION$$
.. moduleauthor:: Patrick Kelley <pkelley@netflix.com> @monkeysecurity

 security_monkey.monitors all_monitors get_monitor security_monkey.datastore Item ItemRevision Account Technology N/A json N/A os __prep_accounts__ N/A N/A accounts N/A N/A N/A N/A accounts all N/A N/A accounts N/A N/A N/A N/A N/A N/A N/A Account query filter N/A N/A Account third_party False filter N/A N/A Account active True all N/A accounts N/A N/A account name N/A account accounts N/A accounts N/A N/A N/A N/A accounts split , N/A __prep_monitor_names__ N/A N/A monitor_names N/A N/A N/A N/A monitor_names all N/A N/A N/A N/A monitor index N/A monitor N/A all_monitors N/A N/A N/A N/A monitor_names split , N/A backup_config_to_json N/A N/A accounts monitor_names output_folder N/A N/A N/A monitor_names N/A __prep_monitor_names__ monitor_names N/A accounts N/A __prep_accounts__ accounts N/A monitor_name monitor_names N/A N/A monitor N/A get_monitor monitor_name N/A account accounts N/A N/A N/A _backup_items_in_account account monitor output_folder N/A _backup_items_in_account N/A N/A account_name monitor output_folder N/A N/A N/A technology_name N/A N/A monitor watcher_class index N/A query N/A Item query N/A query N/A N/A query join N/A Account N/A N/A Account id N/A Item account_id N/A query N/A N/A query join N/A Technology N/A N/A Technology id N/A Item tech_id N/A query N/A N/A query filter N/A N/A Account name account_name N/A query N/A N/A query filter N/A N/A Technology name technology_name N/A items_to_backup N/A N/A query all N/A item items_to_backup N/A N/A latest_revision N/A N/A N/A N/A N/A ItemRevision query filter N/A N/A ItemRevision id N/A item latest_revision_id first N/A N/A _serialize_item_to_file item latest_revision output_folder account_name technology_name N/A standardize_name N/A N/A name N/A N/A N/A Some objects have a / in their names.  This allows the backup to proceed.
     Further sanitization would be wise with untrusted input. N/A N/A name N/A N/A name replace / _ no_name.json N/A _serialize_item_to_file N/A N/A item latest_revision output_folder account_name technology_name N/A N/A N/A output_folder N/A N/A {0}/{1}/{2} format output_folder account_name technology_name N/A N/A N/A N/A N/A os path isdir output_folder N/A N/A N/A N/A os makedirs output_folder mode 511 N/A output_file N/A N/A {0}/{1}.json format output_folder N/A standardize_name N/A item name N/A N/A N/A Writing {0} to {1} format N/A item name output_file N/A N/A open output_file w output N/A N/A N/A N/A output write N/A N/A json dumps N/A latest_revision config indent 2 N/A