Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad keyword NameLoad keyword Str Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr BinOpDiv BinOpSub NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num orelse Assign NameStore Str TryExcept body Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Str handlers ExceptHandler type NameLoad body Print BinOpMod Str AttributeLoad NameLoad attr Raise Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign NameStore BinOpMult BinOpDiv NameLoad Num NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareNotIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Call NameLoad keyword Num keyword Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignAdd SubscriptStore NameLoad Index Str Num AugAssignAdd SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMult BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Str BinOpMult BinOpDiv SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad keyword Num keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd SubscriptStore NameLoad Index Str Num AugAssignAdd SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMult BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Str BinOpMult BinOpDiv SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad keyword Num keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd SubscriptStore NameLoad Index Str Num AugAssignAdd SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMult BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Str BinOpMult BinOpDiv SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword Num keyword Num For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body If CompareNotIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Call NameLoad If CompareNotIn NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad body Assign SubscriptStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Index Str Num AugAssignAdd SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMult BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Str BinOpMult BinOpDiv SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr With AttributeLoad NameLoad attr NameStore body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Slice Num Return NameLoad decorator_list Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num keyword Str Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Print NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A argparse N/A datetime N/A json N/A math N/A sys N/A operator N/A os N/A N/A N/A N/A sys path append N/A N/A N/A os environ get STACKTACH_INSTALL_DIR /stacktach N/A usage_audit stacktach datetime_to_decimal dt stacktach models stacktach stacklog TenantManager N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self _types None N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_value traceback N/A N/A N/A False N/A type_names N/A N/A self N/A N/A N/A N/A N/A self _types None N/A N/A N/A self _types N/A set N/A t N/A N/A N/A N/A models TenantType objects all N/A N/A N/A N/A N/A self _types add N/A t name N/A N/A self _types N/A property get_tenant_info N/A N/A self tenant_id N/A N/A N/A N/A N/A tenant N/A N/A N/A N/A models TenantInfo objects get tenant tenant_id N/A tenant_info N/A dict tenant tenant_id account_name N/A tenant name N/A ttypes N/A dict N/A t N/A N/A N/A tenant types all N/A N/A N/A ttypes N/A N/A t name N/A t value N/A N/A N/A N/A N/A models TenantInfo DoesNotExist N/A N/A tenant_info N/A dict tenant tenant_id account_name unknown account N/A ttypes N/A dict N/A t N/A self type_names N/A N/A N/A ttypes N/A t unknown N/A N/A tenant_info N/A types ttypes N/A tenant_info N/A N/A InstanceHoursReport N/A object N/A N/A FLAVOR_CLASS_WEIGHTS N/A dict standard 1.0 __init__ N/A N/A self tenant_manager time period_length N/A None day N/A N/A N/A time None N/A N/A time N/A N/A N/A datetime datetime utcnow N/A N/A N/A self start N/A self end N/A N/A usage_audit get_previous_period time period_length N/A N/A self tenant_manager tenant_manager N/A N/A self flavor_cache N/A dict N/A N/A N/A self clear N/A clear N/A N/A self N/A N/A N/A N/A self count 0 N/A N/A self unit_hours 0.0 N/A N/A self by_flavor N/A dict N/A N/A self by_flavor_class N/A dict N/A N/A self by_tenant N/A dict N/A N/A self by_type N/A dict N/A name N/A N/A self tenant_manager type_names N/A N/A N/A N/A self by_tenant N/A name N/A dict N/A N/A N/A self by_type N/A name N/A dict N/A _get_verified_exists N/A N/A self N/A N/A N/A start N/A N/A dt dt_to_decimal N/A self start N/A end N/A N/A dt dt_to_decimal N/A self end N/A N/A N/A N/A N/A models InstanceExists objects filter status N/A N/A models InstanceExists VERIFIED audit_period_beginning__gte start audit_period_beginning__lte end audit_period_ending__gte start audit_period_ending__lte end N/A _get_instance_hours N/A N/A self exist N/A N/A N/A N/A N/A N/A exist deleted_at None N/A N/A exist deleted_at N/A exist audit_period_ending N/A N/A end N/A exist audit_period_ending N/A N/A end N/A exist deleted_at N/A N/A N/A exist launched_at N/A exist audit_period_beginning N/A N/A start N/A exist launched_at N/A N/A start N/A exist audit_period_beginning N/A N/A N/A math ceil N/A N/A end start 3600 N/A _get_flavor_info N/A N/A self exist N/A N/A N/A flavor N/A exist instance_flavor_id N/A N/A flavor N/A self flavor_cache N/A N/A N/A - flavor N/A N/A N/A flavor_class n N/A N/A flavor split - 1 N/A N/A flavor_class standard N/A N/A N/A payload N/A N/A N/A N/A json loads N/A N/A exist raw json N/A 1 N/A payload N/A N/A N/A Exception N/A N/A N/A Error loading raw notification data for %s N/A exist id N/A N/A flavor_name N/A payload N/A instance_type N/A flavor_size N/A payload N/A memory_mb N/A weight N/A N/A N/A self FLAVOR_CLASS_WEIGHTS get flavor_class 1.0 N/A flavor_units N/A N/A flavor_size 256.0 weight N/A N/A N/A self flavor_cache N/A flavor N/A flavor flavor_name flavor_class flavor_units N/A N/A N/A self flavor_cache N/A flavor N/A add_type_hours N/A N/A self type_name type_value unit_hours N/A N/A N/A N/A type_value N/A N/A self by_type N/A type_name N/A N/A N/A N/A N/A self by_type N/A type_name N/A type_value N/A dict count 0 unit_hours 0.0 N/A cts N/A N/A N/A self by_type N/A type_name N/A type_value N/A N/A cts N/A count 1 N/A N/A cts N/A unit_hours unit_hours N/A N/A cts N/A percent_count N/A N/A N/A float N/A cts N/A count N/A self count 100 N/A N/A cts N/A percent_unit_hours N/A N/A N/A cts N/A unit_hours N/A self unit_hours 100 N/A add_flavor_class_hours N/A N/A self flavor_class unit_hours N/A N/A N/A N/A flavor_class N/A self by_flavor_class N/A N/A N/A N/A self by_flavor_class N/A flavor_class N/A dict count 0 unit_hours 0.0 N/A cts N/A N/A self by_flavor_class N/A flavor_class N/A N/A cts N/A count 1 N/A N/A cts N/A unit_hours unit_hours N/A N/A cts N/A percent_count N/A N/A N/A float N/A cts N/A count N/A self count 100 N/A N/A cts N/A percent_unit_hours N/A N/A N/A cts N/A unit_hours N/A self unit_hours 100 N/A add_flavor_hours N/A N/A self flavor flavor_name unit_hours N/A N/A N/A N/A flavor N/A self by_flavor N/A N/A N/A N/A self by_flavor N/A flavor N/A dict count 0 unit_hours 0.0 N/A cts N/A N/A self by_flavor N/A flavor N/A N/A cts N/A count 1 N/A N/A cts N/A unit_hours unit_hours N/A N/A cts N/A percent_count N/A N/A N/A float N/A cts N/A count N/A self count 100 N/A N/A cts N/A percent_unit_hours N/A N/A N/A cts N/A unit_hours N/A self unit_hours 100 N/A N/A cts N/A flavor_name flavor_name N/A add_tenant_hours N/A N/A self tenant_info unit_hours N/A N/A N/A tenant N/A tenant_info N/A tenant N/A cts N/A dict count 0 unit_hours 0.0 N/A N/A tname tvalue N/A N/A N/A tenant_info N/A types items N/A N/A N/A tvalue N/A N/A self by_tenant N/A tname N/A N/A N/A N/A N/A self by_tenant N/A tname N/A tvalue N/A dict N/A N/A tenant N/A N/A N/A self by_tenant N/A tname N/A tvalue N/A N/A N/A N/A N/A N/A self by_tenant N/A tname N/A tvalue N/A tenant cts N/A cts N/A N/A N/A N/A self by_tenant N/A tname N/A tvalue N/A tenant N/A N/A cts N/A tname tvalue N/A N/A cts N/A count 1 N/A N/A cts N/A unit_hours unit_hours N/A N/A cts N/A percent_count N/A N/A N/A float N/A cts N/A count N/A self count 100 N/A N/A cts N/A percent_unit_hours N/A N/A N/A cts N/A unit_hours N/A self unit_hours 100 N/A N/A cts N/A tenant tenant N/A N/A cts N/A account_name N/A tenant_info N/A account_name N/A compile_hours N/A N/A self N/A N/A N/A exists N/A N/A self _get_verified_exists N/A N/A self count N/A N/A exists count N/A N/A self tenant_manager tenant_manager N/A N/A exist exists N/A N/A hours N/A N/A self _get_instance_hours exist N/A N/A flavor flavor_name flavor_class flavor_units N/A N/A self _get_flavor_info exist N/A tenant_info N/A N/A tenant_manager get_tenant_info N/A exist tenant N/A unit_hours N/A hours flavor_units N/A N/A self unit_hours unit_hours N/A N/A N/A self add_flavor_hours flavor flavor_name unit_hours N/A N/A N/A self add_flavor_class_hours flavor_class unit_hours N/A N/A tname tvalue N/A N/A N/A tenant_info N/A types items N/A N/A N/A N/A self add_type_hours tname tvalue unit_hours N/A N/A N/A self add_tenant_hours tenant_info unit_hours N/A top_hundred N/A N/A self key N/A N/A th N/A N/A d N/A N/A N/A top N/A dict N/A N/A t customers N/A N/A d iteritems N/A N/A N/A top N/A t N/A N/A sorted N/A N/A customers values key N/A N/A operator itemgetter key reverse True N/A 100 N/A top N/A N/A top_hundred N/A dict N/A N/A type_name tenants N/A N/A N/A self by_tenant iteritems N/A N/A N/A top_hundred N/A type_name N/A th tenants N/A top_hundred N/A generate_json N/A N/A self N/A N/A N/A report N/A dict total_instance_count N/A self count total_unit_hours N/A self unit_hours flavor N/A self by_flavor flavor_class N/A self by_flavor_class top_hundred_by_count N/A N/A self top_hundred count top_hundred_by_unit_hours N/A N/A self top_hundred unit_hours N/A N/A ttype stats N/A N/A N/A self by_type iteritems N/A N/A N/A report N/A ttype stats N/A N/A N/A json dumps report N/A store N/A N/A self json_report N/A N/A N/A report N/A N/A models JsonReport json json_report created N/A N/A dt dt_to_decimal N/A N/A N/A datetime datetime utcnow period_start N/A self start period_end N/A self end version 1 name instance hours N/A N/A N/A report save N/A N/A valid_datetime N/A N/A d N/A N/A N/A N/A N/A t N/A N/A N/A datetime datetime strptime d %Y-%m-%d %H:%M:%S N/A t N/A N/A N/A Exception N/A e N/A N/A N/A N/A argparse ArgumentTypeError N/A '%s' is not in YYYY-MM-DD HH:MM:SS format. d N/A N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser StackTach Instance Hours Report N/A N/A N/A parser add_argument --period_length choices N/A hour day default day N/A N/A N/A parser add_argument --utcdatetime help Override the end time used to generate report. type valid_datetime default None N/A N/A N/A parser add_argument --store help If set to true, report will be stored. Otherwise, it will just be printed default False action store_true N/A args N/A N/A parser parse_args N/A N/A N/A stacklog set_default_logger_name instance_hours N/A parent_logger N/A N/A stacklog get_logger instance_hours is_parent True N/A log_listener N/A N/A stacklog LogListener parent_logger N/A N/A N/A log_listener start N/A tenant_manager N/A TenantManager N/A report N/A InstanceHoursReport tenant_manager time N/A args utcdatetime period_length N/A args period_length N/A N/A N/A report compile_hours N/A json N/A N/A report generate_json N/A N/A N/A args store N/A N/A json N/A N/A N/A N/A report store json