跳转至

管理警报

您可以使用 SAP Alert Notification 服务为 SAP Business Technology Platform 资源和 移动服务 配置警报通知。您还可以从 SAP 移动服务主控室 租用事件和故障日志,并在 Alert Notification 服务中配置警报通知。

要使用 SAP Alert Notification 服务,您必须启用该服务并配置租用和警报。例如,您可以创建条件来接收一个或多个应用程序或版本升级的通知。可以使用电子邮件、Slack 和其他渠道使用通知。

从 SAP 移动服务主控室,您可以租用事件和故障日志,并在 Alert Notification 服务中创建条件来接收警报通知。使用我的警报来管理事件和故障日志租用,并查看发行说明。

订阅移动服务警报

使用面向 SAP Business Technology Platform 的 SAP Alert Notification 服务接收有关移动服务警报的通知。

用户必须启用 Alert Notification 服务,并配置订阅和警报(无法通过 SAP 移动服务主控室管理订阅和警报)。

必须启用警报,且必须为应用程序配置警报级别。

Alert Notification 服务支持用户接收和创建 SAP Business Technology Platform 资源的自定义警报和通知,并通过其选择的系统(如电子邮件、Slack 和其他渠道)进行使用。有关服务的信息,请参阅面向 SAP Business Technology Platform 的 SAP Alert Notification 服务

  1. (用户)要接收通知,请在同一空间中的警报通知服务中创建条件:

    Key: tags.mobile_alert_app
    Predicate: Is Equal To
    Value: appId
    
  2. (用户)要接收所有应用程序的警报,请创建条件:

    Key: eventType
    Predicate: Is Equal To
    Value: MobileServicesApplicationAlert
    

租用版本升级通知

新版本的 移动服务 可用时,使用面向 SAP Business Technology Platform 的 SAP Alert Notification 服务接收通知。

用户必须启用 Alert Notification 服务,并配置订阅和警报(无法通过 SAP 移动服务主控室管理订阅和警报)。

Alert Notification 服务支持用户接收和创建 SAP Business Technology Platform 资源的自定义警报和通知,并通过其选择的系统(如电子邮件、Slack 和其他渠道)进行使用。有关服务的信息,请参阅面向 SAP Business Technology Platform 的 SAP Alert Notification 服务

(用户)设置订阅时,需要以下条件配置信息:

Key: eventType
Predicate: Is Equal To
Value: MobileServicesReleaseNotice

要详细了解:使用 SAP Business Technology Platform 主控室进行配置管理

租用故障日志通知

使用 SAP Alert Notification 服务接收持续的 移动服务 故障日志通知。

您必须在 SAP 移动服务主控室 中租用故障日志,如租用故障警报中所述。当您创建租用并启用 ANS 复选框时,您会收到 Alert Notification 信息以帮助您在 Alert Notification 服务中创建条件。

通过 SAP Business Technology Platform Alert Notification 服务为租用创建条件,您可以在三个月内继续接收警报通知。有关服务的信息,请参阅面向 SAP Business Technology Platform 的 SAP Alert Notification 服务

您可以使用我的警报将租用再延长三个月。请参阅管理我的警报

  1. (用户)要接收故障日志类型租用的通知,请在 Alert Notification 服务中的同一空间中创建条件:

    Key: tags.mobile_crash_log_alert
    Predicate: Is Equal To
    Value: subscription_name
    
  2. (用户)要接收所有故障日志租用的通知,请在 Alert Notification 服务中的同一空间中创建条件:

    Key: eventType
    Predicate: Is Equal To
    Value: MobileServicesCrashLogAlert
    

租用事件日志通知

使用 SAP Alert Notification 服务接收持续的 移动服务 事件日志通知。

您必须在 SAP 移动服务主控室 中租用事件日志,如租用事件日志警报中所述。当您创建租用并启用 ANS 复选框时,您会收到 Alert Notification 信息以帮助您在 Alert Notification 服务中创建条件。

