N°8514 - CMDB datamodel for electricity (2)

This commit is contained in:
v-dumas
2025-12-17 15:11:24 +01:00
parent 5619a9cb75
commit 7ee95864b3
4 changed files with 112 additions and 115 deletions

View File

@@ -1,4 +1,5 @@
<?php
/**
* Localized data
*
@@ -10,15 +11,15 @@
// Menu : ConfigManagement : PowerSupply
//
Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', [
'Menu:ConfigManagement:PowerSupply' => 'Power supplies',
));
]);
//
// Class: Inverter
//
Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', [
'Class:Inverter' => 'Inverter',
'Class:Inverter+' => '',
'Class:Inverter/Attribute:rack_id' => 'Rack',
@@ -47,7 +48,7 @@ Dict::Add('EN US', 'English', 'English', array(
'Class:Inverter/Attribute:stss_list_a+' => 'Downstream ATS/STS (source A)',
'Class:Inverter/Attribute:stss_list_b' => 'ATS/STS - source B',
'Class:Inverter/Attribute:stss_list_b+' => 'Downstream ATS/STS (source B)',
'Class:Inverter/Attribute:obsolescence_flag' => 'Obsolete',
'Class:Inverter/Attribute:obsolescence_flag+' => 'Computed dynamically on other attributes',
'Class:Inverter/Attribute:rack_id_friendlyname' => 'Rack',
@@ -60,18 +61,18 @@ Dict::Add('EN US', 'English', 'English', array(
'Class:Inverter/Attribute:powerconnection_id_finalclass_recall+' => 'Name of the final class',
'Class:Inverter/Attribute:powerconnection_id_obsolescence_flag' => 'Power supply->Obsolete',
'Class:Inverter/Attribute:powerconnection_id_obsolescence_flag+' => 'Computed dynamically on other attributes',
'Inverter:baseinfo' => 'General informations',
'Inverter:moreinfo' => 'Additional informations',
'Inverter:technicalinfo' => 'Technical informations',
'Inverter:Date' => 'Dates',
'Inverter:otherinfo' => 'Other informations',
));
'Inverter:baseinfo' => 'General informations',
'Inverter:moreinfo' => 'Additional informations',
'Inverter:technicalinfo' => 'Technical informations',
'Inverter:Date' => 'Dates',
'Inverter:otherinfo' => 'Other informations',
]);
//
// Class: PDU
//
Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', [
'Class:PDU' => 'PDU',
'Class:PDU+' => 'Power distribution unit. A type of Power Connection.',
'Class:PDU/Attribute:rack_id' => 'Rack',
@@ -109,18 +110,18 @@ Dict::Add('EN US', 'English', 'English', array(
'Class:PDU/Attribute:powerconnection_id_finalclass_recall+' => 'Name of the final class',
'Class:PDU/Attribute:powerconnection_id_obsolescence_flag' => 'Electric supply->Obsolete',
'Class:PDU/Attribute:powerconnection_id_obsolescence_flag+' => 'Computed dynamically on other attributes',
'PDU:baseinfo' => 'General informations',
'PDU:moreinfo' => 'Additional informations',
'PDU:technicalinfo' => 'Technical informations',
'PDU:Date' => 'Dates',
'PDU:otherinfo' => 'Other informations',
));
'PDU:baseinfo' => 'General informations',
'PDU:moreinfo' => 'Additional informations',
'PDU:technicalinfo' => 'Technical informations',
'PDU:Date' => 'Dates',
'PDU:otherinfo' => 'Other informations',
]);
//
// Class: PowerConnection
//
Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', [
'Class:PowerConnection' => 'Power Connection',
'Class:PowerConnection+' => 'Abstract class, grouping all power devices',
'Class:PowerConnection/Attribute:charge_capacity' => 'Maximum load (A)',
@@ -149,13 +150,13 @@ Dict::Add('EN US', 'English', 'English', array(
'Class:PowerConnection/Attribute:voltage+' => '',
'Class:PowerConnection/Attribute:obsolescence_flag' => 'Obsolete',
'Class:PowerConnection/Attribute:obsolescence_flag+' => 'Computed dynamically on other attributes',
));
]);
//
// Class: PowerSource
//
Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', [
'Class:PowerSource' => 'Power Source',
'Class:PowerSource+' => 'First Power Connection documented in a power circuit,
It has no electrical source documented as an object in the CMDB.',
@@ -171,19 +172,19 @@ It has no electrical source documented as an object in the CMDB.',
'Class:PowerSource/Attribute:stss_list_b+' => 'Downstream ATS (source B)',
'Class:PowerSource/Attribute:obsolescence_flag' => 'Obsolete',
'Class:PowerSource/Attribute:obsolescence_flag+' => 'Computed dynamically on other attributes',
'PowerSource:baseinfo' => 'General informations',
'PowerSource:moreinfo' => 'Additional informations',
'PowerSource:technicalinfo' => 'Technical informations',
'PowerSource:Date' => 'Dates',
'PowerSource:otherinfo' => 'Other informations',
));
'PowerSource:baseinfo' => 'General informations',
'PowerSource:moreinfo' => 'Additional informations',
'PowerSource:technicalinfo' => 'Technical informations',
'PowerSource:Date' => 'Dates',
'PowerSource:otherinfo' => 'Other informations',
]);
//
// Class: PowerStart
//
Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', [
'Class:PowerStart' => 'Power Start',
'Class:PowerStart+' => '',
'Class:PowerStart/Attribute:powerconnection_id' => 'Source',
@@ -208,18 +209,18 @@ Dict::Add('EN US', 'English', 'English', array(
'Class:PowerStart/Attribute:powerconnection_id_finalclass_recall+' => 'Name of the final class',
'Class:PowerStart/Attribute:powerconnection_id_obsolescence_flag' => 'Source->Obsolete',
'Class:PowerStart/Attribute:powerconnection_id_obsolescence_flag+' => 'Computed dynamically on other attributes',
'PowerStart:baseinfo' => 'General informations',
'PowerStart:moreinfo' => 'Additional informations',
'PowerStart:technicalinfo' => 'Technical informations',
'PowerStart:Date' => 'Dates',
'PowerStart:otherinfo' => 'Other informations',
));
'PowerStart:baseinfo' => 'General informations',
'PowerStart:moreinfo' => 'Additional informations',
'PowerStart:technicalinfo' => 'Technical informations',
'PowerStart:Date' => 'Dates',
'PowerStart:otherinfo' => 'Other informations',
]);
//
// Class: STS
//
Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', [
'Class:STS' => 'ATS / STS',
'Class:STS+' => 'Automatic Transfer Switch / Static Transfer Switch
Redondant power supply for devices with a single electrical input.
@@ -264,20 +265,20 @@ They are themselves supplied with two different Power Source, through Power Conn
'Class:STS/Attribute:rack_friendlyname+' => 'Full name',
'Class:STS/Attribute:rack_obsolescence_flag' => 'Rack->Obsolete',
'Class:STS/Attribute:rack_obsolescence_flag+' => 'Computed dynamically on other attributes',
'STS:baseinfo' => 'General informations',
'STS:moreinfo' => 'Additional informations',
'STS:technicalinfo' => 'Technical informations',
'STS:Date' => 'Dates',
'STS:otherinfo' => 'Other informations',
));
'STS:baseinfo' => 'General informations',
'STS:moreinfo' => 'Additional informations',
'STS:technicalinfo' => 'Technical informations',
'STS:Date' => 'Dates',
'STS:otherinfo' => 'Other informations',
]);
//
// Class: Model
//
Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', [
'Class:Model/Attribute:type/Value:PDU+' => 'Power Distribution Unit',
'Class:Model/Attribute:type/Value:PowerStart' => 'Power Start',
'Class:Model/Attribute:type/Value:STS' => 'ATS/STS',
'Class:Model/Attribute:type/Value:Inverter' => 'Inverter',
));
'Class:Model/Attribute:type/Value:PowerStart' => 'Power Start',
'Class:Model/Attribute:type/Value:STS' => 'ATS/STS',
'Class:Model/Attribute:type/Value:Inverter' => 'Inverter',
]);

View File

@@ -1,4 +1,5 @@
<?php
/**
* Localized data
*
@@ -6,21 +7,19 @@
* @license http://opensource.org/licenses/AGPL-3.0
*/
//
// Menu : ConfigManagement : PowerSupply
//
Dict::Add('FR FR', 'French', 'Français', array(
Dict::Add('FR FR', 'French', 'Français', [
'Menu:ConfigManagement:PowerSupply' => 'Alimentations électriques',
));
]);
//
// Class: Inverter
//
Dict::Add('FR FR', 'French', 'Français', array(
Dict::Add('FR FR', 'French', 'Français', [
'Class:Inverter' => 'Onduleur',
'Class:Inverter+' => '',
'Class:Inverter/Attribute:rack_id' => 'Rack',
@@ -62,18 +61,18 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Class:Inverter/Attribute:powerconnection_id_finalclass_recall+' => 'Nom de la classe instanciable',
'Class:Inverter/Attribute:powerconnection_id_obsolescence_flag' => 'Arrivée électrique->Obsolète',
'Class:Inverter/Attribute:powerconnection_id_obsolescence_flag+' => 'Calculé dynamiquement en fonction d\'autres attributs de l\'objet',
'Inverter:baseinfo' => 'Informations générales',
'Inverter:moreinfo' => 'Informations complémentaires',
'Inverter:Date' => 'Dates',
'Inverter:otherinfo' => 'Autres informations',
'Inverter:technicalinfo' => 'Données techniques',
));
'Inverter:baseinfo' => 'Informations générales',
'Inverter:moreinfo' => 'Informations complémentaires',
'Inverter:Date' => 'Dates',
'Inverter:otherinfo' => 'Autres informations',
'Inverter:technicalinfo' => 'Données techniques',
]);
//
// Class: PDU
//
Dict::Add('FR FR', 'French', 'Français', array(
Dict::Add('FR FR', 'French', 'Français', [
'Class:PDU' => 'PDU',
'Class:PDU+' => 'Unité de distribution d\'alimentation',
'Class:PDU/Attribute:rack_id' => 'Rack',
@@ -111,18 +110,18 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Class:PDU/Attribute:powerconnection_id_finalclass_recall+' => 'Nom de la classe instanciable',
'Class:PDU/Attribute:powerconnection_id_obsolescence_flag' => 'Arrivée électrique->Obsolète',
'Class:PDU/Attribute:powerconnection_id_obsolescence_flag+' => 'Calculé dynamiquement en fonction d\'autres attributs de l\'objet',
'PDU:baseinfo' => 'Informations générales',
'PDU:moreinfo' => 'Informations complémentaires',
'PDU:Date' => 'Dates',
'PDU:otherinfo' => 'Autres informations',
'PDU:technicalinfo' => 'Données techniques',
));
'PDU:baseinfo' => 'Informations générales',
'PDU:moreinfo' => 'Informations complémentaires',
'PDU:Date' => 'Dates',
'PDU:otherinfo' => 'Autres informations',
'PDU:technicalinfo' => 'Données techniques',
]);
//
// Class: PowerConnection
//
Dict::Add('FR FR', 'French', 'Français', array(
Dict::Add('FR FR', 'French', 'Français', [
'Class:PowerConnection' => 'Connection électrique',
'Class:PowerConnection+' => '',
'Class:PowerConnection/Attribute:charge_capacity' => 'Charge maximale (A)',
@@ -147,13 +146,13 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Class:PowerConnection/Attribute:voltage+' => '',
'Class:PowerConnection/Attribute:obsolescence_flag' => 'Obsolète',
'Class:PowerConnection/Attribute:obsolescence_flag+' => 'Calculé dynamiquement en fonction d\'autres attributs de l\'objet',
));
]);
//
// Class: PowerSource
//
Dict::Add('FR FR', 'French', 'Français', array(
Dict::Add('FR FR', 'French', 'Français', [
'Class:PowerSource' => 'Arrivée électrique',
'Class:PowerSource+' => '',
'Class:PowerSource/Attribute:pdus_list' => 'PDUs',
@@ -168,18 +167,18 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Class:PowerSource/Attribute:stss_list_b+' => 'ATS/STS en aval (source B)',
'Class:PowerSource/Attribute:obsolescence_flag' => 'Obsolète',
'Class:PowerSource/Attribute:obsolescence_flag+' => 'Calculé dynamiquement en fonction d\'autres attributs de l\'objet',
'PowerSource:baseinfo' => 'Informations générales',
'PowerSource:moreinfo' => 'Informations complémentaires',
'PowerSource:Date' => 'Dates',
'PowerSource:otherinfo' => 'Autres informations',
'PowerSource:technicalinfo' => 'Données techniques',
));
'PowerSource:baseinfo' => 'Informations générales',
'PowerSource:moreinfo' => 'Informations complémentaires',
'PowerSource:Date' => 'Dates',
'PowerSource:otherinfo' => 'Autres informations',
'PowerSource:technicalinfo' => 'Données techniques',
]);
//
// Class: PowerStart
//
Dict::Add('FR FR', 'French', 'Français', array(
Dict::Add('FR FR', 'French', 'Français', [
'Class:PowerStart' => 'Départ électrique',
'Class:PowerStart+' => '',
'Class:PowerStart/Attribute:powerconnection_id' => 'Source',
@@ -204,18 +203,18 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Class:PowerStart/Attribute:powerconnection_id_finalclass_recall+' => 'Nom de la classe instanciable',
'Class:PowerStart/Attribute:powerconnection_id_obsolescence_flag' => 'Source->Obsolète',
'Class:PowerStart/Attribute:powerconnection_id_obsolescence_flag+' => 'Calculé dynamiquement en fonction d\'autres attributs de l\'objet',
'PowerStart:baseinfo' => 'Informations générales',
'PowerStart:moreinfo' => 'Informations complémentaires',
'PowerStart:Date' => 'Dates',
'PowerStart:otherinfo' => 'Autres informations',
'PowerStart:technicalinfo' => 'Données techniques',
));
'PowerStart:baseinfo' => 'Informations générales',
'PowerStart:moreinfo' => 'Informations complémentaires',
'PowerStart:Date' => 'Dates',
'PowerStart:otherinfo' => 'Autres informations',
'PowerStart:technicalinfo' => 'Données techniques',
]);
//
// Class: STS
//
Dict::Add('FR FR', 'French', 'Français', array(
Dict::Add('FR FR', 'French', 'Français', [
'Class:STS' => 'ATS / STS',
'Class:STS+' => 'Système de Transfert Automatique de Source',
'Class:STS/Attribute:powerconnection_source1_id' => 'Source A',
@@ -256,20 +255,20 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Class:STS/Attribute:rack_friendlyname+' => 'Nom complet',
'Class:STS/Attribute:rack_obsolescence_flag' => 'Rack->Obsolète',
'Class:STS/Attribute:rack_obsolescence_flag+' => 'Calculé dynamiquement en fonction d\'autres attributs de l\'objet',
'STS:baseinfo' => 'Informations générales',
'STS:moreinfo' => 'Informations complémentaires',
'STS:Date' => 'Dates',
'STS:otherinfo' => 'Autres informations',
'STS:technicalinfo' => 'Données techniques',
));
'STS:baseinfo' => 'Informations générales',
'STS:moreinfo' => 'Informations complémentaires',
'STS:Date' => 'Dates',
'STS:otherinfo' => 'Autres informations',
'STS:technicalinfo' => 'Données techniques',
]);
//
// Class: Model
//
Dict::Add('FR FR', 'French', 'Français', array(
Dict::Add('FR FR', 'French', 'Français', [
'Class:Model/Attribute:type/Value:PDU+' => 'Unité de Distribution d\'Alimentation',
'Class:Model/Attribute:type/Value:PowerStart' => 'Départ Electrique',
'Class:Model/Attribute:type/Value:STS' => 'ATS/STS',
'Class:Model/Attribute:type/Value:Inverter' => 'Onduleur',
));
'Class:Model/Attribute:type/Value:PowerStart' => 'Départ Electrique',
'Class:Model/Attribute:type/Value:STS' => 'ATS/STS',
'Class:Model/Attribute:type/Value:Inverter' => 'Onduleur',
]);

