# Storage

This is a base object that allows the user to create a Datapoint.

## withTotal(total)


Set the total attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **total** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `Storage`
<br>

{{% /notice %}}

---
## withUnit(unit)


Set the unit attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **unit** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `Storage`
<br>

{{% /notice %}}

---

