Previous Next

Retrieve an Alert

get

/OracleBAMREST/bam/api/projects/{projectname}/queries/businessqueries/alerts/{alertname}

Retrieves the Alert details based on alert name.

Request

There are no request parameters for this operation.

Response

Supported Media Types
  • application/json
  • application/xml
200 Response
Success
Body
Root Schema : /paths/~1projects~1{projectname}~1queries~1businessqueries~1alerts~1{alertname}/get/responses/200/schema
Example application/json

{
    "alert":{
        "oEvent":{
            "oContinuousQueryName":"BAMFramework.ASN_KPI_SLAViolation_Email_Alerting_HIGHAlert_ScheduledQuery",
            "oContinuousQueryString":"CREATE SCHEDULED QUERY BAMFramework.ASN_KPI_SLAViolation_Email_Alerting_HIGHAlert_ScheduledQuery AS \"SELECT SUMSLAViolationForKPI AS KPI_MEASURE, 10 AS KPI_THRESHOLD, 'ASN_KPI_SLAViolation_Email_Alerting' AS KPI_NAME, '/project/BAMFramework/kpi/ASN_KPI_SLAViolation_Email_Alerting' AS KPI_ID, 'HIGH' AS KPI_RISK_STATUS, CAST(CURRENT_TIMESTAMP AS TIMESTAMP) AS KPI_TIMESTAMP FROM ( SELECT SUM(CASE  WHEN ( (((CAST(DeliveredTimestamp AS DATE) - CAST(ReceivedTimestamp AS DATE)) * 24 * 60 * 60) >300 ) ) THEN (1) ELSE (0) END) AS SUMSLAViolationForKPI  FROM BEAM_VIEW_68 WHERE  ( (DeliveredTimestamp IS NOT NULL )  AND  ((((CAST(LOCALTIMESTAMP AS DATE) - CAST(DATAOBJECT_CREATED AS DATE)) * 24 * 60 * 60) /60)<60 ) )  HAVING  (SUM(CASE  WHEN ( (((CAST(DeliveredTimestamp AS DATE) - CAST(ReceivedTimestamp AS DATE)) * 24 * 60 * 60) >300 ) ) THEN (1) ELSE (0) END)>(10.0+10) )  ) S1\" REFRESH ON \"2015/03/12 02:37:00 PM -0700\" EVERY  1 DAY START IMMEDIATE  destination \"jms:queue/oracle.beam.cqservice.mdbs.alertengine:queuecf/oracle.beam.cqservice.mdbs.alertengine?batch=true\"",
            "m_strKPIId":"/project/BAMFramework/kpi/ASN_KPI_SLAViolation_Email_Alerting",
            "m_strRangeType":"HIGH"
        },
        "systemManaged":false,
        "internal":false,
        "strAlertXml":"            KPI      CQL      BAMFramework.ASN_KPI_SLAViolation_Email_Alerting_HIGHAlert_ScheduledQuery      300 ) ) THEN (1) ELSE (0) END) AS SUMSLAViolationForKPI  FROM BEAM_VIEW_68 WHERE  ( (DeliveredTimestamp IS NOT NULL )  AND  ((((CAST(LOCALTIMESTAMP AS DATE) - CAST(DATAOBJECT_CREATED AS DATE)) * 24 * 60 * 60) /60)<60 ) )  HAVING  (SUM(CASE  WHEN ( (((CAST(DeliveredTimestamp AS DATE) - CAST(ReceivedTimestamp AS DATE)) * 24 * 60 * 60) >300 ) ) THEN (1) ELSE (0) END)>(10.0+10) )  ) S1\" REFRESH ON \"2015/03/12 02:37:00 PM -0700\" EVERY  1 DAY START IMMEDIATE  destination \"jms:queue/oracle.beam.cqservice.mdbs.alertengine:queuecf/oracle.beam.cqservice.mdbs.alertengine?batch=true\"]]>      /project/BAMFramework/kpi/ASN_KPI_SLAViolation_Email_Alerting      HIGH                          notify      Send      ganesh.rajendran@nike.com,amik.basu@nike.com      SMTP                ",
        "bIsKPIAlert":true,
        "displayName":null,
        "createdDate":"2015-05-12T23:55:47.015+0000",
        "oActionList":[
            {
                "oSelectedActions":{
                    "entries":[
                        {
                            "key":"MESSAGE_EMAIL",
                            "value":{
                                "strEmail":"ganesh.rajendran@nike.com,amik.basu@nike.com",
                                "strMessageText":"BAM Alert-Common Audit SLA violation count exceeds 20. Appropriate action should be taken.\n\nRegards\nBAMAdmin\n",
                                "strMessageSubject":"DEVELOPMENT ENVIRONMENT-BAM Alert  : CommonAudit SLA Violation [Date/Time Sent] ",
                                "oMessageSubjectElements":[
                                    {
                                        "strType":"text",
                                        "strValue":"DEVELOPMENT ENVIRONMENT-BAM Alert  : CommonAudit SLA Violation ",
                                        "strDisplayValue":null
                                    },
                                    {
                                        "strType":"DateTimeElement",
                                        "strValue":"Date/Time Sent",
                                        "strDisplayValue":null
                                    },
                                    {
                                        "strType":"text",
                                        "strValue":"",
                                        "strDisplayValue":null
                                    }
                                ],
                                "oMessageTextElements":[
                                    {
                                        "strType":"text",
                                        "strValue":"BAM Alert-Common Audit SLA violation count exceeds 20. Appropriate action should be taken.\n\nRegards\nBAMAdmin\n",
                                        "strDisplayValue":null
                                    }
                                ]
                            }
                        }
                    ]
                },
                "oConstraint":{
                    "oStartTime":null,
                    "oDayOfWeek":[
                        "MONDAY"
                    ],
                    "oFromDateTime":null,
                    "bIsParticularDayOfWeekCondition":false,
                    "bIsBetweenTwoDaysCondition":false,
                    "bIsFromDateSet":true,
                    "oEndTime":null,
                    "oToDateTime":null,
                    "bIsBetweenTwoTimeCondition":false,
                    "bIsToDateSet":true,
                    "oSelectedDayOfWeek":[
                        "MONDAY"
                    ]
                }
            }
        ],
        "id":"/project/BAMFramework/alert/ASN_KPI_SLAViolation_Email_Alerting_HIGH_Alert",
        "createdBy":"testuser",
        "name":"ASN_KPI_SLAViolation_Email_Alerting_HIGH_Alert",
        "modifiedBy":"testuser",
        "bIsActive":true,
        "modifiedDate":"2015-05-12T23:55:47.015+0000",
        "description":"HIGH alert for KPI ASN_KPI_SLAViolation_Email_Alerting"
    },
    "links":[
        {
            "rel":"self",
            "href":"http://example.com:7001/OracleBAMREST/bam/api/projects/BAMFramework/alerts/ASN_KPI_SLAViolation_Email_Alerting_HIGH_Alert"
        }
    ]
}