sql

package
v0.0.0-...-d050cfb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InsertAPIAlarmHistory string = `` /* 174-byte string literal not displayed */
View Source
var InsertAPIMapStats string = `` /* 166-byte string literal not displayed */

Api被调用统计信息

View Source
var InsertAPIStats string = `` /* 160-byte string literal not displayed */

API 记录语句

View Source
var InsertAPIs string = `INSERT INTO app_apis (app_name, api, api_type) VALUES (?, ?, ?) ;`
View Source
var InsertAgent string = `` /* 187-byte string literal not displayed */

agent 信息入库

View Source
var InsertAgentInfo string = `INSERT INTO agents (app_name, agent_id, start_time, agent_info) 
VALUES ( ?, ?, ?, ?);`

agent info 信息入库

View Source
var InsertApiAlert string = `` /* 141-byte string literal not displayed */
View Source
var InsertApp string = `
INSERT
INTO apps(app_name)
VALUES (?)`

App 名 信息入库

View Source
var InsertExceptionStats string = `` /* 163-byte string literal not displayed */

InsertExceptionStats ....

View Source
var InsertMethod string = `INSERT INTO app_methods (app_name, method_id, method_info, line, type) 
VALUES (?, ?, ?, ?, ?);`

app method 信息入库

View Source
var InsertMethodStats string = `` /* 166-byte string literal not displayed */

InsertMethodStats ...

View Source
var InsertRuntimeAlert string = `` /* 149-byte string literal not displayed */
View Source
var InsertRuntimeStat string = `
	INSERT
	INTO agent_runtime(app_name, agent_id, input_date, metrics, runtime_type)
	VALUES (?, ?, ?, ?, ?);`

insert runtime stat 信息入库

View Source
var InsertSQL string = `INSERT INTO app_sqls (app_name, sql_id, sql_info) 
VALUES (?, ?, ?);`

sql语句 信息入库

View Source
var InsertSQLAlert string = `` /* 143-byte string literal not displayed */
View Source
var InsertSQLStats string = `` /* 131-byte string literal not displayed */

InserSQLStats ...

View Source
var InsertSpan string = `` /* 256-byte string literal not displayed */

插入span

View Source
var InsertSpanChunk string = `INSERT INTO traces_chunk(trace_id, span_id, cid, event_list) VALUES (?, ?, ?, ?)`

插入span chunk

View Source
var InsertSrvType string = `
INSERT
INTO service_type(service_type, info)
VALUES (?, ?) ;`

插入服务类型

View Source
var InsertString string = `INSERT INTO app_strs (app_name, str_id, str_info) 
VALUES (?, ?, ?);`

string 信息入库

View Source
var InsertTargetMap string = `` /* 187-byte string literal not displayed */
View Source
var InsertTraceIndex string = `` /* 148-byte string literal not displayed */

插入trace索引

View Source
var InsertUnknowParentMap string = `` /* 187-byte string literal not displayed */
View Source
var LoadAgents string = `SELECT service_type, agent_id, start_time, ip, is_live, host_name FROM agents WHERE app_name=?;`
View Source
var LoadAlert string = `SELECT alerts FROM alerts_policy WHERE id=?;`

加载策略详情

View Source
var LoadApps string = `SELECT app_name FROM apps;`
View Source
var LoadDubboApis string = `SELECT app_name, api, api_type  FROM app_apis;`
View Source
var LoadPolicys string = `SELECT name, owner, api_alerts, channel, group,
 policy_id, update_date, users FROM alerts_app ;`

加载所有策略

View Source
var LoadUers string = `SELECT id, email, mobile FROM account ;`
View Source
var LoaddefaultPolicy string = `SELECT alerts FROM alerts_policy WHERE name='apm-default-policy' ALLOW FILTERING;`

加载默认策略详情

View Source
var UpdateAgentState string = `UPDATE agents  SET is_live=?, end_time=? WHERE app_name =? AND agent_id =?;`

更新agent 在线信息

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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