57 lines
2.0 KiB
Python
57 lines
2.0 KiB
Python
ASSET_FIELDS = {
|
|
"asset_tag": "Inventarnummer",
|
|
"name": "Bezeichnung",
|
|
"manufacturer": "Hersteller",
|
|
"model": "Modell",
|
|
"serial_number": "Seriennummer",
|
|
"status": "Status",
|
|
"assigned_to": "Zugeordnet an",
|
|
"assigned_on": "Ausgegeben am",
|
|
"location": "Standort",
|
|
"room_number": "Raumnummer",
|
|
"parent_asset_id": "Übergeordnetes Gerät",
|
|
"department": "Abteilung",
|
|
"purchase_date": "Kaufdatum",
|
|
"warranty_until": "Garantie bis",
|
|
"notes": "Notizen",
|
|
"hostname": "Computername",
|
|
"operating_system": "Betriebssystem",
|
|
"os_patch_level": "OS-Patchlevel",
|
|
"mac_address": "MAC-Adresse",
|
|
"ip_address": "IP-Adresse",
|
|
"cpu": "CPU",
|
|
"memory_gb": "Arbeitsspeicher (GB)",
|
|
"storage_gb": "Speicher gesamt (GB)",
|
|
"storage_details": "Datenträger",
|
|
"gpu_name": "Grafikkarte",
|
|
"tpm_version": "TPM-Version",
|
|
"memory_details": "Arbeitsspeicher-Module",
|
|
"antivirus": "Aktiver Virenschutz",
|
|
"mesh_group": "MeshCentral-Gruppe",
|
|
"mesh_node_id": "MeshCentral Node-ID",
|
|
"mesh_online": "Online",
|
|
"mesh_mtype": "MeshCentral device type (mtype)",
|
|
}
|
|
|
|
DEFAULT_FIELDS = ["asset_tag", "name", "manufacturer", "model", "serial_number", "status", "assigned_to", "assigned_on", "location", "room_number", "notes"]
|
|
COMPUTER_FIELDS = DEFAULT_FIELDS + ["hostname", "operating_system", "os_patch_level", "mac_address", "ip_address", "cpu", "memory_gb", "memory_details", "storage_gb", "storage_details", "gpu_name", "tpm_version", "antivirus", "mesh_group", "mesh_node_id", "mesh_online", "mesh_mtype"]
|
|
|
|
FIELD_DATA_TYPES = {
|
|
"short_text": "Short text",
|
|
"long_text": "Long text",
|
|
"integer": "Integer",
|
|
"decimal": "Decimal number",
|
|
"boolean": "Boolean",
|
|
"date": "Date",
|
|
"datetime": "Date and time",
|
|
"url": "URL",
|
|
"email": "E-mail address",
|
|
"ip": "IP address",
|
|
"json": "JSON",
|
|
"asset_reference": "Asset reference",
|
|
"user_reference": "User reference",
|
|
"status": "Status",
|
|
}
|
|
|
|
SYSTEM_READONLY_FIELDS = {"mesh_node_id", "mesh_online", "mesh_mtype"}
|