/icws/{sessionId}/messaging/subscriptions/alerts/alert-catalog

PUT

/icws/{sessionId}/messaging/subscriptions/alerts/alert-catalog

Creates or updates watch subscription to the alert catalog.

Due to a known issue, the implementation of the subscriptions for the alert catalog and alert notifications are entwined. A request to start the subscription for the alert catalog will implicitly start a subscription for the alert notifications within that catalog. Inversely, calling DELETE on either subscription will stop the other subscription. It is recommended that conusmers of these APIs create subscriptions to the alert catalog followed by the alert notifications as if they are separate to ensure the correct behavior when the known issue is resolved. API consumers should also stop subscriptions to both but should only do so when neither subscription is needed.

Feature Version
statistics 1

Request

Parameters
Type
Name
Comments
Header
ININ-ICWS-CSRF-Token

Required

The ININ session token necessary for all calls that require a security or user context.

    Header
    Cookie

    Required

    The session cookie. With the exception of the connection request, all requests must provide a session cookie.

      Template
      sessionId

      Required

      The ININ session ID necessary for all calls that require a security or user context.

        Representations
        alertCatalogSubscription
        A subscription to the entire alert catalog or a subset of it.
        Property
        Value
        Comments
        unknown
        0
        The category of the AlertSet is unknown.
        shared
        1
        AlertSet instances that are shared.
        owned
        2
        AlertSet instances that are owned by the current user.
        subscribed
        3
        AlertSet instances that are subscribed to by the current user.
        ownerDefault
        4
        The default AlertSet for the currrent user.
        adminAccess
        5
        Alert set instances that administrators have access to. Must have the Alert Administrator right set in Interaction Administrator.
        all
        6
        All AlertSet instances within the AlertCatalog.

        Response

        200 - OK
        The watch subscription to the alert catalog has been updated.
        Associated Message
        One or more alertSets have been added, removed, or updated.
        alertCatalogChangedMessage
        Members alertSetsAdded, alertSetsRemoved, and alertSetsChanged are all optional, however one is required in order to be a valid message.
        Property
        Value
        Comments
        __type
        "urn:inin.com:alerts:alertCatalogChangedMessage"

        Required

        The JSON type representing this option.
        isDelta
        Boolean

        Required

        When true, this property indicates that some optional properties that have not changed may be omitted (all required properties will be included). In this case, the client side cache should be updated with the values for the properties provided and no change should be made for the properties not included as part of the message. This allows the API to deliver smaller messages that only represent the properties that have changed.

        When this property is false, the client side cache for this subscription should be cleared and replaced with the data provided in the message. For the initial message in response to a subscription, this property will be false to indicate the cache should be initialized with the data provided.

        __type
        "urn:inin.com:alerts:alertSet"

        Required

        The JSON type representing this option.
        none
        0
        Access mode has not been set.
        ownerDefault
        1
        Access to the owner's default alert set.
        owned
        2
        Access as an owned alert set.
        shared
        3
        Other users may access and subscribe to the alert set in a read-only manner.
        subscribed
        4
        Indicates whether the alert set is currently subscribed to.
        description
        String
        The description.
        displayString
        String
        The display string.
        owner
        String

        Required

        Gets the owner of the alert set.
        __type
        "urn:inin.com:alerts:alertDefinition"

        Required

        The JSON type representing this option.
        alertDefinitionId
        String

        The ID for the alert definition. This parameter should be defined for update operations.

        Note

        The alertDefinitionId represents a string formatted GUID. If an alertDefintionId is not provided a GUID ID will be automicatlly generated as the alert definition is updated.

        description
        String
        The description.
        displayString
        String
        The display string.
        isEditable
        Boolean

        Required

        A value indicating whether this instance is editable.
        statisticIdentifier
        String

        Required

        Gets the statistic defintion.
        parameterTypeId
        String

        Required

        This member needs to match the ID of a parameter type exactly.
        value
        String

        Required

        This member either needs to match a parameter value exactly or be set to an empty string to use a default value.
        __type
        "urn:inin.com:alerts:alertRule"

        Required

        The JSON type representing this option.
        alertActionId
        String

        Gets the action ID. This parameter should be defined for update operations.

        Note

        The alertActionId represents a string formatted GUID. If an alertActionId is not provided a GUID ID will be automicatlly generated as the alert action is updated.

        isEditable
        Boolean

        Required

        A value indicating whether this instance is editable.
        targetId
        String

        Required

        The target ID who the alert action is destined for.
        [key]
        String

        Required

        The key identifying this pair.
        [value]
        String

        Required

        The value of this pair.
        alertRuleId
        String

        The ID for the Alert Rule. This parameter should be defined for update operations.

        Note

        The alertRuleId represents a string formatted GUID. If an alertRuleId is not provided a GUID ID will be automicatlly generated as the alert rule is updated.

        none
        0
        Alert severity is not set.
        normal
        1
        The status of the resource is normal.
        minor
        2
        An alert level that indicates a problem of relatively low severity that should not impede use of the resource.
        major
        3
        An alert level that indicates some kind of possibly service-affecting problem with the resource. The severity of the problem is relatively high and normal use of the resource is likely to be impaired.
        warning
        4
        An alert level that indicates a condition exists that could potentially cause a problem with the resource.
        critical
        5
        An alert level that indicates a severe problem exists with the resource and normal use is disrupted or severely impeded. This is the most severe alarm level.
        isEditable
        Boolean

        Required

        A value indicating whether this instance is editable.

        Multiple options:

        The value can be assigned any of the following options.
        __type
        "urn:inin.com:alerts:boolCondition"

        Required

        The JSON type representing this option.
        alertConditionId
        String
        unknown
        0
        Represents the condition has not been specified yet.
        isNotAvailable
        1
        Repesents a condition where IsNull is true (True in Visual Basic), which indicates a null reference (Nothing in Visual Basic), or not set value.
        isAvailable
        2
        Repesents a condition where IsNull is false (False in Visual Basic), which indicates a valid value other than a null reference (Nothing in Visual Basic).
        isTrue
        3
        Represents a condition where the boolean value is expected to be true (True in Visual Basic).
        isFalse
        4
        Represents a condition where the boolean value is expected to be false (False in Visual Basic).
        isLessThan
        5
        Represents a condition where the numeric value is expected to be less than the minimum.
        isGreaterThan
        6
        Represents a condition where the numeric value is expected to be greater than the maximum.
        range
        7
        Represents a condition where the numeric value is between the lower and the upper bound (minimum and maximum).
        equalTo
        8
        Represents a condition where a StatisticValue string value is equal to the comparison value.
        notEqualTo
        9
        Represents a condition where a StatisticValue string value is not equal to the comparison value.
        contains
        10
        Represents a condition where a StatisticValue string value contains the comparison value.
        doesNotContain
        11
        Represents a condition where a StatisticValue string value does not contain the comparison value.
        matchesPrefix
        12
        Represents a condition where a StatisticValue string value matches the prefix.
        __type
        "urn:inin.com:alerts:numericDoubleCondition"

        Required

        The JSON type representing this option.
        alertConditionId
        String
        unknown
        0
        Represents the condition has not been specified yet.
        isNotAvailable
        1
        Repesents a condition where IsNull is true (True in Visual Basic), which indicates a null reference (Nothing in Visual Basic), or not set value.
        isAvailable
        2
        Repesents a condition where IsNull is false (False in Visual Basic), which indicates a valid value other than a null reference (Nothing in Visual Basic).
        isTrue
        3
        Represents a condition where the boolean value is expected to be true (True in Visual Basic).
        isFalse
        4
        Represents a condition where the boolean value is expected to be false (False in Visual Basic).
        isLessThan
        5
        Represents a condition where the numeric value is expected to be less than the minimum.
        isGreaterThan
        6
        Represents a condition where the numeric value is expected to be greater than the maximum.
        range
        7
        Represents a condition where the numeric value is between the lower and the upper bound (minimum and maximum).
        equalTo
        8
        Represents a condition where a StatisticValue string value is equal to the comparison value.
        notEqualTo
        9
        Represents a condition where a StatisticValue string value is not equal to the comparison value.
        contains
        10
        Represents a condition where a StatisticValue string value contains the comparison value.
        doesNotContain
        11
        Represents a condition where a StatisticValue string value does not contain the comparison value.
        matchesPrefix
        12
        Represents a condition where a StatisticValue string value matches the prefix.
        minimum
        Double

        Required

        maximum
        Double

        Required

        __type
        "urn:inin.com:alerts:numericIntCondition"

        Required

        The JSON type representing this option.
        alertConditionId
        String
        unknown
        0
        Represents the condition has not been specified yet.
        isNotAvailable
        1
        Repesents a condition where IsNull is true (True in Visual Basic), which indicates a null reference (Nothing in Visual Basic), or not set value.
        isAvailable
        2
        Repesents a condition where IsNull is false (False in Visual Basic), which indicates a valid value other than a null reference (Nothing in Visual Basic).
        isTrue
        3
        Represents a condition where the boolean value is expected to be true (True in Visual Basic).
        isFalse
        4
        Represents a condition where the boolean value is expected to be false (False in Visual Basic).
        isLessThan
        5
        Represents a condition where the numeric value is expected to be less than the minimum.
        isGreaterThan
        6
        Represents a condition where the numeric value is expected to be greater than the maximum.
        range
        7
        Represents a condition where the numeric value is between the lower and the upper bound (minimum and maximum).
        equalTo
        8
        Represents a condition where a StatisticValue string value is equal to the comparison value.
        notEqualTo
        9
        Represents a condition where a StatisticValue string value is not equal to the comparison value.
        contains
        10
        Represents a condition where a StatisticValue string value contains the comparison value.
        doesNotContain
        11
        Represents a condition where a StatisticValue string value does not contain the comparison value.
        matchesPrefix
        12
        Represents a condition where a StatisticValue string value matches the prefix.
        minimum
        Int

        Required

        maximum
        Int

        Required

        __type
        "urn:inin.com:alerts:numericTimeSpanCondition"

        Required

        The JSON type representing this option.
        alertConditionId
        String
        unknown
        0
        Represents the condition has not been specified yet.
        isNotAvailable
        1
        Repesents a condition where IsNull is true (True in Visual Basic), which indicates a null reference (Nothing in Visual Basic), or not set value.
        isAvailable
        2
        Repesents a condition where IsNull is false (False in Visual Basic), which indicates a valid value other than a null reference (Nothing in Visual Basic).
        isTrue
        3
        Represents a condition where the boolean value is expected to be true (True in Visual Basic).
        isFalse
        4
        Represents a condition where the boolean value is expected to be false (False in Visual Basic).
        isLessThan
        5
        Represents a condition where the numeric value is expected to be less than the minimum.
        isGreaterThan
        6
        Represents a condition where the numeric value is expected to be greater than the maximum.
        range
        7
        Represents a condition where the numeric value is between the lower and the upper bound (minimum and maximum).
        equalTo
        8
        Represents a condition where a StatisticValue string value is equal to the comparison value.
        notEqualTo
        9
        Represents a condition where a StatisticValue string value is not equal to the comparison value.
        contains
        10
        Represents a condition where a StatisticValue string value contains the comparison value.
        doesNotContain
        11
        Represents a condition where a StatisticValue string value does not contain the comparison value.
        matchesPrefix
        12
        Represents a condition where a StatisticValue string value matches the prefix.
        minimum
        Duration

        Required

        maximum
        Duration

        Required

        __type
        "urn:inin.com:alerts:numericTimeStampCondition"

        Required

        The JSON type representing this option.
        alertConditionId
        String
        unknown
        0
        Represents the condition has not been specified yet.
        isNotAvailable
        1
        Repesents a condition where IsNull is true (True in Visual Basic), which indicates a null reference (Nothing in Visual Basic), or not set value.
        isAvailable
        2
        Repesents a condition where IsNull is false (False in Visual Basic), which indicates a valid value other than a null reference (Nothing in Visual Basic).
        isTrue
        3
        Represents a condition where the boolean value is expected to be true (True in Visual Basic).
        isFalse
        4
        Represents a condition where the boolean value is expected to be false (False in Visual Basic).
        isLessThan
        5
        Represents a condition where the numeric value is expected to be less than the minimum.
        isGreaterThan
        6
        Represents a condition where the numeric value is expected to be greater than the maximum.
        range
        7
        Represents a condition where the numeric value is between the lower and the upper bound (minimum and maximum).
        equalTo
        8
        Represents a condition where a StatisticValue string value is equal to the comparison value.
        notEqualTo
        9
        Represents a condition where a StatisticValue string value is not equal to the comparison value.
        contains
        10
        Represents a condition where a StatisticValue string value contains the comparison value.
        doesNotContain
        11
        Represents a condition where a StatisticValue string value does not contain the comparison value.
        matchesPrefix
        12
        Represents a condition where a StatisticValue string value matches the prefix.
        minimum
        DateTime

        Required

        maximum
        DateTime

        Required

        __type
        "urn:inin.com:alerts:stringCondition"

        Required

        The JSON type representing this option.
        alertConditionId
        String
        unknown
        0
        Represents the condition has not been specified yet.
        isNotAvailable
        1
        Repesents a condition where IsNull is true (True in Visual Basic), which indicates a null reference (Nothing in Visual Basic), or not set value.
        isAvailable
        2
        Repesents a condition where IsNull is false (False in Visual Basic), which indicates a valid value other than a null reference (Nothing in Visual Basic).
        isTrue
        3
        Represents a condition where the boolean value is expected to be true (True in Visual Basic).
        isFalse
        4
        Represents a condition where the boolean value is expected to be false (False in Visual Basic).
        isLessThan
        5
        Represents a condition where the numeric value is expected to be less than the minimum.
        isGreaterThan
        6
        Represents a condition where the numeric value is expected to be greater than the maximum.
        range
        7
        Represents a condition where the numeric value is between the lower and the upper bound (minimum and maximum).
        equalTo
        8
        Represents a condition where a StatisticValue string value is equal to the comparison value.
        notEqualTo
        9
        Represents a condition where a StatisticValue string value is not equal to the comparison value.
        contains
        10
        Represents a condition where a StatisticValue string value contains the comparison value.
        doesNotContain
        11
        Represents a condition where a StatisticValue string value does not contain the comparison value.
        matchesPrefix
        12
        Represents a condition where a StatisticValue string value matches the prefix.
        text
        String

        Required

        alertSetId
        String

        Required

        The ID of the alert set.

        Note

        The alertSetId represents a string formatted GUID. Any attempt to provide a string that does not represent a GUID will cause a 400 status code to be returned.

        created
        DateTime

        Required

        Date and time the alert set was created.
        ownerDisplayName
        String

        Required

        Gets the display name of the owner of the alert set.
        modified
        DateTime

        Required

        Date and time the alert set was modified.
        modifiedBy
        String

        Required

        The name of the user who last modified the alert set.
        subscribedByOther
        Boolean
        A value indicating whether the AlertSet is subscribed to by users other than the current user.
        subscribedByOwner
        Boolean
        Indicates whether or not this AlertSet is subscribed to by the owner.
        subscribedByUser
        Boolean
        A value indicating whether the AlertSet is subscribed to by the current user.
        alertSetsRemoved
        List [1,*]: String
        400 - Bad Request
        The request was invalid. This can occur when the message body is malformed or missing required items. This will also occur if a required header or query string parameter is missing or invalid.
        error
        Provides additional detail for an error.
        Property
        Value
        Comments
        errorId
        String
        The error identifier that describes the current error.
        message
        String

        Required

        A message that describes the current error.
        401 - Unauthorized
        The specified session token is missing, invalid, or has expired.
        Parameters
        Type
        Name
        Comments
        Header
        WWW-Authenticate

        Required

        Indicates that the client needs to authenticate using a custom ICWS scheme, which supports a realm of type ICWS and a location which is the URL at which the client can authenticate. A typical example would be the following.

        WWW-Authenticate: ICWS realm="ICWS" location="/ICWS/connection"

          error
          Provides additional detail for an error.
          Property
          Value
          Comments
          errorId
          String
          The error identifier that describes the current error.
          message
          String

          Required

          A message that describes the current error.
          410 - Gone
          This resource has been deprecated and removed from the API.
          error
          Provides additional detail for an error.
          Property
          Value
          Comments
          errorId
          String
          The error identifier that describes the current error.
          message
          String

          Required

          A message that describes the current error.
          500 - Internal Server Error
          An unexpected error occurred while processing the request.
          error
          Provides additional detail for an error.
          Property
          Value
          Comments
          errorId
          String
          The error identifier that describes the current error.
          message
          String

          Required

          A message that describes the current error.

          DELETE

          /icws/{sessionId}/messaging/subscriptions/alerts/alert-catalog

          Removes watch subscription to the alert catalog.

          Due to a known issue, the implementation of the subscriptions for the alert catalog and alert notifications are entwined. A request to start the subscription for the alert catalog will implicitly start a subscription for the alert notifications within that catalog. Inversely, calling DELETE on either subscription will stop the other subscription. It is recommended that conusmers of these APIs create subscriptions to the alert catalog followed by the alert notifications as if they are separate to ensure the correct behavior when the known issue is resolved. API consumers should also stop subscriptions to both but should only do so when neither subscription is needed.

          Feature Version
          statistics 1

          Request

          Parameters
          Type
          Name
          Comments
          Header
          ININ-ICWS-CSRF-Token

          Required

          The ININ session token necessary for all calls that require a security or user context.

            Header
            Cookie

            Required

            The session cookie. With the exception of the connection request, all requests must provide a session cookie.

              Template
              sessionId

              Required

              The ININ session ID necessary for all calls that require a security or user context.

                Response

                204 - No Content
                The watch subscription to the alert catalog has been removed.
                400 - Bad Request
                The request was invalid. This can occur when the message body is malformed or missing required items. This will also occur if a required header or query string parameter is missing or invalid.
                error
                Provides additional detail for an error.
                Property
                Value
                Comments
                errorId
                String
                The error identifier that describes the current error.
                message
                String

                Required

                A message that describes the current error.
                401 - Unauthorized
                The specified session token is missing, invalid, or has expired.
                Parameters
                Type
                Name
                Comments
                Header
                WWW-Authenticate

                Required

                Indicates that the client needs to authenticate using a custom ICWS scheme, which supports a realm of type ICWS and a location which is the URL at which the client can authenticate. A typical example would be the following.

                WWW-Authenticate: ICWS realm="ICWS" location="/ICWS/connection"

                  error
                  Provides additional detail for an error.
                  Property
                  Value
                  Comments
                  errorId
                  String
                  The error identifier that describes the current error.
                  message
                  String

                  Required

                  A message that describes the current error.
                  410 - Gone
                  This resource has been deprecated and removed from the API.
                  error
                  Provides additional detail for an error.
                  Property
                  Value
                  Comments
                  errorId
                  String
                  The error identifier that describes the current error.
                  message
                  String

                  Required

                  A message that describes the current error.
                  500 - Internal Server Error
                  An unexpected error occurred while processing the request.
                  error
                  Provides additional detail for an error.
                  Property
                  Value
                  Comments
                  errorId
                  String
                  The error identifier that describes the current error.
                  message
                  String

                  Required

                  A message that describes the current error.