BEGIN initializes data collection for a chart.
(typeID string, id string, msSince int)
| 76 | |
| 77 | // BEGIN initializes data collection for a chart. |
| 78 | func (a *API) BEGIN(typeID string, id string, msSince int) { |
| 79 | if msSince > 0 { |
| 80 | _, _ = a.Write([]byte("BEGIN " + "'" + typeID + "." + id + "' " + strconv.Itoa(msSince) + "\n")) |
| 81 | } else { |
| 82 | _, _ = a.Write([]byte("BEGIN " + "'" + typeID + "." + id + "'\n")) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | // SET sets the value of a dimension for the initialized chart. |
| 87 | func (a *API) SET(id string, value int64) { |