1.8.4 Creating a user profile
This section describes the format of the request to be used for creating a user profile and the method for creating a request body.
Procedure
-
Determine the type (such as Virtual machine and Volume) for the resource that you want to create.
-
Acquire a user profile that has the same type as the one that you want to create, so that the acquired user profile can be used as a template. Issue a request in the following format:
GET http://host:port/Analytics/version/objects/UserThresholdProfiles
-
Edit the user profile (UserThresholdProfiles resource, UserThresholdValue resource) that you acquired in step 2 according to the table below:
Table 1‒5: Changes to the UserThresholdProfiles resource Member to change
Whether the change is required
Description
name
Required
Change the name to the user profile that you want to create.
You must specify a name that does not exist in the user profile or in the system profile that is already registered.
description
Optional
Enter the description of the user profile that you want to create.
profileType
Required
Specify User.
thresholdValues
Optional
Change the threshold value or the monitoring status. Note that when creating a user profile, you must not delete any values that were acquired, because setting of all UserThresholdValue is required even if no changes are made. For the locations to be changed, see the table below.
Table 1‒6: Changes to the UserThresholdValue resource Member to change
Whether the change is required
Description
monitoring
Required
Specify whether to monitor.
thresholdValueOfWarning
Optional
Specify the threshold value for a warning. You must specify a value equal to or less than the maximum member, and a value equal to or greater than the minimum member. In addition, the value must be a multiple of the stepSize member. If you specify a value that does not meet the above conditions, the value will be adjusted automatically.
thresholdValueOfError
Optional
Specify the threshold value for an error. You must specify a value equal to or less than the maximum member, and a value equal to or greater than the minimum member. In addition, the value must be a multiple of the stepSize member. If you specify a value that does not meet the above conditions, the value will be adjusted automatically.
-
Issue a request in the following format. In the request body, specify the collector that you edited in step 3.
POST http://host:port/Analytics/version/objects/UserThresholdProfiles