DIMENSION adds or updates a dimension to the most recently created chart.
(opts DimensionOpts)
| 52 | |
| 53 | // DIMENSION adds or updates a dimension to the most recently created chart. |
| 54 | func (a *API) DIMENSION(opts DimensionOpts) { |
| 55 | _, _ = a.Write([]byte("DIMENSION '" + |
| 56 | opts.ID + quotes + |
| 57 | opts.Name + quotes + |
| 58 | opts.Algorithm + quotes + |
| 59 | strconv.Itoa(opts.Multiplier) + quotes + |
| 60 | strconv.Itoa(opts.Divisor) + quotes + |
| 61 | opts.Options + "'\n")) |
| 62 | } |
| 63 | |
| 64 | // CLABEL adds or updates a label to the most recently created chart. |
| 65 | func (a *API) CLABEL(key, value string, source int) { |