EN
Español
English
Português
    Relationship between classCMDB and mapper

    The “mappingName” property allows us to relate the “mapper” and “dataReference” properties.

    “mapper”:

    It allows us to relate the properties of the device to the properties of the CI class,

    In “mapper” only fields that have the “mappingType” of type “Mapper” are taken into account

    Continuing with the example, we take the properties of the ServiceNow CI classes and relate them to the properties of the ADM device as follows:


    Device Class CI
    OperatingSystemVersion os_version
    Name Name
    serial serial_number
    creationDate Sys_created_on
    Id object_id
    diskUsage disk_space
    discovery_source discovery_source


    Relationship for “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"
            }
          ]
        }
      ]
    }
    
    

    Relationship for “mappingType” Reference and 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"
            }
          ]
        }
      ]
    }
    
    


    ↩ Back ServiceNow Example


    Continue: Relationship between classCMDB and dataReference (step 4) ↪