Configure Overload Protection Thresholds
Use the REST API endpoint below to configure the overload protection
        thresholds. A GET request to the CreateForm URL retrieves both the default parameters and
        the create URL. Send a POST request to the create URL to
        create the child MBean.
               
URL Syntax
For the GET:
/management/weblogic/latest/edit/customResources/sipserver/customResource/overloadProtection/thresholds/thresholdCreateForm
                  For the POST or DELETE:
/management/weblogic/latest/edit/customResources/sipserver/customResource/overloadProtection/thresholds/thresholdsHTTP Methods
- GET
 - POST
 - DELETE
 
Parameters
Table 17-6 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: | 
                           
| fields | Set to an enumerated list of the fields to return.
                                For
                                example: | 
                           
Examples
Example 17-19 Get the Overload Protection Threshold CreateForm
The example below returns the required parameters to create the overload protection threshold without any of the links.
curl -u 'weblogic:<password>' \
    "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/overloadProtection/thresholds/thresholdCreateForm?links=none"Example response:
{
    "samplingInterval": 0,
    "upActions": null,
    "samplingNumber": 0,
    "samplingMode": null,
    "algorithmParameter": 0,
    "thresholdValue": 0,
    "downActions": null,
    "algorithmName": null,
    "thresholdName": null,
    "enabled": false,
    "collector": null,
    "name": null
}Example 17-20 Create an Overload Protection Threshold
curl -X POST \
  -d@config.json \
  -u weblogic:<password> \
  -H "X-Requested-By: MyClient" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  'http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/overloadProtection/thresholds/thresholds'
                  The contents of config.json:
                  
{   
  "samplingInterval": 0,
  "upActions": "reject",
  "samplingNumber": 0,
  "samplingMode": "real-time",
  "name": "up",
  "algorithmParameter": 0,
  "thresholdValue": 200000.0,
  "downActions": "reject",
  "algorithmName": "value",
  "thresholdName": "up",
  "enabled": false,
  "collector": "queue-length"
}
                  Example 17-21 View the Updated Overload Protection Thresholds
First, make a GET request to the thresholds/thresholds
                URL to retrieve links at which you can view threshold information.
                  
curl -u 'weblogic:<password>' \
  "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/overloadProtection/thresholds/thresholds"
                  Next, make a GET request to the links returned under the
                    items parameter:
                  
curl -u 'weblogic:<password>' \
    "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/overloadProtection/thresholds/thresholds/up"
                  An example response:
{
    "links": [
        {
            "rel": "parent",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/overloadProtection/thresholds/thresholds"
        },
        {
            "rel": "self",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/overloadProtection/thresholds/thresholds/up"
        },
        {
            "rel": "canonical",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/overloadProtection/thresholds/thresholds/up"
        }
    ],
    "identity": [
        "customResources",
        "sipserver",
        "customResource",
        "overloadProtection",
        "thresholds",
        "thresholds",
        "up"
    ],
    "samplingInterval": 0,
    "upActions": "reject",
    "samplingNumber": 0,
    "samplingMode": "real-time",
    "name": "up",
    "algorithmParameter": 0,
    "thresholdValue": 200000,
    "downActions": "reject",
    "algorithmName": "value",
    "thresholdName": "up",
    "enabled": false,
    "collector": "queue-length"
}