Log search IO alert rule

Log search IO refers to logs which report the data transfer incurred when pipeline-generated log information is written and indexed for debugging purposes. The response shows the alerts which are currently active.

The following pertains to Log Search IO services:

  • Reported per unit in GB per hour and billed per month.
  • Monthly prices represent usage over 720 hours.
  • Calculation construct:
    • Total number of bytes written to the index.
  • Costs are not incurred through API requests, but through optional developer code within a pipeline JAR file which writes to “std-out".

Request

       POST https://quota.bam.api.here.com/v1/organizations/org123456789/rules
   {
     "name": "Example rule",
     "description": "Alert on Log search IO threshold 10Gi.",
     "queryConditions": [
       {
         "key": "featureId",
         "value": "hrn:here:portal::org123456789:logs"
       }
     ],
     "usageThresholdCondition": {
       "thresholdType": "percentage",
       "threshold": 70,
       "usageLimit": 70
     },
     "actionableEntity": {
       "entityId": "hrn:here:authorization::org123456789:project/my-project-0000",
       "entityType": "projectHrn"
     },
     "actions": [
       "alert"
     ],
     "timeRange": {
       "duration": "monthly"
     },
     "emailNotifications": [
       "example@here.com",
       "test@here.com"
     ]
   }

Response: HTTP 201 Created

   {
       "ruleId": "CUSTOMER-QUOTA-db8ac3fb-f560-482c-a1e5-1626d503e4cd",
       "hrn": "hrn:here:quota::org123456789:CUSTOMER-QUOTA-db8ac3fb-f560-482c-a1e5-1626d503e4cd",
       "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-09-03T07:08:23Z",
       "modified": "2021-09-03T07:08:23Z",
       "createdBy": "dhIQFVejQgPkTXLn8CtH",
       "updatedBy": "dhIQFVejQgPkTXLn8CtH"
   }

results matching ""

    No results matching ""