Configure MPS
Use the REST API endpoint below to configure the messages per second.
URL Syntax
For a GET:
/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/MPSConfig
                  For a POST:
/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/MPSConfigHTTP Methods
- GET
 - POST
 
Parameters
Table 17-15 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-46 Get the MPS details
curl -u 'weblogic:<password>' \
    "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/MPSConfig"Example response:
{
    "links": [
        {
            "rel": "parent",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource"
        },
        {
            "rel": "self",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/MPSConfig"
        },
        {
            "rel": "canonical",
            "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/sipserver/customResource/MPSConfig"
        }
    ],
    "identity": [
        "customResources",
        "sipserver",
        "customResource",
        "MPSConfig"
    ],
    "alertThreshold": 10,
    "licensedPeakMPS": 100,
    "name": null,
    "breachInfo":"Threshold limit crossed during period Mon Jan 09 22:15:00 IST 2023  and  Mon Jan 09 22:20:00 IST 2023",
    "historicMPSPersistenceInterval": 12
}Example 17-47 Create a custom resource
Send a POST request to create a custom MPSConfig.
curl -X POST \
    -u 'weblogic:<password>' \
    -d@config.json \
    -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/MPSConfig"
                  The contents of config.json:
{
    licensedPeakMPS: 1000,
    historicMPSPersistenceInterval: 1,
    alertThreshold: 75
}