Skip to main content
Forecast Policy Usage
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/5/dataplans/policies/v1/all/forecast-usage \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "day": {},
  "logRules": {
    "severities": [],
    "dpxlExpression": "<string>"
  },
  "applicationRule": {
    "name": "<string>"
  },
  "subsystemRule": {
    "name": "<string>"
  }
}
'
{
  "estimatedBytes": 13251739648
}

Documentation Index

Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Request to forecast the usage in bytes of a draft TCO policy, based on the bytes matched by its filter rules over a given time window.

day
Day · object
required

Marker selecting a one-day forecast window.

logRules
Log Rules · object
required

Log rules for a policy.

applicationRule
object

Rule.

subsystemRule
object

Rule.

Response

Forecasted usage in bytes for a draft TCO policy, based on bytes matched over a given time window.

estimatedBytes
integer<int64>
required

Estimated number of bytes the draft policy would match over the requested time window.

Required range: 1 <= x <= 9007199254740991
Example:

13251739648