|
const | DISCRIMINATOR = null |
|
const | TYPE_EXPIRE = 'expire' |
|
◆ __construct()
InfluxDB2\Model\BucketRetentionRules::__construct |
( |
array | $data = null | ) |
|
Constructor
- Parameters
-
mixed[] | $data | Associated array of property values initializing the model |
◆ __toString()
InfluxDB2\Model\BucketRetentionRules::__toString |
( |
| ) |
|
Gets the string presentation of the object
- Returns
- string
◆ attributeMap()
static InfluxDB2\Model\BucketRetentionRules::attributeMap |
( |
| ) |
|
|
static |
◆ getEverySeconds()
InfluxDB2\Model\BucketRetentionRules::getEverySeconds |
( |
| ) |
|
Gets every_seconds
- Returns
- int
◆ getModelName()
InfluxDB2\Model\BucketRetentionRules::getModelName |
( |
| ) |
|
◆ getShardGroupDurationSeconds()
InfluxDB2\Model\BucketRetentionRules::getShardGroupDurationSeconds |
( |
| ) |
|
Gets shard_group_duration_seconds
- Returns
- int|null
◆ getters()
static InfluxDB2\Model\BucketRetentionRules::getters |
( |
| ) |
|
|
static |
◆ getType()
InfluxDB2\Model\BucketRetentionRules::getType |
( |
| ) |
|
Gets type
- Returns
- string|null
◆ getTypeAllowableValues()
InfluxDB2\Model\BucketRetentionRules::getTypeAllowableValues |
( |
| ) |
|
Gets allowable values of the enum
- Returns
- string[]
◆ listInvalidProperties()
InfluxDB2\Model\BucketRetentionRules::listInvalidProperties |
( |
| ) |
|
◆ offsetExists()
InfluxDB2\Model\BucketRetentionRules::offsetExists |
( |
| $offset | ) |
|
Returns true if offset exists. False otherwise.
- Parameters
-
- Returns
- boolean
◆ offsetGet()
InfluxDB2\Model\BucketRetentionRules::offsetGet |
( |
| $offset | ) |
|
Gets offset.
- Parameters
-
- Returns
- mixed
◆ offsetSet()
InfluxDB2\Model\BucketRetentionRules::offsetSet |
( |
| $offset, |
|
|
| $value ) |
Sets value based on offset.
- Parameters
-
integer | $offset | Offset |
mixed | $value | Value to be set |
- Returns
- void
◆ offsetUnset()
InfluxDB2\Model\BucketRetentionRules::offsetUnset |
( |
| $offset | ) |
|
Unsets offset.
- Parameters
-
- Returns
- void
◆ openAPIFormats()
static InfluxDB2\Model\BucketRetentionRules::openAPIFormats |
( |
| ) |
|
|
static |
◆ openAPITypes()
static InfluxDB2\Model\BucketRetentionRules::openAPITypes |
( |
| ) |
|
|
static |
◆ setEverySeconds()
InfluxDB2\Model\BucketRetentionRules::setEverySeconds |
( |
| $every_seconds | ) |
|
Sets every_seconds
- Parameters
-
int | $every_seconds | The duration in seconds for how long data will be kept in the database. The default duration is 2592000 (30 days). 0 represents infinite retention. |
- Returns
- $this
◆ setShardGroupDurationSeconds()
InfluxDB2\Model\BucketRetentionRules::setShardGroupDurationSeconds |
( |
| $shard_group_duration_seconds | ) |
|
Sets shard_group_duration_seconds
- Parameters
-
int | null | $shard_group_duration_seconds | The shard group duration. The duration or interval (in seconds) that each shard group covers. #### InfluxDB Cloud - Does not use shardGroupDurationsSeconds . #### InfluxDB OSS - Default value depends on the bucket retention period. |
- Returns
- $this
◆ setters()
static InfluxDB2\Model\BucketRetentionRules::setters |
( |
| ) |
|
|
static |
◆ setType()
InfluxDB2\Model\BucketRetentionRules::setType |
( |
| $type | ) |
|
Sets type
- Parameters
-
- Returns
- $this
◆ valid()
InfluxDB2\Model\BucketRetentionRules::valid |
( |
| ) |
|
Validate all the properties in the model return true if all passed
- Returns
- bool True if all properties are valid
Implements InfluxDB2\Model\ModelInterface.
◆ $attributeMap
InfluxDB2\Model\BucketRetentionRules::$attributeMap |
|
staticprotected |
Initial value:= [
'type' => 'type',
'every_seconds' => 'everySeconds',
'shard_group_duration_seconds' => 'shardGroupDurationSeconds'
]
◆ $getters
InfluxDB2\Model\BucketRetentionRules::$getters |
|
staticprotected |
Initial value:= [
'type' => 'getType',
'every_seconds' => 'getEverySeconds',
'shard_group_duration_seconds' => 'getShardGroupDurationSeconds'
]
◆ $openAPIFormats
InfluxDB2\Model\BucketRetentionRules::$openAPIFormats |
|
staticprotected |
Initial value:= [
'type' => null,
'every_seconds' => 'int64',
'shard_group_duration_seconds' => 'int64'
]
◆ $openAPITypes
InfluxDB2\Model\BucketRetentionRules::$openAPITypes |
|
staticprotected |
Initial value:= [
'type' => 'string',
'every_seconds' => 'int',
'shard_group_duration_seconds' => 'int'
]
◆ $setters
InfluxDB2\Model\BucketRetentionRules::$setters |
|
staticprotected |
Initial value:= [
'type' => 'setType',
'every_seconds' => 'setEverySeconds',
'shard_group_duration_seconds' => 'setShardGroupDurationSeconds'
]
The documentation for this class was generated from the following file:
- src/InfluxDB2/Model/BucketRetentionRules.php