Lines Matching refs:metricId

99 static string getCreateSqlString(const int64_t metricId, const LogEvent& event) {  in getCreateSqlString()  argument
101 reformatMetricId(metricId).c_str()); in getCreateSqlString()
132 string reformatMetricId(const int64_t metricId) { in reformatMetricId() argument
133 return metricId < 0 ? StringPrintf("n%lld", (long long)metricId * -1) in reformatMetricId()
134 : StringPrintf("%lld", (long long)metricId); in reformatMetricId()
137 bool createTableIfNeeded(const ConfigKey& key, const int64_t metricId, const LogEvent& event) { in createTableIfNeeded() argument
146 string zSql = getCreateSqlString(metricId, event); in createTableIfNeeded()
156 bool isEventCompatible(const ConfigKey& key, const int64_t metricId, const LogEvent& event) { in isEventCompatible() argument
163 string zSql = StringPrintf("PRAGMA table_info(metric_%s);", reformatMetricId(metricId).c_str()); in isEventCompatible()
169 ALOGE("Failed to check table schema for metric %lld: %s", (long long)metricId, err.c_str()); in isEventCompatible()
190 bool deleteTable(const ConfigKey& key, const int64_t metricId) { in deleteTable() argument
197 string zSql = StringPrintf("DROP TABLE metric_%s", reformatMetricId(metricId).c_str()); in deleteTable()
226 static bool getInsertSqlStmt(sqlite3* db, sqlite3_stmt** stmt, const int64_t metricId, in getInsertSqlStmt() argument
229 StringPrintf("INSERT INTO metric_%s VALUES", reformatMetricId(metricId).c_str()); in getInsertSqlStmt()
283 bool insert(const ConfigKey& key, const int64_t metricId, const vector<LogEvent>& events, in insert() argument
292 bool success = insert(db, metricId, events, error); in insert()
297 bool insert(sqlite3* db, const int64_t metricId, const vector<LogEvent>& events, string& error) { in insert() argument
299 if (!getInsertSqlStmt(db, &stmt, metricId, events, error)) { in insert()
364 bool flushTtl(sqlite3* db, const int64_t metricId, const int64_t ttlWallClockNs) { in flushTtl() argument
366 reformatMetricId(metricId).c_str(), in flushTtl()