Asset Management with semi-auto discovery processes
Project description
inventory-monitor
Discover inventory from devices in NetBox
Attachments
- For attachments use https://github.com/Kani999/netbox-attachments
classDiagram
class Contractor {
+name: str
+company: str
+address: str
+tenant: FK
}
class Contract {
+name: str
+name_internal: str
+type: str
+price: decimal
+signed: date
+accepted: date
+invoicing_start: date
+invoicing_end: date
}
class Invoice {
+name: str
+name_internal: str
+project: str
+price: decimal
+invoicing_start: date
+invoicing_end: date
}
class Component {
+serial: str
+serial_actual: str
+partnumber: str
+asset_number: str
+project: str
+vendor: str
+quantity: int
+price: decimal
+warranty_start: date
+warranty_end: date
}
class ComponentService {
+service_start: date
+service_end: date
+service_param: str
+service_price: decimal
+service_category: str
+service_category_vendor: str
}
class Probe {
+time: datetime
+device_descriptor: str
+site_descriptor: str
+location_descriptor: str
+part: str
+name: str
+serial: str
+description: str
}
Contractor "1" -- "*" Contract: has
Contract "1" -- "*" Invoice: has
Contract "1" -- "*" Contract: parent/subcontracts
Contract "1" -- "*" Component: order_contract
Contract "1" -- "*" ComponentService: has
Component "1" -- "*" ComponentService: has
Component "*" -- "1" Device: belongs to
Component "*" -- "1" Site: belongs to
Component "*" -- "1" Location: belongs to
Component "*" -- "1" InventoryItem: belongs to
Probe "*" -- "1" Device: belongs to
Probe "*" -- "1" Site: belongs to
Probe "*" -- "1" Location: belongs to
How the Data Model Works
-
Contractor
- Represents an external company or individual providing services or components.
- Associated with multiple contracts (
Contract).
-
Contract
- Represents a business agreement, such as for purchasing components or services.
- Can have:
- Multiple invoices (
Invoice) for billing. - Subcontracts (
Contract) for hierarchical contract management. - Components (
Component) linked to the contract. - Services (
ComponentService) provided as part of the contract.
- Multiple invoices (
-
Invoice
- Linked to a contract, representing billing details.
- Contains details about invoicing periods and project-specific billing.
-
Component
- Represents physical or logical components involved in a project.
- Includes details like serial number, price, vendor, warranty, and project association.
- Linked to services (
ComponentService) and devices, sites, locations, or inventory items.
-
ComponentService
- Represents services provided for a component, such as maintenance or subscriptions.
- Contains details about the service period, parameters, pricing, and service categories.
-
Probe
- Represents measurements or data collection related to a device, site, or location.
- Includes descriptors for identifying the context of the probe.
Example Data and Relationships
Scenario
- A contractor named TechCorp signs a contract for supplying components and providing maintenance services for a project.
- The project involves purchasing routers and switches from TechCorp, with maintenance services for these components.
- The contract also includes invoicing for specific periods.
Data Example
Contractor
- Name: TechCorp
- Company: TechCorp Ltd.
- Address: 123 Main St, TechCity
- Tenant: Default Tenant
Contract
- Name: Network Infrastructure Supply
- Type: Supply and Maintenance
- Price: $100,000
- Signed: 2025-01-01
- Invoicing Start: 2025-01-15
- Invoicing End: 2026-01-15
Invoice
- Name: Invoice #001
- Project: Project Alpha
- Price: $25,000
- Invoicing Start: 2025-01-15
- Invoicing End: 2025-02-15
Component
- Serial: R12345
- Part Number: RT-5000
- Vendor: TechCorp
- Price: $5,000
- Warranty Start: 2025-01-15
- Warranty End: 2028-01-15
- Project: Project Alpha
ComponentService
- Service Start: 2025-01-15
- Service End: 2026-01-15
- Service Param: Annual Maintenance
- Service Price: $1,000
- Service Category: Maintenance
- Service Category Vendor: TechCorp
Probe
- Time: 2025-02-01 10:00:00
- Device Descriptor: RT-5000 Router
- Site Descriptor: Data Center 1
- Location Descriptor: Rack A1
- Part: Router Module
- Name: Temperature Check
- Serial: R12345
- Description: Router temperature measurement.
Relationship Example
- TechCorp is linked to the Network Infrastructure Supply contract.
- The contract includes:
- A component (router) with serial number R12345.
- A service for annual maintenance of the router.
- An invoice for January 2025 billing.
- The component is associated with:
- A site (Data Center 1).
- A location (Rack A1).
- A device (RT-5000 Router).
- A probe captures performance data (temperature) for the router at a specific time.
This structure enables easy tracking of components, contracts, invoices, and services within the NetBox plugin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inventory_monitor-10.0.0.tar.gz
(29.5 kB
view details)
File details
Details for the file inventory_monitor-10.0.0.tar.gz.
File metadata
- Download URL: inventory_monitor-10.0.0.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.2 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.14 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9421948198584702c87f136f9ef939a7188f9e8a1489fec21e91ab0176e7ada6
|
|
| MD5 |
e407cb75d82807fb6a91d635fc70c4e8
|
|
| BLAKE2b-256 |
1c8270ed09ec7eda5e6664d61f245167ff9263190e6c9d081b2b63f826526fd4
|