Erstellen Sie eine neue Konfiguration für den Abschnitt „Integrität“ oder „Einblicke“, und wenden Sie sie an
Erstellen Sie Konfigurationen für den Abschnitt „Integrität“ oder „Einblicke“, und wenden Sie sie nach Bedarf an.
Vorbereitungen
Erforderliche Rolle: sn_apm.apm_admin
Prozedur
- Navigieren zu Alle > Enterprise Architecture > Enterprise Architecture Workspace > Konfiguration.
- Wählen Sie auf der Seite APM EA-Konfigurationen Neu.
-
Füllen Sie die Felder des Formulars aus.
Tabelle : 1. Formular „Neuer EA-Konfigurationsdatensatz“. Feld Beschreibung Name Name der Konfiguration Aktiv Option, um die Konfiguration so zu aktivieren, dass sie im Abschnitt „Integrität“ oder „Einblicke“ angezeigt wird. Abschnitt Name des Abschnitts, für den Sie die Konfiguration erstellen. Bestellung Position der Karte in der sequenziellen Reihenfolge aller anderen Karten in diesem Abschnitt. Konfigurationstyp Typ der Konfiguration. Wenn das Feld Abschnitt auf eine der folgenden Optionen festgelegt ist, wird dieser Feldwert automatisch auf Skriptfestgelegt. - Gesundheitswesen
- Einblicke – Anwendungsportfolio
- Einblicke – Geschäftsportfolio
- Einblicke – Informationsportfolio
- Einblicke – Technologieportfolio
Konfigurationsskript Skript der Konfiguration. Beispielkonfigurationsskript zum Hinzufügen einer Karte („Business Capabilities nicht bewertet“) im Abschnitt „Integrität“:function responseFromScript(filters) { return {"count":74,"percentage":"45","subtext":"45% of all Capabilities","query":"sys_idIN016d2c3d18400300964f2ff0d21a4ee4,016d2c3d18400300964f2ff0d21a4eeb,016d6c3d18400300964f2ff0d21a4e00,016d6c3d18400300964f2ff0d21a4e0b,016d6c3d18400300964f2ff0d21a4e0e,056d2c3d18400300964f2ff0d21a4ee2,056d2c3d18400300964f2ff0d21a4ee9,056d2c3d18400300964f2ff0d21a4ef7,056d6c3d18400300964f2ff0d21a4e13,096d2c3d18400300964f2ff0d21a4ee0,096d2c3d18400300964f2ff0d21a4ef5,096d2c3d18400300964f2ff0d21a4efc,096d6c3d18400300964f2ff0d21a4e03,0d6d2c3d18400300964f2ff0d21a4ee5,0d6d2c3d18400300964f2ff0d21a4eec,0d6d2c3d18400300964f2ff0d21a4efa,0d6d6c3d18400300964f2ff0d21a4e08,116d6c3d18400300964f2ff0d21a4e23,156d6c3d18400300964f2ff0d21a4e21,343ab8b1c172d700964f1c9d9204dfc4,3df0ce8111f01300964fb19f04b5016c,3eaa906187082110cb387406dabb3502,416d2c3d18400300964f2ff0d21a4eee,416d2c3d18400300964f2ff0d21a4efc,416d6c3d18400300964f2ff0d21a4e03,416d6c3d18400300964f2ff0d21a4e0a,456d2c3d18400300964f2ff0d21a4ef3,4ad8bca987482110cb387406dabb3548,4d6d2c3d18400300964f2ff0d21a4ef6,596d6c3d18400300964f2ff0d21a4e22,5d6d6c3d18400300964f2ff0d21a4e19,816b418b876f1110cb387406dabb3548,816d2c3d18400300964f2ff0d21a4eea,816d2c3d18400300964f2ff0d21a4ef8,816d2c3d18400300964f2ff0d21a4eff,856d2c3d18400300964f2ff0d21a4ee1,856d2c3d18400300964f2ff0d21a4ee8,856d2c3d18400300964f2ff0d21a4ef6,896d2c3d18400300964f2ff0d21a4ee6,896d2c3d18400300964f2ff0d21a4ef4,896d6c3d18400300964f2ff0d21a4e02,896d6c3d18400300964f2ff0d21a4e09,896d6c3d18400300964f2ff0d21a4e10,8d6d2c3d18400300964f2ff0d21a4ee4,8d6d2c3d18400300964f2ff0d21a4eeb,8d6d2c3d18400300964f2ff0d21a4ef2,8d6d2c3d18400300964f2ff0d21a4ef9,8d6d6c3d18400300964f2ff0d21a4e00,916d6c3d18400300964f2ff0d21a4e22,956d6c3d18400300964f2ff0d21a4e19,a770d85187046110cb387406dabb3540,c16d2c3d18400300964f2ff0d21a4eed,c16d2c3d18400300964f2ff0d21a4ef4,c16d2c3d18400300964f2ff0d21a4efb,c4c7273087442110cb387406dabb3520,c56d2c3d18400300964f2ff0d21a4ee4,c56d2c3d18400300964f2ff0d21a4eeb,c56d6c3d18400300964f2ff0d21a4e00,c56d6c3d18400300964f2ff0d21a4e0e,c96d2c3d18400300964f2ff0d21a4ee2,c96d2c3d18400300964f2ff0d21a4ee9,c96d2c3d18400300964f2ff0d21a4ef0,c96d2c3d18400300964f2ff0d21a4efe,c96d6c3d18400300964f2ff0d21a4e05,c96d6c3d18400300964f2ff0d21a4e13,cd6d2c3d18400300964f2ff0d21a4ee7,cd6d2c3d18400300964f2ff0d21a4eee,d16d6c3d18400300964f2ff0d21a4e1e,d56d6c3d18400300964f2ff0d21a4e15,d56d6c3d18400300964f2ff0d21a4e1c,dd026ed887d82110cb387406dabb3548,dd6d6c3d18400300964f2ff0d21a4e18,ed4b175c87902110cb387406dabb3553,efbf3eb187bb11102f631f473cbb3571","table":"cmdb_ci_business_capability","listView":"business_capability_apm_view","icon":"exclamation Fill"} }Beispiel für ein Konfigurationsskript zum Hinzufügen einer Karte im Anwendungs-Portfolio, Geschäfts-Portfolio oder Informationsportfolio im Abschnitt „Einblicke“:months - selected upto months filter showProd - show only production filter responseFromScript(months, showProd); function responseFromScript(months, showProd) { var currentDateTime = new GlideDateTime(); currentDateTime.addMonthsLocalTime(months); var queryDate = currentDateTime.getLocalDate(); var query = "technology_lifecycle.earliest_lifecycle_date<=javascript:gs.dateGenerate('" + queryDate + "','start')"; if (showProd) { query = query + "^business_service.used_for=Production"; } var productInventoryGR = new GlideAggregate('sn_apm_tpm_discovered_technology'); productInventoryGR.addEncodedQuery(query); productInventoryGR.addAggregate("count(distinct", 'technology_lifecycle.hardware_model'); productInventoryGR.setGroup(false); productInventoryGR.query(); if (productInventoryGR.next()) { hwProductsCount = productInventoryGR.getAggregate("count(distinct", 'technology_lifecycle.hardware_model'); } if (hwProductsCount > 0) { var hpRiskDesc = gs.getMessage("by {0}", [queryDate]); return { 'title': { 'label': gs.getMessage("Hardware models with lifecycle risk"), 'size': "sm", 'lines': 2 }, 'count': hwProductsCount, 'description': { 'label': hpRiskDesc, 'lines': 2 }, 'countLabel': gs.getMessage("Hardware models count"), 'buttonLabel': gs.getMessage("View list"), 'buttonTooltip': gs.getMessage("View list for hardware models with lifecycle risk"), 'border': this.cardDetails[3].border, 'highlightedHeader': this.cardDetails[3].header, 'navigation': { "route": "list", "title": gs.getMessage("Hardware models with lifecycle risk"), "fields": { "table": "sn_apm_tpm_discovered_technology", "listTitle": gs.getMessage("Hardware models with lifecycle risk") }, "params": { "query": query + "^ORDERBYtechnology_lifecycle.earliest_lifecycle_date", "listView": "" } }, 'ariaLabel': { "aria-label": gs.getMessage("View list for hardware models with lifecycle risk") } }; } return false; } - Klicken Sie auf Absenden.