public class ResourceStats extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DELETE_BAD_REQUEST
Number of delete requests that failed with code 400 Bad Request.
|
static String |
DELETE_CONFLICT
Number of delete requests that failed with code 409 Conflict.
|
static String |
DELETE_FORBIDDEN
Number of delete requests that failed with code 403 Forbidden.
|
static String |
DELETE_INTERNAL_SERVER_ERROR
Number of delete requests that failed with code 500 Internal Server Error.
|
static String |
DELETE_NOT_FOUND
Number of delete requests that failed with code 404 Not Found.
|
static String |
DELETE_NOT_IMPLEMENTED
Number of delete requests that failed with code 505 Not Implemented.
|
static String |
DELETE_OK
Number of delete requests that were successful.
|
static String |
DELETE_PRECONDITION_FAILED
Number of delete requests that failed with code 412 Precondition Failed.
|
static String |
DELETE_UNAUTHORIZED
Number of delete requests that failed with code 401 Unauthorized.
|
static String |
GET_BAD_REQUEST
Number of get requests that failed with code 400 Bad Request.
|
static String |
GET_FORBIDDEN
Number of get requests that failed with code 403 Forbidden.
|
static String |
GET_INTERNAL_SERVER_ERROR
Number of get requests that failed with code 500 Internal Server Error.
|
static String |
GET_NOT_FOUND
Number of get requests that failed with code 404 Not Found.
|
static String |
GET_NOT_IMPLEMENTED
Number of get requests that failed with code 505 Not Implemented.
|
static String |
GET_NOT_MODIFIED
Number of versioned get requests that were not modified.
|
static String |
GET_OK
Number of get requests that were successful.
|
static String |
GET_RESPONSE_JSON
Number of get requests that responded in JSON format.
|
static String |
GET_RESPONSE_XML
Number of get requests that responded in XML format.
|
static String |
GET_UNAUTHORIZED |
static String |
PATCH_BAD_REQUEST
Number of patch requests that failed with code 400 Bad Request.
|
static String |
PATCH_CONFLICT
Number of patch requests that failed with code 409 Conflict.
|
static String |
PATCH_CONTENT_JSON
Number of patch requests with content in JSON format.
|
static String |
PATCH_CONTENT_XML
Number of patch requests with content in XML format.
|
static String |
PATCH_FORBIDDEN
Number of patch requests that failed with code 403 Forbidden.
|
static String |
PATCH_INTERNAL_SERVER_ERROR
Number of patch requests that failed with code 500 Internal Server Error.
|
static String |
PATCH_NOT_FOUND
Number of patch requests that failed with code 404 Not Found.
|
static String |
PATCH_NOT_IMPLEMENTED
Number of patch requests that failed with code 505 Not Implemented.
|
static String |
PATCH_OK
Number of patch requests that were successful.
|
static String |
PATCH_PRECONDITION_FAILED
Number of patch requests that failed with code 412 Precondition Failed.
|
static String |
PATCH_RESPONSE_JSON
Number of patch requests that responded in JSON format.
|
static String |
PATCH_RESPONSE_XML
Number of patch requests that responded in XML format.
|
static String |
PATCH_UNAUTHORIZED
Number of patch requests that failed with code 401 Unauthorized.
|
static String |
POST_BAD_REQUEST
Number of post requests that failed with code 400 Bad Request.
|
static String |
POST_CONFLICT
Number of post requests that failed with code 409 Conflict.
|
static String |
POST_CONTENT_JSON
Number of post requests with content in JSON format.
|
static String |
POST_CONTENT_XML
Number of post requests with content in XML format.
|
static String |
POST_FORBIDDEN
Number of post requests that failed with code 403 Forbidden.
|
static String |
POST_INTERNAL_SERVER_ERROR
Number of post requests that failed with code 500 Internal Server Error.
|
static String |
POST_NOT_IMPLEMENTED
Number of post requests that failed with code 505 Not Implemented.
|
static String |
POST_OK
Number of post requests that were successful.
|
static String |
POST_REQUEST_ENTITY_TOO_LARGE
Number of post requests that failed with code 413 Entity Too Large.
|
static String |
POST_RESPONSE_JSON
Number of post requests that responded in JSON format.
|
static String |
POST_RESPONSE_XML
Number of post requests that responded in XML format.
|
static String |
POST_UNAUTHORIZED
Number of post requests that failed with code 401 Unauthorized.
|
static String |
PUT_BAD_REQUEST
Number of put requests that failed with code 400 Bad Request.
|
static String |
PUT_CONFLICT
Number of put requests that failed with code 409 Conflict.
|
static String |
PUT_CONTENT_JSON
Number of put requests with content in JSON format.
|
static String |
PUT_CONTENT_XML
Number of put requests with content in XML format.
|
static String |
PUT_FORBIDDEN
Number of put requests that failed with code 403 Forbidden.
|
static String |
PUT_INTERNAL_SERVER_ERROR
Number of put requests that failed with code 500 Internal Server Error.
|
static String |
PUT_NOT_FOUND
Number of put requests that failed with code 404 Not Found.
|
static String |
PUT_NOT_IMPLEMENTED
Number of put requests that failed with code 505 Not Implemented.
|
static String |
PUT_OK
Number of put requests that were successful.
|
static String |
PUT_PRECONDITION_FAILED
Number of put requests that failed with code 412 Precondition Failed.
|
static String |
PUT_RESPONSE_JSON
Number of put requests that responded in JSON format.
|
static String |
PUT_RESPONSE_XML
Number of put requests that responded in XML format.
|
static String |
PUT_UNAUTHORIZED
Number of put requests that failed with code 401 Unauthorized.
|
static String |
QUERY_BAD_REQUEST
Number of query requests that failed with code 400 Bad Request.
|
static String |
QUERY_FORBIDDEN
Number of query requests that failed with code 403 Forbidden.
|
static String |
QUERY_INTERNAL_SERVER_ERROR
Number of query requests that failed with code 500 Internal Server Error.
|
static String |
QUERY_NOT_FOUND
Number of query requests that failed with code 404 Not Found.
|
static String |
QUERY_NOT_IMPLEMENTED
Number of query requests that failed with code 505 Not Implemented.
|
static String |
QUERY_OK
Number of query requests that were successful.
|
static String |
QUERY_RESPONSE_JSON
Number of query requests that responded in JSON format.
|
static String |
QUERY_RESPONSE_XML
Number of query requests that responded in XML format.
|
static String |
QUERY_UNAUTHORIZED
Number of query requests that failed with code 401 Unauthorized.
|
| Constructor and Description |
|---|
ResourceStats(String name)
Create a new ResourceStats instance with the provided name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Retrieves the name of this ResourceStats instance, usually the name of
the SCIM resource being served.
|
long |
getStat(String stat)
Retrieves a single statistical value.
|
Map<String,Long> |
getStats()
Retrieves all statistical values that are present.
|
public static final String QUERY_OK
public static final String QUERY_BAD_REQUEST
public static final String QUERY_UNAUTHORIZED
public static final String QUERY_FORBIDDEN
public static final String QUERY_NOT_FOUND
public static final String QUERY_INTERNAL_SERVER_ERROR
public static final String QUERY_NOT_IMPLEMENTED
public static final String QUERY_RESPONSE_XML
public static final String QUERY_RESPONSE_JSON
public static final String GET_OK
public static final String GET_NOT_MODIFIED
public static final String GET_BAD_REQUEST
public static final String GET_UNAUTHORIZED
public static final String GET_FORBIDDEN
public static final String GET_NOT_FOUND
public static final String GET_INTERNAL_SERVER_ERROR
public static final String GET_NOT_IMPLEMENTED
public static final String GET_RESPONSE_XML
public static final String GET_RESPONSE_JSON
public static final String PUT_OK
public static final String PUT_BAD_REQUEST
public static final String PUT_UNAUTHORIZED
public static final String PUT_FORBIDDEN
public static final String PUT_NOT_FOUND
public static final String PUT_CONFLICT
public static final String PUT_PRECONDITION_FAILED
public static final String PUT_INTERNAL_SERVER_ERROR
public static final String PUT_NOT_IMPLEMENTED
public static final String PUT_RESPONSE_XML
public static final String PUT_RESPONSE_JSON
public static final String PUT_CONTENT_XML
public static final String PUT_CONTENT_JSON
public static final String POST_OK
public static final String POST_BAD_REQUEST
public static final String POST_UNAUTHORIZED
public static final String POST_FORBIDDEN
public static final String POST_CONFLICT
public static final String POST_REQUEST_ENTITY_TOO_LARGE
public static final String POST_INTERNAL_SERVER_ERROR
public static final String POST_NOT_IMPLEMENTED
public static final String POST_RESPONSE_XML
public static final String POST_RESPONSE_JSON
public static final String POST_CONTENT_XML
public static final String POST_CONTENT_JSON
public static final String PATCH_OK
public static final String PATCH_BAD_REQUEST
public static final String PATCH_UNAUTHORIZED
public static final String PATCH_FORBIDDEN
public static final String PATCH_NOT_FOUND
public static final String PATCH_CONFLICT
public static final String PATCH_PRECONDITION_FAILED
public static final String PATCH_INTERNAL_SERVER_ERROR
public static final String PATCH_NOT_IMPLEMENTED
public static final String PATCH_RESPONSE_XML
public static final String PATCH_RESPONSE_JSON
public static final String PATCH_CONTENT_XML
public static final String PATCH_CONTENT_JSON
public static final String DELETE_OK
public static final String DELETE_BAD_REQUEST
public static final String DELETE_UNAUTHORIZED
public static final String DELETE_FORBIDDEN
public static final String DELETE_NOT_FOUND
public static final String DELETE_CONFLICT
public static final String DELETE_PRECONDITION_FAILED
public static final String DELETE_INTERNAL_SERVER_ERROR
public static final String DELETE_NOT_IMPLEMENTED
public ResourceStats(String name)
name - The name of this ResourceStats instance, usually it should
be the name of the SCIM resource being served.public long getStat(String stat)
stat - The name of the statistical value to retrieve.public Map<String,Long> getStats()
Copyright © 2011–2016 UnboundID. All rights reserved.