blob: 8050794ba45aaa445dd5e4b9c8ba13b36d80961a [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Sensor Log configuration constants and default flag values.
package config
import (
"time"
"v.io/v23/naming"
)
const (
DefaultSbService = "syncbase"
AppName = "sensorlog_lite"
DBName = "sldb"
SyncPriority = 42
// Delay between SIGINT and SIGKILL when stopping measuring script.
ScriptKillDelay = 100 * time.Millisecond
// Both Syncbase write and sampling script slowness impose this limit;
// sampling with mocked out script and Syncbase write supports 200 µs.
MinSamplingInterval = 10 * time.Millisecond
)
func SyncgroupName(publishService, devId string) string {
return naming.Join(publishService, "%%sync", "sllite", "dev", devId)
}