gf_stats_lib

package
v0.0.0-...-a1b0e2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(p_stats_url_base_str string,
	p_py_stats_dir_path_str string,
	p_stats_query_funs_groups_lst []map[string]func(*gf_core.RuntimeSys) (map[string]interface{}, *gf_core.GFerror),
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func Stat_run__create

func Stat_run__create(p_stat_name_str string,
	p_results_data_lst map[string]interface{},
	p_start_time__unix_f float64,
	p_end_time__unix_f float64,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

Types

type Stat_db_coll

type Stat_db_coll struct {
	Docs_count_int             int64
	Size_bytes_int             int64
	Avg_obj_size_bytes_int     int64
	Storage_size_bytes_int     int64
	Index_total_size_bytes_int int64
}

func Db_stats__coll

func Db_stats__coll(p_coll_name_str string,
	p_ctx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (*Stat_db_coll, *gf_core.GFerror)

type Stat_query_run

type Stat_query_run struct {
	Id                 primitive.ObjectID     `bson:"_id,omitempty"`
	Id_str             string                 `bson:"id_str"`
	T_str              string                 `bson:"t_str"` // "stat_query_run",
	Stat_name_str      string                 `bson:"stat_name_str"`
	Start_time__unix_f float64                `bson:"start_time__unix_f"`
	End_time__unix_f   float64                `bson:"end_time__unix_f"`
	Result_data_map    map[string]interface{} `bson:"result_data_map"`
}

type Stat_query_run__extern_result

type Stat_query_run__extern_result struct {
	Query_run_id_str   string                 `json:"query_run_id_str"`
	Stat_name_str      string                 `json:"stat_name_str"`
	Start_time__unix_f float64                `json:"start_time__unix_f"`
	End_time__unix_f   float64                `json:"end_time__unix_f"`
	Result_data_map    map[string]interface{} `json:"result_data_map"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL