Retrieve an Alert

get

/OracleBAMREST/api/projects/{projectname}/alerts/{alertname}

Retrieves the Alert details based on alert name.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body
Example Response (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 24 60 ) having (sum(case when ( (((cast(deliveredtimestamp as date) - cast(receivedtimestamp date)) * 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            /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/api/projects/BAMFramework/alerts/ASN_KPI_SLAViolation_Email_Alerting_HIGH_Alert"
        }
    ]
}
Back to Top