Location service Autosuggest API alert

The Location service Autosuggest API alert refers to an alert incurred by the API, which reports when the Autosuggest API reaches the defined threshold condition defined for the rule.

The following pertains to Location Autosuggest services.

Request

The following request and request body create a Location Autosuggest API alert.

POST https://quota.bam.api.here.com/v1/organizations/org123456789/rules

Request body

  {
    "name": "Location Service Autosuggest API alert",
    "description": "Alert when the Autosuggest API usage is 50% above 20,000 requests in a month",
    "queryConditions": [
        {
            "key": "featureId",
            "value": "hrn:here:service::olp-here:search-autosuggest-7"
        }
    ],
    "usageThresholdCondition": {
    "thresholdType": "percentage",
    "threshold": 50,
    "usageLimit": 20000
    },
    "actions": [
        "alert"
    ],
    "timeRange": {
        "duration": "monthly"
    },
    "status": "active",
    "emailNotifications": [
        "example@here.com",
        "test@here.com"
    ]
}

Response: HTTP 201 Created

The response shows the alerts which are currently active.

{
    "ruleId": "CUSTOMER-QUOTA-1152a465-7b67-44ac-882f-2331089cf2c4",
    "hrn": "hrn:here:quota::olp-here:CUSTOMER-QUOTA-dec030a3-738a-4925-99d6-0aec809d5f26",
    "name": "string",
    "description": "string",
    "status": "active",
    "queryConditions": [
        {
            "key": "featureId",
            "value": "hrn:here:data:test123"
        }
    ],
    "usageThresholdCondition": {
        "thresholdType": "percentage",
        "threshold": 50,
        "usageLimit": 500
    },
    "actions": [
        "alert"
    ],
    "actionableEntity": {
        "entityType": "appId",
        "entityId": "app1"
    },
    "timeRange": {
        "duration": "monthly"
    },
    "subscriptionId": "8c2daw342341234124",
    "ruleType": "quota",
    "productId": "9vewqw323423",
    "quotaReferenceId": "QUOTA-<UUID>",
    "quotaRuleReferenceId": "QUOTA-RULE-<UUID>",
    "emailNotifications": [
        "string"
    ],
    "created": "2021-02-04T07:45:25+00:00",
    "modified": "2021-02-04T07:49:03+00:00",
    "createdBy": "<user-id>",
    "updatedBy": "<user-id>"
}

results matching ""

    No results matching ""