이 콘텐츠는 선택한 언어로 제공되지 않습니다.

1.2. http://localhost:7080/rest/alert : Deal with Alerts


This api deals with alerts that have fired.

Defining class: org.rhq.enterprise.server.rest.AlertHandlerBean

Produces: application/json, application/xml, text/html, application/vnd.rhq.wrapped+json

Methods

  • GET /alert

    Description

    List all alerts, possibly limiting by resource or alert definition, priority and start time

    Supports returning a gzip'ed Content-Encoding

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    page Query Page number false int all 0
    size Query Page size; use -1 for 'unlimited' false int all 100
    prio Query Limit to priority false String High, Medium, Low, All All
    slim Query Should full resources and definitions be sent false boolean all false
    since Query If non-null only send alerts that have fired after this time, time is millisecond since epoch false Long all
    resourceId Query Id of a resource to limit search for false Integer all
    definitionId Query If of an alert definition to search for false Integer all
    unacknowledgedOnly Query Should only unacknowledged alerts be sent false boolean all false

    Return type: List<AlertRest> (multi)

    ExpandError codes:
    CodeReason
    406 There are 'resourceId' and 'definitionId' passed as query parameters
    406 Page size was 0
    406 Page number was < 0
  • GET /alert/count

    Description

    Return a count of alerts in the system depending on criteria
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    since Query If non-null only send alerts that have fired after this time, time is millisecond since epoch false Long all

    Return type: IntegerValue

  • GET /alert/{id}

    Description

    Get one alert with the passed id
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the alert to retrieve true int all
    slim Query Should full resources and definitions be sent false boolean all false

    Return type: AlertRest

  • GET /alert/{id}/conditions

    Description

    Return the condition logs for the given alert
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the alert to retrieve true int all

    Return type: javax.ws.rs.core.Response

  • GET /alert/{id}/notifications

    Description

    Return the notification logs for the given alert
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the alert to retrieve true int all

    Return type: javax.ws.rs.core.Response

  • PUT /alert/{id}

    Description

    Mark the alert as acknowledged (by the caller)

    Notes

    Returns a slim version of the alert

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the alert to acknowledge true int all

    Return type: AlertRest

  • DELETE /alert/{id}

    Description

    Remove the alert from the list of alerts

    Notes

    This operation is by default idempotent, returning 204.If you want to check if the alert existed at all, you need to pass the 'validate' query parameter.

    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the alert to remove true int all
    validate Query Validate if the alert exists false boolean all false

    Return type: javax.ws.rs.core.Response

    ExpandError codes:
    CodeReason
    204 Alert was deleted or did not exist with validation not set
    404 Alert did not exist and validate was set
  • GET /alert/{id}/definition

    Description

    Get the alert definition (basics) for the alert
    ExpandParameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path Id of the alert to show the definition true int all

    Return type: AlertDefinitionRest

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat