< Back
Send-MJInfluxData
Post
NAME Send-MJInfluxData
SYNOPSIS
Send data to InfluxDB databases
Written by Ispep
www.automatiserar.se
SYNTAX
Send-MJInfluxData [-InfluxServer] <String> [-databaseName] <String> [[-MainDataTag] <String>] [[-TagInfo] <Array>]
[[-Values] <Array>] [[-BulkData] <Array>] [-https] [[-port] <Int32>] [<CommonParameters>]
DESCRIPTION
This function verify that your data is provided with the structure required by InfluxDB
AVOID to use SPACE and "," those could make your input break.
if data are posted ok, you will get "True" in response
Current version does not allow for manual input of date!
V1.1 - Added Bulkdata
This will allow a maximum of 5000 objects to be posted to Influx. It requires that the time is added before
and that $MainDataTag, TagInfo and Values is empty. othervise bulkdata is ignored
PARAMETERS
-InfluxServer <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-databaseName <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MainDataTag <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-TagInfo <Array>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Values <Array>
example $("host=demo","ip=10.20.30.40")
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BulkData <Array>
example $("temperature=11","light=229")
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-https [<SwitchParameter>]
This allows 5000 objects to be written to the database.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-port <Int32>
Required? false
Position? 7
Default value 8086
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Send information to database
Send-MJInfluxData -InfluxServer MyInfluxServer -databaseName Automatiserarse -MainDataTag "powershell" -TagInfo
$("host=MyCompyter","Type=WIFI","OS=Windows10") -Value "value1=22.2,value2=12.4"
True
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Another example of how to use this cmdlet
RELATED LINKS
SYNOPSIS
Send data to InfluxDB databases
Written by Ispep
www.automatiserar.se
SYNTAX
Send-MJInfluxData [-InfluxServer] <String> [-databaseName] <String> [[-MainDataTag] <String>] [[-TagInfo] <Array>]
[[-Values] <Array>] [[-BulkData] <Array>] [-https] [[-port] <Int32>] [<CommonParameters>]
DESCRIPTION
This function verify that your data is provided with the structure required by InfluxDB
AVOID to use SPACE and "," those could make your input break.
if data are posted ok, you will get "True" in response
Current version does not allow for manual input of date!
V1.1 - Added Bulkdata
This will allow a maximum of 5000 objects to be posted to Influx. It requires that the time is added before
and that $MainDataTag, TagInfo and Values is empty. othervise bulkdata is ignored
PARAMETERS
-InfluxServer <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-databaseName <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MainDataTag <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-TagInfo <Array>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Values <Array>
example $("host=demo","ip=10.20.30.40")
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BulkData <Array>
example $("temperature=11","light=229")
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-https [<SwitchParameter>]
This allows 5000 objects to be written to the database.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-port <Int32>
Required? false
Position? 7
Default value 8086
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Send information to database
Send-MJInfluxData -InfluxServer MyInfluxServer -databaseName Automatiserarse -MainDataTag "powershell" -TagInfo
$("host=MyCompyter","Type=WIFI","OS=Windows10") -Value "value1=22.2,value2=12.4"
True
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Another example of how to use this cmdlet
RELATED LINKS