Module Import alias Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Str Str Str Str For NameStore NameLoad body For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Index Num Assign NameStore BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword BinOpMult NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr BinOpAdd NameLoad Call AttributeLoad NameLoad attr keyword BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list
N/A N/A datetime N/A random salmon.metrics models generate_sample_data N/A N/A point_numbers interval N/A N/A N/A 
    This function generates sample data and populates the databases

        :point_numbers: is an int defining the number of values for each metric
        :interval: is an int defining the interval between each results

    This method returns a list of metrics
     N/A src_names N/A test.example.com salmon.example.com www.example.com N/A sources N/A N/A name src_names N/A N/A N/A N/A sources append N/A N/A N/A N/A N/A models Source objects get_or_create name name N/A 0 N/A N/A N/A sources append None N/A metric_names N/A ps.virtual_memory_usage ps.disk_io_counters.write_bytes ps.disk_io_counters.read_bytes ps.disk_usage.percent ps.physical_memory_usage.percent N/A source sources N/A N/A name metric_names N/A N/A metric N/A N/A N/A N/A N/A models Metric objects get_or_create source source name name N/A 0 N/A start N/A N/A N/A N/A datetime datetime now N/A N/A datetime timedelta minutes N/A interval point_numbers N/A i N/A range point_numbers N/A N/A N/A metric latest_value N/A N/A random randint 1 100 N/A N/A metric last_updated N/A start N/A N/A datetime timedelta minutes N/A interval i N/A N/A N/A metric save N/A