CHART creates or updates a chart.
(opts ChartOpts)
| 35 | |
| 36 | // CHART creates or updates a chart. |
| 37 | func (a *API) CHART(opts ChartOpts) { |
| 38 | _, _ = a.Write([]byte("CHART " + "'" + |
| 39 | opts.TypeID + "." + opts.ID + quotes + |
| 40 | opts.Name + quotes + |
| 41 | opts.Title + quotes + |
| 42 | opts.Units + quotes + |
| 43 | opts.Family + quotes + |
| 44 | opts.Context + quotes + |
| 45 | opts.ChartType + quotes + |
| 46 | strconv.Itoa(opts.Priority) + quotes + |
| 47 | strconv.Itoa(opts.UpdateEvery) + quotes + |
| 48 | opts.Options + quotes + |
| 49 | opts.Plugin + quotes + |
| 50 | opts.Module + "'\n")) |
| 51 | } |
| 52 | |
| 53 | // DIMENSION adds or updates a dimension to the most recently created chart. |
| 54 | func (a *API) DIMENSION(opts DimensionOpts) { |