<commit_before>package workerconfig

import (
	"fmt"
	"koding/kontrol/kontrolhelper"
	"koding/tools/config"
	"labix.org/v2/mgo"
	"labix.org/v2/mgo/bson"
	"log"
	"time"
)

const (
	Started WorkerStatus = iota
	Killed
	Dead
	Waiting
)

type WorkerStatus int

type WorkerResponse struct {
	Name    string `json:"name"`
	Uuid    string `json:"uuid"`
	Command string `json:"command"`
}

type MemData struct {
	Rss       int    `json:"rss"`
	HeapTotal int    `json:"heaptotal"`
	HeapUsed  int    `json:"heapused"`
	Unit      string `json:"unit"`
}

type Monitor struct {
	Name   string
	Uuid   string
	Mem    *MemData
	Uptime int
}

type ApiRequest struct {
	Uuid    string `json:"uuid"`
	Command string `json:"command"`
}

type ClientRequest struct {
	Action   string
	Cmd      string
	Hostname string
	Pid      int
}

type Worker struct {
	Name              string       `json:"name"`
	ServiceUniqueName string       `json:"serviceUniqueName",bson:"serviceUniqueName"`
	Uuid              string       `json:"uuid"`
	Hostname          string       `json:"hostname"`<commit_msg>kontrol: fix bson tag for serviceUniqueName<commit_after>package workerconfig

import (
	"fmt"
	"koding/kontrol/kontrolhelper"
	"koding/tools/config"
	"labix.org/v2/mgo"
	"labix.org/v2/mgo/bson"
	"log"
	"time"
)

const (
	Started WorkerStatus = iota
	Killed
	Dead
	Waiting
)

type WorkerStatus int

type WorkerResponse struct {
	Name    string `json:"name"`
	Uuid    string `json:"uuid"`
	Command string `json:"command"`
}

type MemData struct {
	Rss       int    `json:"rss"`
	HeapTotal int    `json:"heaptotal"`
	HeapUsed  int    `json:"heapused"`
	Unit      string `json:"unit"`
}

type Monitor struct {
	Name   string
	Uuid   string
	Mem    *MemData
	Uptime int
}

type ApiRequest struct {
	Uuid    string `json:"uuid"`
	Command string `json:"command"`
}

type ClientRequest struct {
	Action   string
	Cmd      string
	Hostname string
	Pid      int
}

type Worker struct {
	Name              string       `json:"name"`
	ServiceUniqueName string       `bson:"serviceUniqueName" json:"serviceUniqueName"`
	Uuid              string       `json:"uuid"`
	Hostname          string       `json:"hostname"`
{'fraction_non_alphanumeric': 0.10487580496780129, 'fraction_numerical': 0.0018399264029438822, 'mean_word_length': 3.005524861878453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1462667', 'n_tokens_mistral': 758, 'n_tokens_neox': 760, 'n_words': 191}