func addPoint(batchPoints client.BatchPoints, timeOfQuery time.Time, rawTags map[string]interface{}, count int, durationMilliseconds int64) {
	// put tags from config into the right type of map
	tags := map[string]string{}
	for key, value := range rawTags {
		tags[key] = value.(string)
	}
	fields := map[string]interface{}{
		"count":                count,
		"durationMilliseconds": durationMilliseconds}
	// for now, the measurement name is fixed
	pt, err := client.NewPoint("issue_count", tags, fields, timeOfQuery)
	checkError(err)
	fmt.Printf("Prepared for sending: %v: %d issues (in %d ms)\n", tags, count, durationMilliseconds)
	batchPoints.AddPoint(pt)
}
// addPoint adds a point with tags to a BatchPoints object for sending them later
addPoint adds a point with tags to a BatchPoints object for sending them later
// addPoint adds a point with tags to a BatchPoints object for sending them later
func addPoint(batchPoints client.BatchPoints, timeOfQuery time.Time, rawTags map[string]interface{}, count int, durationMilliseconds int64) {
	tags := map[string]string{}
	for key, value := range rawTags {
		tags[key] = value.(string)
	}
	fields := map[string]interface{}{
		"count":                count,
		"durationMilliseconds": durationMilliseconds}
	pt, err := client.NewPoint("issue_count", tags, fields, timeOfQuery)
	checkError(err)
	fmt.Printf("Prepared for sending: %v: %d issues (in %d ms)\n", tags, count, durationMilliseconds)
	batchPoints.AddPoint(pt)
}
func addPoint ( batchPoints client . BatchPoints , timeOfQuery time . Time , rawTags map [ string ] interface { } , count int , durationMilliseconds int64 ) { tags := map [ string ] string { } for key , value := range rawTags { tags [ key ] = value . ( string ) } fields := map [ string ] interface { } { " " : count , " " : durationMilliseconds } pt , err := client . NewPoint ( " " , tags , fields , timeOfQuery ) checkError ( err ) fmt . Printf ( " \n " , tags , count , durationMilliseconds ) batchPoints . AddPoint ( pt ) }
addPoint adds a point with tags to a BatchPoints object for sending them later
addPoint adds a point with tags to a BatchPoints object for sending them later
// put tags from config into the right type of map // for now, the measurement name is fixed