Relación entre classCMDB y mapper

    La propiedad “mappingName” nos permite relacionar las propiedades “mapper” y “dataReference”.

    “mapper”:

    Nos permite relacionar las propiedades del dispositivo con las propiedades de la clase CI,

    En “mapper” sólo se tienen en cuenta los campos que tengan el “mappingType” de tipo “Mapper”

    Continuando con el ejemplo se toman las propiedades de las clases CI ServiceNow y se relacionan con las propiedades del dispositivo ADM de la siguiente forma:


    Dispositivo Clase CI
    OperatingSystemVersion os_version
    name name
    serial serial_number
    creationDate Sys_created_on
    id object_id
    diskUsage disk_space
    discovery_source discovery_source


    Relación para “mappingType” Mapper

    {
      "mapper": [
       {
            "name": "DeviceComputerReferenceNetwork",
            "fields": [
                {
                    "fieldDevice": "domain",
                    "fieldCMDB": "dns_domain"
                },
                {
                    "fieldDevice": "ipRegistred",
                    "fieldCMDB": "ip_address"
                }
            ]
        },
        {
            "name": "DeviceComputerReference",
            "fields": [
                {
                    "fieldDevice": "operatingSystemVersion",
                    "fieldCMDB": "os_version"
                },
                {
                    "fieldDevice": "name",
                    "fieldCMDB": "name"
                },
                {
                    "fieldDevice": "description",
                    "fieldCMDB": "short_description"
                },
                {
                    "fieldDevice": "serial",
                    "fieldCMDB": "serial_number"
                },
                {
                    "fieldDevice": "creationDate",
                    "fieldCMDB": "sys_created_on"
                },
                {
                    "fieldDevice": "id",
                    "fieldCMDB": "object_id"
                },
                {
                    "fieldDevice": "diskUsage",
                    "fieldCMDB": "disk_space"
                },
                {
                    "fieldDevice": "discovery_source",
                    "fieldCMDB": "discovery_source"
                }
            ]
        }
      ]
    }
    
    

    Relación para “mappingType” Reference y SysChoice

    {
      "mapper": [
              {
                "name": "OperatingSystemReferenced",
                "fields": [
                    {
                        "fieldDevice": "operatingSystem",
                        "fieldCMDB": "os"
                    }
                ]
            },
            {
                "name": "CompanyManufactureReference",
                "fields": [
                    {
                        "fieldDevice": "manufacturer",
                        "fieldCMDB": "name"
                    }
                ]
            },
            {
                "name": "HardwareProductModelReference",
                "fields": [
                    {
                        "fieldDevice": "model",
                        "fieldCMDB": "name"
                    },
                    {
                        "fieldDevice": "model",
                        "fieldCMDB": "short_description"
                    }
                ]
            },
            {
                "name": "UserDeviceReference",
                "fields": [
                    {
                        "fieldDevice": "responsibleUserName",
                        "fieldCMDB": "first_name"
                    },
                    {
                        "fieldDevice": "responsibleUserName",
                        "fieldCMDB": "last_name"
                    },
                    {
                        "fieldDevice": "userName",
                        "fieldCMDB": "user_name"
                    },
                    {
                        "fieldDevice": "responsibleUserEmail",
                        "fieldCMDB": "email"
                    }
                ]
            },
            {
                "name": "PublisherCompanyReference",
                "fields": [
                    {
                        "fieldDevice": "manufacturer",
                        "fieldCMDB": "name"
                    }
                ]
            }
      ]
    }
    
    


    ↩ Volver Ejemplo ServiceNow


    Continuar: Relación entre classCMDB y dataReference (paso 4) ↪