PointSettings

public class PointSettings

Settings to store default tags.

Example:

let defaultTags = InfluxDBClient.PointSettings()
        .addDefaultTag(key: "id", value: "132-987-655")
        .addDefaultTag(key: "customer", value: "California Miner")
        .addDefaultTag(key: "data_center", value: "${env.DATA_CENTER_LOCATION}")
  • Add new default tag with key and value.

    Declaration

    Swift

    public func addDefaultTag(key: String?, value: String?) -> PointSettings

    Parameters

    key

    the tag name

    value

    the tag value. Could be static value or env property.

    Return Value

    Self