Get multiple quota violations for your organization

You can retrieve multiple quota violations for your organization, as shown here.

Requests

    Basic request with minimal necessary parameters

GET https://quota.bam.api.here.com/v1/realm/org123456789/violations?startDate= 2021-
02-01T05:10:23&endDate=2021-02-01T11:47:03
Requesting different page & limit
GET https://quota.bam.api.here.com/v1/realm/org123456789/violations?startDate= 2021-
02-01T05:10:23&endDate=2021-02-01T11:47:03&limit=30
GET https://quota.bam.api.here.com/v1/realm/org123456789/violations?startDate= 2021-
02-01T05:10:23&endDate=2021-02-01T11:47:03&offset=10
GET https://quota.bam.api.here.com/v1/realm/org123456789/violations?startDate= 2021-
02-01T05:10:23&endDate=2021-02-01T11:47:03&limit=30&offset=10
Filter by appId
GET https://quota.bam.api.here.com/v1/realm/org123456789/violations?startDate= 2021-
02-01T05:10:23&endDate=2021-02-01T11:47:03&appId=app1
Filter by projectHrn
GET https://quota.bam.api.here.com/v1/realm/org123456789/violations?startDate= 2021-
02-01T05:10:23&endDate=2021-02-
01T11:47:03&projectHrn=hrn%3Ahere%3Aauthorization%3A%3Aorg123456789%3Aproject%2
Fmy-project-0000

Response: HTTP 200 OK

{
    "total": 1,
    "limit": 100,
    "items": [
    {
    "violationId": "QUOTA-VIOLATION-1152a465-7b67-33ac-883f-23310891a102",
    "violationDateTime": "2021-07-16T08:56:00",
    "startTime": "2021-07-13T08:56:00",
    "endTime": "2021-08-31T08:00:00",
    "usageDateTime": "2021-07-15T15:56:00",
    "actualUsage": 80,
    "threshold": 70,
    "ruleId": "CUSTOMER-QUOTA-a303b771-4176-44bd-84f1-7bca57338a09",
    "rule": {
    "ruleId": "CUSTOMER-QUOTA-9d9e247a-4c06-483c-9514-77c20ebf4beb",
    "hrn": "hrn:here-dev:quota::org123456789:CUSTOMER-QUOTA-9d9e247a-4c06-483c-9514-77c20ebf4beb",
    "name": "suspend rule for autosuggest",
    "description": "rule description",
    "status": "active",
    "queryConditions": [
        {
         "key": "featureId",
         "value": "hrn:here:service::olp-here:routing-8:base"
        }
    ],
    "usageThresholdCondition": {
        "thresholdType": "percentage",
        "threshold": 100,
        "usageLimit": 500
    },
    "actions": [
        "alert",
        "suspend"
    ],
    "timeRange": {
        "duration": "monthly"
    },
    "ruleType": "alert",
    "quotaReferenceId": "QUOTA-dd2fe6a9-075f-4be4-9721-e58de19b2ee7",
    "quotaRuleReferenceId": "QUOTA-RULE-f73559dd-2aee-4f09-b129-5c0d2472324a",
    "created": "2021-09-22T16:48:41",
    "modified": "2021-09-22T16:52:05",
    "createdBy": "system",
    "updatedBy": "system"
}
        "created": "2021-07-16T08:56:00",
        "modified": "2021-07-16T08:56:00",
        "createdBy": "dhIQFVejQgPkTXLn8CtH",
        "updatedBy": "dhIQFVejQgPkTXLn8CtH"
        }
    ],
    "nextOffset": 1,
    "lastOffset": 0
}

results matching ""

    No results matching ""