version 1.5

This commit is contained in:
Johannes Holzwarth | SE-Inno GmbH
2024-01-11 14:04:25 +01:00
parent 0ee8291846
commit 4492763b78
756 changed files with 209957 additions and 2 deletions
@@ -0,0 +1,33 @@
<?php
namespace InfluxDB2;
class PointSettings
{
private $defaultTags;
public function __construct(array $defaultTags = null)
{
$this->defaultTags = is_null($defaultTags) ? [] : $defaultTags;
}
public function addDefaultTag(string $key, string $expression)
{
$this->defaultTags[$key] = $expression;
}
public static function getValue(string $value): string
{
if (substr($value, 0, 6) === '${env.') {
return getenv(substr($value, 6, strlen($value) - 7));
}
return $value;
}
public function getDefaultTags()
{
return $this->defaultTags;
}
}