Configure Thresholds

Use this REST API endpoint to get the licensed Peak MPS or the Peak Stream Alert Threshold limits.

URL Syntax

/management/weblogic/latest/serverConfig/customResources/IntelligentMediaConnector/customResource/mediaThresholdConfig

HTTP Methods

  • GET
  • POST

Parameters

Table 17-26 URL Parameters

Names Description
links Set to none if you want to remove the links from the response. Set to an enumerated list of the links to return. For example:
.../?links=none

Examples

Example 17-78 Get the threshold limits

curl -u 'weblogic:<password>' \
    "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/IntelligentMediaConnector/customResource/mediaThresholdConfig?links=none"

Example response:

{
  "identity": [
    "customResources",
    "IntelligentMediaConnector",
    "customResource",
    "mediaThresholdConfig"
  ],
  "licensedPeakMPS": 400,
  "peakStreamAlertThreshold": 20
}

Example 17-79 Set a threshold limit

curl -X POST \
    -u 'weblogic:<password>' \
    -H 'X-Requested-By:MyClient' \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    -d '{
  "licensedPeakMPS": 400,
  "peakStreamAlertThreshold": 20
}' \
    "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/IntelligentMediaConnector/customResource/mediaThresholdConfig"