通过 SAP Business Technology Platform Alert Notification 服务为租用创建条件,您可以在三个月内继续接收警报通知。有关服务的信息,请参阅面向 SAP Business Technology Platform 的 SAP Alert Notification 服务

您可以使用我的警报将租用再延长三个月。请参阅管理我的警报

  1. (用户)要接收事件日志类型租用的通知,请在 Alert Notification 服务中的同一空间中创建条件:

    Key: tags.mobile_event_log_alert
    Predicate: Is Equal To
    Value: subscription_name
    
  2. (用户)要接收所有事件日志租用的通知,请在 Alert Notification 服务中的同一空间中创建条件:

    Key: eventType
    Predicate: Is Equal To
    Value: MobileServicesEventLogAlert
    

订阅证书到期通知

您可以为与 移动服务 一起使用的多个证书创建证书到期警报,并使用 SAP Alert Notification 服务 (ANS) 接收有关警报的通知。有关服务的信息,请参阅面向 SAP BTP[(https://help.sap.com/docs/alert-notification?version=Cloud) 的 ]SAPAlert Notification 服务。

在收到证书到期警报之前,您必须:

  1. 在 SAP Business Technology Platform 主控室中,为所选应用程序在提供者中配置 ANS 服务。例如,为 service-instance-service 启用 ANS 服务。导航到 mobiledev > 提供者 > int-test > 应用程序 > service-instance-service > mobiledev > 提供者 > int-test

  2. User-Provided 变量中添加以下密钥和值:

    Key:
    FRAMEWORK_ALERT_NOTIFICATION_KEY_CREDENTIALS
    
    Value:
    {
        "client_id": "e49ba8d1-0a53-4729-97f5-80da6569bc1c",
        "client_secret": "YAugmRMo2h5ljXBoyVlJXS2ScLgrp60e",
        "url": "https://clm-sl-ans-canary-ans-service-api.cfapps.sap.hana.ondemand.com"
    }
    

您可以针对以下情况定义证书过期警报:

  • 使用 X509 证书推送 Apple 推送通知服务 (APNS) 配置。

  • 具有 X509 证书的服务的服务密钥,例如推送的服务密钥、移动连接的服务密钥。

  • 使用密钥库和信任库配置的连接性目标。

配置完成后,您将在以下情况下收到推送 APNS、服务密钥和连接性目标的证书警报:

  • 证书有效期为到期前 30 天。

  • 该证书已过期。

要配置警报和通知:

  1. 在移动应用程序空间添加警报通知实例以接收警报消息。添加警报订阅并将条件设置为 eventType isEqualsTo MobileServicesCertificateExpiration

    例如:

    mobiledev > mobile-tenantx > 服务 > Service Marketplace > Alert Notification > 单击菜单:实例和订阅 > 添加实例:alert-notification-integration-test-ins

    Alert Notification 实例中,单击订阅并为 eventType isEqualsTo MobileServicesCertificateExpiration 创建订阅和条件。

  2. 创建移动应用程序以在推送 APNS、连接性目标和服务密钥中配置 X509 证书。

    例如:

    应用 > 移动推送通知 > 配置 > Apple > 验证 > 证书

    应用 > 移动推送通知 > 服务密钥 > 添加服务密钥,类型:X.509

    移动连接性 > 配置 > 添加配置 > 上载密钥库,受信存储库

    移动连接性 > 服务密钥 > 添加服务密钥,类型:X.509

  3. 服务密钥证书过期警报示例消息:

    Landscape Details:
        region: cf-eu10-canary
        region type: sap-cp
    
    Resource Details:
        global account: mobiledev
        subaccount: d9d8680d-95c8-406e-8e6d-fa16de8faa39
        resource group: d8204f1e-7751-499b-9d05-d74c9de77c65
        resource type: SAP Mobile Services
        resource name: certExpirationAlert
    
    Resource Tags:
        globalAccountId: mobiledev
        organizationId: d9d8680d-95c8-406e-8e6d-fa16de8faa39
        resourceLandscape: cf-eu10-canary
        spaceId: d8204f1e-7751-499b-9d05-d74c9de77c65
        subAccountId: 4a79476a-b15d-4305-8cde-9378a46b5b69
    
    Event Details:
        event type: MobileServicesCertificateExpiration
        event subject: Certificate will expire soon
        event timestamp: 1712970000 [ 2024-04-13T01:00:00Z ]
        category: ALERT
        severity: WARNING
    
    Event Tags:
        ans:eventScope: CF_SPACE
        ms_app: certExpirationAlert
        ms_service: service-proxy
    
    Event Body:
    Subaccount ID:4a79476a-b15d-4305-8cde-9378a46b5b69
    Subdomain:mobile-tenant3
    Application ID:certExpirationAlert
    Service name: service-proxy
    Service key alias: certExpireServiceKey
    The certificate will be expired at Tue Apr 16 06:58:56 UTC 2024
    
  4. 连接性目标的证书过期警报示例消息:

    Landscape Details:
        region: cf-eu10-canary
        rgion type: sap-cp
    
    Resource Details:
        global account: mobiledev
        subaccount: d9d8680d-95c8-406e-8e6d-fa16de8faa39
        resource group: d8204f1e-7751-499b-9d05-d74c9de77c65
        resource type: SAP Mobile Services
        resource name: testCertAlert
    
    Resource Tags:
        globalAccountId: mobiledev
        organizationId: d9d8680d-95c8-406e-8e6d-fa16de8faa39
        resourceLandscape: cf-eu10-canary
        spaceId: d8204f1e-7751-499b-9d05-d74c9de77c65
        subAccountId: 4a79476a-b15d-4305-8cde-9378a46b5b69
    
    Event Details:
        event type: MobileServicesCertificateExpiration
        event subject: Certificate will expire soon
        event timestamp: 1713500110 [ 2024-04-19T04:15:10Z ]
        category: ALERT
        severity: WARNING
    
    Event Tags:
        ans:eventScope: CF_SPACE
        ms_app: testCertAlert
        ms_service: service-proxy
    
    Event Body:
    Subaccount ID:4a79476a-b15d-4305-8cde-9378a46b5b69
    Subdomain:mobile-tenant3
    Application ID:testCertAlert
    Service name: service-proxy
    Endpoint name: testCertAlert
    Endpoint certificate alias: smp_crt
    The certificate of alias smp_crt in keystore has already expired at Wed Jul 01 16:21:55 UTC 2015
    The certificate of alias tc_trust_center_ssl_ca_1 in truststore has already expired at Thu Feb 14 17:45:15 UTC 2013
    The certificate of alias entrustserverca in truststore has already expired at Sat May 25 16:39:40 UTC 2019
    The certificate of alias telekomonlinepass in truststore has already expired at Tue Jul 09 23:59:00 UTC 2019
    The certificate of alias thawteserverbasic in truststore has already expired at Thu Dec 31 23:59:59 UTC 2020
    The certificate of alias tctrustcenterclass2 in truststore has already expired at Sat Jan 01 11:59:59 UTC 2011
    The certificate of alias equifax_secure_certificate_authority in truststore has already expired at Wed Aug 22 16:41:51 UTC 2018
    The certificate of alias tctrustcenterclass1 in truststore has already expired at Sat Jan 01 11:59:59 UTC 2011
    The certificate of alias entrustpersonalserverca in truststore has already expired at Sat Oct 12 19:54:30 UTC 2019
    The certificate of alias mykey in truststore has already expired at Thu Aug 31 12:00:00 UTC 2023
    The certificate of alias gte_global_root in truststore has already expired at Mon Aug 13 23:59:00 UTC 2018
    The certificate of alias sappassportca in truststore has already expired at Sat Jul 18 10:00:00 UTC 2015
    The certificate of alias smp_crt in truststore has already expired at Wed Jul 01 16:21:55 UTC 2015
    
  5. 推送 APNS 端点证书过期警报示例消息:

    Landscape Details:
        region: cf-eu10-canary
        region type: sap-cp
    
    Resource Details:
        global account: mobiledev
        subaccount: d5c92d6a-71f8-433b-9229-25a8fea913ad
        resource group: 80888875-d3b7-4d00-b937-9b1640886385
        resource type: SAP Mobile Services
        resource name: piat.custom.basic.scc
    
    Resource Tags:
        globalAccountId: mobiledev
        organizationId: d5c92d6a-71f8-433b-9229-25a8fea913ad
        organizationName: mobiledev_cmk-ops-subscriber
        resourceLandscape: cf-eu10-canary
        spaceId: 80888875-d3b7-4d00-b937-9b1640886385
        spaceName: stg
        subAccountId: 95dc8f00-2615-45bc-abaf-3a8474294e90
    
    Event Details:
        event type: MobileServicesCertificateExpiration
        event subject: Certificate will expire soon
        event timestamp: 1713229203 [ 2024-04-16T01:00:03Z ]
        category: ALERT
        severity: WARNING
    
    Event Tags:
        ans:eventScope: CF_SPACE
        ms_app: piat.custom.basic.scc
        ms_service: service-push
    
    Event Body:
    Application ID:piat.custom.basic.scc
    Subaccount ID:95dc8f00-2615-45bc-abaf-3a8474294e90
    Subdomain:cmk-ops-subscriber
    Organization Name:mobiledev_cmk-ops-subscriber
    Space Name:stg
    Global account ID:mobiledev
    The certificate: PIATBJPush2023.p12 of APNS Endpoint: SANDBOX has already expired at Thu Dec 28 06:55:48 UTC 2023
    

管理我的警报

使用 SAP 移动服务主控室 我的警报在租户级别管理对事件或故障日志事件的 移动服务 租用,并访问发行说明。您可以在 SAP SAP Business Technology Platform Alert Notification 服务中创建条件以接收这些警报的持续通知。

您必须启用 Alert Notification 服务并配置租用和警报以接收事件和故障日志的持续警报通知。为方便起见,在租用事件或故障日志时提供了警报条件的格式。

  1. 在 SAP 移动服务主控室中,选择我的警报

  2. 您可以通过设置筛选器来缩小要查看的事件焦点,例如时间范围类别(服务器端搜索);发送至 ANS 和租用名称(本地搜索)。您还可以选择筛选掉 0 个消息租用筛选掉没有消息标题的消息租用,以清理视图(本地搜索)。选择执行以开始搜索,然后选择重置筛选器以清除筛选器条目。

    基于所选筛选器显示事件列表。左侧带有蓝色突出显示的任何行指示自上次查看租用以来收到的新消息或未读消息。

    我的事件

    描述
    最新消息时间 (UTC) 为租用接收的最后一条消息的时间。
    计数 在所选时间范围内为租用接收的消息总计数。
    类别 租用的事件类别,包括事件日志、故障日志、发行说明或全部。
    最新消息标题 为租用接收的最新消息标题。
    租用名称 租用名称已分配至事件。
    发送至 ANS 是否将事件发送到 Alert Notification 服务。
    ANS 过期 (UTC) 标识 Alert Notification 服务租用何时过期。
    操作 您可以执行的操作,例如编辑、删除或延长租用。如果租用距过期还有一个月,您可以再延长三个月。新日期反映在 ANS 过期列中。
  3. 选择行以查看详细信息。

  4. 选择事件日志行以打开分析 > 日志中的日志,并设置您的筛选器。您可以租用此事件,或查看详细信息。请参阅租用事件日志警报以了解更多信息。

  5. 选择故障日志行以打开分析 > 故障中的日志,并设置您的筛选器。您可以租用此事件,或查看详细信息。请参阅租用故障警报以了解更多信息。

  6. 选择发行说明行以打开发行说明版本的发行说明页面。发行说明概览提供了信息链接。


最后更新: July 8, 2025