View File

@@ -14,4 +14,3 @@
// This file remains in the module's template only for the cases where there is:
// - either no new class or menu defined in the XML file
// - or no XML file at all supplied by the module

View File

@@ -1,4 +1,5 @@
<?php
//
// iTop module definition file
//
@@ -6,7 +7,7 @@
SetupWebPage::AddModule(
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
'itop-power-mgmt/3.3.0',
array(
[
// Identification
//
'label' => 'Extended Power Management for iTop Datacenter Management',
@@ -14,40 +15,37 @@ SetupWebPage::AddModule(
// Setup
//
'dependencies' => array(
'itop-datacenter-mgmt/3.3.0'
),
'dependencies' => [
'itop-datacenter-mgmt/3.3.0',
],
'mandatory' => false,
'visible' => true, // To prevent auto-install but shall not be listed in the install wizard
'auto_select' => 'SetupInfo::ModuleIsSelected("itop-datacenter-mgmt")',
// Components
//
'datamodel' => array(
'model.itop-power-mgmt.php'
),
'webservice' => array(
),
'data.struct' => array(
'datamodel' => [
'model.itop-power-mgmt.php',
],
'webservice' => [
],
'data.struct' => [
// add your 'structure' definition XML files here,
),
'data.sample' => array(
],
'data.sample' => [
// add your sample data XML files here,
),
],
// Documentation
//
'doc.manual_setup' => '', // hyperlink to manual setup documentation, if any
'doc.more_information' => '', // hyperlink to more information, if any
'doc.more_information' => '', // hyperlink to more information, if any
// Default settings
//
'settings' => array(
'settings' => [
// Module specific settings go here, if any
),
)
],
]
);
?>