Skip to main content

InfluxDBPoint

Functions

SetTimestamp

InfluxDBPoint:SetTimestamp(timestampDateTime | nil) → ()

If it's nil, the timestamp defaults to send time

AddTag

InfluxDBPoint:AddTag(
tagKeystring,
tagValuestring
) → ()

Tags are indexed, whereas fields are not.

AddIntField

InfluxDBPoint:AddIntField(
fieldNamestring,
valuenumber
) → ()

Adds an int field

AddUintField

InfluxDBPoint:AddUintField(
fieldNamestring,
valuenumber
) → ()

Adds a uint field

AddFloatField

InfluxDBPoint:AddFloatField(
fieldNamestring,
valuenumber
) → ()

Adds a float field

AddBooleanField

InfluxDBPoint:AddBooleanField(
fieldNamestring,
valueboolean
) → ()

Adds a boolean field

AddStringField

InfluxDBPoint:AddStringField(
fieldNamestring,
valuestring
) → ()

Adds a string field

Show raw api
{
    "functions": [
        {
            "name": "SetTimestamp",
            "desc": "If it's nil, the timestamp defaults to send time",
            "params": [
                {
                    "name": "timestamp",
                    "desc": "",
                    "lua_type": "DateTime | nil"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 91,
                "path": "src/influxdbclient/src/Shared/Write/InfluxDBPoint.lua"
            }
        },
        {
            "name": "AddTag",
            "desc": "Tags are indexed, whereas fields are not.",
            "params": [
                {
                    "name": "tagKey",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "tagValue",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 103,
                "path": "src/influxdbclient/src/Shared/Write/InfluxDBPoint.lua"
            }
        },
        {
            "name": "AddIntField",
            "desc": "Adds an int field",
            "params": [
                {
                    "name": "fieldName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 116,
                "path": "src/influxdbclient/src/Shared/Write/InfluxDBPoint.lua"
            }
        },
        {
            "name": "AddUintField",
            "desc": "Adds a uint field",
            "params": [
                {
                    "name": "fieldName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 139,
                "path": "src/influxdbclient/src/Shared/Write/InfluxDBPoint.lua"
            }
        },
        {
            "name": "AddFloatField",
            "desc": "Adds a float field",
            "params": [
                {
                    "name": "fieldName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 163,
                "path": "src/influxdbclient/src/Shared/Write/InfluxDBPoint.lua"
            }
        },
        {
            "name": "AddBooleanField",
            "desc": "Adds a boolean field",
            "params": [
                {
                    "name": "fieldName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 180,
                "path": "src/influxdbclient/src/Shared/Write/InfluxDBPoint.lua"
            }
        },
        {
            "name": "AddStringField",
            "desc": "Adds a string field",
            "params": [
                {
                    "name": "fieldName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 193,
                "path": "src/influxdbclient/src/Shared/Write/InfluxDBPoint.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "InfluxDBPoint",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/influxdbclient/src/Shared/Write/InfluxDBPoint.lua"
    }
}