Functions/Private/Get-InfluxDbServer.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function Get-InfluxDbServer {
    [CmdletBinding()]
    param()

    if (-Not (Test-InfluxDbServer)) {
        throw 'Credentials not set. Please use Set-InfluxDbServer first.'
    }

    @{
        Server = $script:InfluxDbServer
        User   = $script:InfluxDbUser
        Token  = $script:InfluxDbToken
    }
}