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%2Fmy-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-a303b771-4176-44bd-84f1-7bca57338a09",
                "hrn": "hrn:here:quota::org123456789:CUSTOMER-QUOTA-a303b771-4176-44bd-84f1-7bca57338a09",
                "name": "Example rule",
                "description": "Alert on Log search IO threshold 10Gi.",
                "status": "active",
                "queryConditions": [
                    {
                        "key": "featureId",
                        "value": "hrn:here:portal::org123456789:logs"
                    }
                ],
                "usageThresholdCondition": {
                    "thresholdType": "percentage",
                    "threshold": 70,
                    "usageLimit": 70
                },
                "actions": [
                  "alert"
                ],
                "actionableEntity": {
                    "entityType": "projectHrn",
                    "entityId": "hrn:here:authorization::org123456789:project/my-project-0000"
                },
                "timeRange": {
                  "duration": "monthly"
                },
                "ruleType": "alert",
                "emailNotifications": [
                  "example@here.com",
                  "test@here.com"
                ],
                "created": "2021-07-13T08:56:00",
                "modified": "2021-07-13T08:56:00",
                "createdBy": "dhIQFVejQgPkTXLn8CtH",
                "updatedBy": "dhIQFVejQgPkTXLn8CtH"
            },
            "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 ""