Skip to main content

Overview

The Servicios (Provider Services) module represents the bandwidth contracts you purchase from upstream providers. A single provider (e.g. TELEFÓNICA) can supply multiple services — for example, a 1 Gbps dedicated link in Lima and a 500 Mbps shared link in Arequipa. Each ServicioProveedor record tracks the full capacity lifecycle: how much you bought, how much you have sold onward to clients, how much is actively utilized, and how much headroom remains.
capacidad_disponible = capacidad_comprada − capacidad_vendida. This field is managed by the system and updated via the capacity adjustment endpoint. You should not set it directly when creating or editing a service.

Data Model


Services List Page

The Enlaces por proveedor page lists all provider services in a paginated table (10 per page by default).

Filters

  • Búsqueda — debounced free-text search across proveedor_nombre, cid_proveedor, modalidad, and ubicacion_servicio. Activates when the input reaches 2 or more characters.
  • Proveedor — dropdown of providers found in the current result set.
  • CID — dropdown filtered to cid_proveedor values of visible services.

KPI strip

Inside the filter card, four mini-KPI tiles show the totals for the currently visible (filtered) services:

Table columns


Create Service

Click Nuevo servicio to navigate to /servicios/crear.
1

Select a provider

Choose a proveedor_id from the provider dropdown. The dropdown is populated by GET /v1/proveedores/listar/select and shows each provider with its existing services.
2

Fill in service details

3

Save

Click Guardar. On success the response includes servicio_id and cid_generado (the auto-incremented circuit ID assigned by the system).

Auto-increment CID

Before the creation form renders, the dashboard fetches the next available internal circuit ID:
You can accept the suggested value or override it manually with your own cid_interno.

Create API call


Capacity Adjustment

You can increase or decrease the capacidad_disponible of a service at any time without editing the full service record. This is used when you sell more capacity to a client (decreasing available headroom) or when a client terminates their contract (returning capacity to the pool).
Click the button on a service row and enter a positive delta_disponible.
The response returns the updated capacity fields:
Click the button and enter a negative delta_disponible (or the modal may accept a positive value and negate it internally).
If the backend returns ok: false in the response body (even with HTTP 200), the frontend converts it into a thrown error so the adjustment modal displays the failure message inline. Always check the ok field in the response.

Service Detail Page

Navigate to /servicios/detalle/{servicio_id} (or click the eye icon on a row) to open the full detail view.

Sections

Displays proveedor_nombre, modalidad, ubicacion_servicio, condicion, capacidad_disponible, and observacion in a two-column grid.
Four KPI cards for capacidad_comprada, capacidad_vendida, capacidad_utilizada, and capacidad_disponible, plus a usage progress bar (capacidad_utilizada / capacidad_comprada). An alert pill appears when usage exceeds 75 % (ALTO) or 90 % (CRÍTICO).
An SVG area chart showing simulated usage over time. In production this will be replaced by live Zabbix data.
A searchable table of all network connections (EnlaceRed) that consume bandwidth from this service. Columns: Cliente (razon_social), Plan contratado (bw_contratado), Uso actual (bw_disponible), % enlace.The top-consuming client is highlighted with a pill above the table.

EnlaceRed type

Fetched from:

API Reference