--- title: Service Test Management Open API description: The Service Test Management Open API provides endpoints to create and retrieve service test definitions and service tests.Retrieves a list of all service tests.Retrieves a service test entity based on the given ID of a service test.Retrieves a list of all service test definitions.Retrieves a service test definition entity.Updates a service test entity.Allows partial updates of a service test definition entity.Creates a service test.Creates a new service test definition. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/service-test-management-api.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 91 keywords: [Service Test Management Open API, Customer Service Problem Management] breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Service Test Management Open API The Service Test Management Open API provides endpoints to create and retrieve service test definitions and service tests. Use this API to manage service problem management information between external systems and the ServiceNow AI Platform. The Service Test Management Open API is a ServiceNow implementation of the TM Forum Service Problem Management API REST specification. This implementation is based on the [TMF653 Service Test Management API User Guide v4.1.0](https://www.tmforum.org/resources/specification/tmf653-service-test-management-api-user-guide-v4-1-0/), July 2021. This REST API is designed to manage and execute service tests within a telecommunications environment. It allows users to define, trigger, and monitor service tests, ensuring that services meet quality and performance standards. The API provides capabilities for test management, including creating and updating test definitions, executing tests, retrieving test results, and managing test schedules. The Service Test Management Open API requires the Customer Service Problem Management \(com.sn\_sprb\_mgmt\) application, which is available on the ServiceNow Store. For more information, see [Customer Service Problem Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/cspm-landing-page.md). This API runs in the `sn_sprb_mgmt` namespace. The calling user must have the sn\_sprb\_mgmt.test\_integrator role. The Service Test Management Open API creates or updates data in the following tables: - Test Run \[sn\_st\_mgmt\_test\] - Service Test definition \[sn\_st\_mgmt\_test\_definition\] - Test Definition Characteristic \[sn\_st\_mgmt\_test\_definition\_characteristic\] - Test Characteristic \[sn\_st\_mgmt\_test\_characteristic\] - Specification to Test Definition Relationship \[sn\_st\_mgmt\_test\_definition\_m2m\] - Test Definition Relationship \[sn\_st\_mgmt\_test\_definition\_rel\] - Test Measure \[sn\_st\_mgmt\_test\_measure\] - Measure Consequence \[sn\_st\_mgmt\_measure\_consequence\] - Test Measure Definition \[sn\_st\_mgmt\_test\_measure\_definition\] - Applied Consequence \[sn\_st\_mgmt\_applied\_consequence\] - Threshold Rule \[sn\_st\_mgmt\_threshold\_rule\] - Threshold Rule Violation \[sn\_st\_mgmt\_threshold\_rule\_violation\] **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## Service Test Management Open API – GET /sn\_sprb\_mgmt/servicetestmanagement/serviceTest Retrieves a list of all service tests. ### URL format Default URL: `/api/sn_sprb_mgmt/servicetestmanagement/serviceTest` ### Supported request parameters |Name|Description| |----|-----------| |None| |
| Name | Description |
|---|---|
| fields | List of fields to return in the response. Invalid fields are ignored. If this parameter isn't used, all fields are returned. Located in the Service Test \[sn\_st\_mgmt\_test\] table.Valid fields: - characteristic - description - endDateTime - id - mode - relatedService - startDateTime - state - testMeasure - testSpecification - validFor Data type: String |
| limit | Maximum number of records to return. For requests that exceed this number of records, use the **offset** parameter to paginate record retrieval.Data type: Number Maximum value: 100 Default: 20 |
| offset | Starting index at which to begin retrieving records. Use this parameter to paginate results in small and manageable chunks. The first record is indexed at 0.Data type: Number Default: 0 |
| state | Filter test definitions by the test's current state. Only test definitions in the specified state are returned in the response.Valid values: - acknowledged - canceled - completed - failed - inProgress - pending - rejected Data type: String |
| Header | Description |
|---|---|
| Content-Range | Specifies the range of content returned in a paginated call.For example, if `offset=2` and `limit=3`, the value of the Content-Range header is items `3-5`. |
| Content-Type | Data format of the response body. Only supports application/json. |
| Link | Contains the following links to navigate through query results.- first - last - next - previous |
| X-Total-Count | For paginated queries, this header specifies the total number of records available on the server. |
| Name | Description |
|---|---|
| characteristic | List that describes the characteristics of the associated service test. For more information about test definition characteristics, see Data type: Array of Objects ``` "characteristic": [ { "id": "String", "name": "String", "value": "String", "valueType": "String" } ] ``` |
| characteristic.id | Sys\_id or external\_id of characteristics. If external\_id is present for that record, the response returns the external\_id otherwise it returns the sys\_id.Data type: String Table: Characteristics \[sn\_prd\_pm\_characteristic\] |
| characteristic.name | Name of the characteristic.Data type: String |
| characteristic.value | Characteristic options associated with the service test. Characteristics vary based on the customer instance.Data type: String |
| characteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| description | Description of the service test.Data type: String |
| endDateTime | End date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| href | Hyperlink reference to the service test.Data type: String |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| mode | Mode that the service test is running in.Valid values: - ONDEMAND: Triggers the service test manually. - PROACTIVE: Triggers the service test automatically. Data type: String Default: ONDEMAND |
| name | Required. Name of the service test.Data type: String |
| relatedService | Required. Test definition associated with the service test.Data type: Object ``` "relatedService": { "href": "String", "id": "String", "name": "String" } ``` |
| relatedService.id | Sys\_id or external\_id of the product inventory.Data type: String Table: In the sys\_id or external\_id field of the product Inventory \[sn\_prd\_invt\_product\_inventory\] table. |
| relatedService.name | Name of the product inventory.Data type: String |
| startDateTime | Start date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| state | State the service test is in. Valid values: - acknowledged - canceled - completed - failed - inProgress - pending - rejected Data type: String |
| testMeasure | Measure of a specific aspect of a product, service, or resource test, such as lost packets or connectivity status.Data type: Array of Objects ``` "testMeasure": [ { "accuracy": "String", "captureDateTime": "String", "captureMethod": "String", "id": "String", "metricDescription": "String", "metricName": "String", "ruleViolation": [Array], "unitOfMeasure": "String", "value": {Object} } ] ``` |
| testMeasure.accuracy | Float decimal value representing the test measure accuracy captured for the associated metrics.Data type: Number Maximum value: 40 |
| testMeasure.captureDateTime | The date and time that the metric was captured. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasure.id | Sys\_id or external\_id of the Test Measures.Data type: String Table: In the sys\_id or external\_id fields of the Test Measures table \[sn\_st\_mgmt\_test\_measure\] table. |
| testMeasure.Measure.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Don't capture the metric. Data type: String |
| testMeasure.metricDescription | Brief description of the metric.Data type: String |
| testMeasure.metricName | Name of the test measure metric.Data type: String |
| testMeasure.ruleViolation | An object for defining a rule in the threshold rule definition, along with consequences if the rule is violated.Data type: Array of Objects ``` "ruleViolation"[ { appliedConsequence: [Array], conformanceTargetUpper: Number, conformanceComparatorUpper: "String", description: "String", id: "String", name: "String", numberOfAllowedCrossing: Number, thresholdRuleSeverity: "String", tolerancePeriod: "String" } ] ``` |
| testMeasure.ruleViolation.tolerancePeriod.amount | Number of periods before applying the consequence.Data type: Number |
| testMeasure.ruleViolation.appliedConsequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed.Data type: Array of Objects ``` "appliedConsequence": [ { "appliedAction": "String", "description": "String", "id": "String", "name": "String", "repeatAction": Boolean } ] ``` |
| testMeasure.ruleViolation.appliedConsequence.appliedAction | Action to take when a threshold rule is violated. For example, sending a warning or generating a report. Applied actions can vary between instances.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.description | Description of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.id | Sys\_id or external\_id of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.name | Name of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.repeatAction | Flag that indicates whether to repeat the consequence when a second violation occurs.Valid values: - true: Repeat the action. - false: Don't repeat the action. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComporatorExact | Flag that indicates whether a value is identical.Valid values: - true: The value is identical. - false: The value isn't identical. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComporatorLower | Operator for checking if a value falls below the threshold.Valid values: - greater than - greater than or is Data type: String |
| testMeasure.ruleViolation.conformanceComporatorUpper | Operator for checking if a value is above the threshold.Valid values: - less than - less than or is Data type: String |
| testMeasure.ruleViolation.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetLower | Lower threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetUpper | Upper threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.description | Description of the threshold rule.Data type: String |
| testMeasure.ruleViolation.id | Sys\_id or external\_id of the threshold rule violation.Data type: String Table: Threshold Rule Violation \[sn\_st\_mgmt\_threshold\_rule\_violation\] |
| testMeasure.ruleViolation.name | Name of the threshold rule.Data type: String |
| testMeasure.ruleViolation.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasure.ruleViolation.thresholdRuleSeverity | Severity of the threshold rule.Valid values: - high - medium - low Data type: String |
| testMeasure.ruleViolation.tolerancePeriod | Specified time interval during which crossing occurrences are enabled without triggering any immediate consequences or actions.Date type: Object ``` "tolerancePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasure.ruleViolation.tolerancePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasure.unitOfMeasure | Unit of measurement for the conformance target values of the test measure.Data type: String |
| testMeasure.value | Value of the test measure.Data type: Object ``` "value": { "id": "String", "name": "String", "valueType": "String", "value": "String } ``` |
| testMeasure.value.id | ID of the test measure value.Data type: String |
| testMeasure.value.name | Name of the test measure value.Data type: String |
| testMeasure.value.value | Value of the test measure.Data type: String |
| testMeasure.value.valueType | Type of test measure value such as numeric, text, and so forth.Data type: String |
| testSpecification | Required. Test definition associated with this test. Data type: Object ``` "testSpecification": { "href": "String", "id": "String" } ``` |
| testSpecification.href | Hyperlink reference to the service test definition.Data type: String |
| testSpecification.id | Sys\_id or external\_id of the service test definition.Data type: String Table: In the sys\_id or external\_id field of the Service Test Definition \[sn\_st\_mgmt\_test\_definition\] table. |
| validFor | Date range the service test is valid for.Data type: Object ``` "validFor": { "endDateTime ": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | Validity end date of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Validity start date of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Name | Description |
|---|---|
| id | Sys\_id or external\_id of the service test to retrieve.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| Name | Description |
|---|---|
| fields | List of fields to return in the response. Invalid fields are ignored. If this parameter isn't used, all fields are returned. Located in the Service Test \[sn\_st\_mgmt\_test\] table.Valid fields: - characteristic - description - endDateTime - id - mode - relatedService - startDateTime - state - testMeasure - testSpecification - validFor Data type: String |
| Name | Description |
|---|---|
| characteristic | List that describes the characteristics of the associated service test.Data type: Array of Objects ``` "characteristic": [ { "id": "String", "name": "String", "value": "String", "valueType": "String" } ] ``` |
| characteristic.id | Sys\_id or external\_id of characteristics.If external\_id is present for that record, the response returns the external\_id otherwise it returns the sys\_id.Data type: String Table: Characteristics \[sn\_prd\_pm\_characteristic\] |
| characteristic.name | Name of the characteristic.Data type: String |
| characteristic.value | Characteristic options associated with the service test. Characteristics vary based on the customer instance.Data type: String |
| characteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| description | Description of the service test.Data type: String |
| endDateTime | End date and time of the service test.Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| href | Hyperlink reference to the service test.Data type: String |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| mode | Mode that the service test is running in.Valid values: - ONDEMAND: Triggers the service test manually. - PROACTIVE: Triggers the service test automatically. Data type: String Default: ONDEMAND |
| name | Name of the service test.Data type: String |
| relatedService | Test definition associated with this test.Data type: Object ``` "relatedService": { "href": "String", "id": "String", "name": "String" } ``` |
| relatedService.id | Sys\_id or external\_id of the product inventory.Data type: String Table: In the sys\_id or external\_id field of the Product Inventory \[sn\_prd\_invt\_product\_inventory\] table. |
| relatedService.name | Name of the product inventory item.Data type: String |
| startDateTime | Start date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| state | State of the service test.Valid values: - acknowledged - canceled - completed - failed - inProgress - pending - rejected Data type: String |
| testMeasure | Measure of a specific aspect of a product, service, or resource test, such as lost packets or connectivity status.Data type: Array of Objects ``` "testMeasureDefinition": [ { "accuracy": "String", "captureDateTime": "String", "captureMethod": "String", "id": "String", "metricDescription": "String", "metricName": "String", "ruleViolation": [Array] "unitOfMeasure": "String", "value": {Object} } ] ``` |
| testMeasure.accuracy | Float decimal value representing the test measure accuracy captured for the associated metrics.Data type: Number Maximum value: 40 |
| testMeasure.captureDateTime | The date and time that the metric was captured.Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasure.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Don't capture the metric. Data type: String |
| testMeasure.id | Sys\_id or external\_id of the test measure.Data type: String Table: Test Measures \[sn\_st\_mgmt\_test\_measure\] |
| testMeasure.metricDescription | Brief description of the metric.Data type: String |
| testMeasure.metricName | Name of a metric in the test measure.Data type: String |
| testMeasure.ruleViolation | Object for defining a rule in the threshold rule definition, along with consequences if the rule is violated.Data type: Array of Objects ``` "RuleViolation": [ { "appliedConsequence": [Array], "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": {Object} } ] ``` |
| testMeasure.ruleViolation.appliedConsequence | Action \(prescribed action or notification\) to take when a threshold rule is violated.Data type: Array of Objects ``` "appliedConsequence": [ { "appliedAction": "String", "description": "String", "id": "String", "name": "String", "repeatAction": Boolean } ] ``` |
| testMeasure.ruleViolation.appliedConsequence.appliedAction | Action to take when a threshold rule is violated. For example, sending a warning or generating a report. Applied actions can vary between instances.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.appliedAction.repeatAction | Flag that indicates whether to repeat the applied action or not.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasure.ruleViolation.appliedConsequence.description | Description of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.id | Sys\_id or external\_id of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.name | Name of the applied consequence.Data type: String |
| testMeasure.ruleViolation.conformanceComparatorExact | Flag that indicates whether a value is identical to the value of **conformanceTargetExact**.Valid values: - true: The value is identical. - false: The value isn't identical. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComparatorLower | An operator that checks if a value falls below the threshold. Valid values: - greater than - is Data type: String |
| testMeasure.ruleViolation.conformanceComparatorUpper | An operator that checks if a value exceeds the threshold.Valid values: - is - lesser than Data type: String |
| testMeasure.ruleViolation.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetLower | Lower threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetUpper | Upper threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.description | Description of the threshold rule violation.Data type: String |
| testMeasure.ruleViolation.id | Sys\_id or external\_id of the threshold rule violation.Data type: String Table: Threshold Rule Violation \[sn\_st\_mgmt\_threshold\_rule\_violation\] |
| testMeasure.ruleViolation.name | Name of the threshold rule violation.Date type: String |
| testMeasure.ruleViolation.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum: 40 |
| testMeasure.ruleViolation.thresholdRuleSeverity | Severity of the threshold rule.Valid values: - high - low - medium Data type: String |
| testMeasure.ruleViolation.tolerancePeriod | Duration or time interval in which allowed crossings can occur before a consequence is initiated.Date type: Object ``` "tolerancePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasure.ruleViolation.tolerancePeriod.amount | Amount of the period in number.Data type: Number |
| testMeasure.ruleViolation.tolerancePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasure.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasure.value | Value of metric in the test.Data type: Object ``` "value": { "id": "String", "name": "String", "valueType": "String", "value": "String" } ``` |
| testMeasure.value.id | ID of the metric value in the test.Data type: String |
| testMeasure.value.name | Name of the metric value in the test.Data type: String |
| testMeasure.value.value | Value of metric in the test.Data type: String |
| testMeasure.value.valueType | Type of test measure value such as numeric, text, and so forth.Data type: String |
| testSpecification | Test definition associated for this test. Data type: Object ``` "testSpecification": { "href": "String", "id": "String" } ``` |
| testSpecification.href | Hyperlink reference to the service test definition.Data type: String |
| testSpecification.id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| validFor | Date range that the service test is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | End date and timestamp of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Start date and timestamp of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Name | Description |
|---|---|
| fields | List of fields to return in the response. Invalid fields are ignored. If this parameter isn't used, all fields are returned. Located in the Service Test Definition \[sn\_st\_mgmt\_test\_definition\] table.Valid values: - description - id - name - relatedServiceSpecification - serviceTestSpecRelationship - specCharacteristic - testMeasureDefinition - validFor Data type: String |
| limit | Maximum number of records to return. For requests that exceed this number of records, use the **offset** parameter to paginate record retrieval.Data type: Number Maximum value: 100 Default: 20 |
| offset | Starting index at which to begin retrieving records. Use this parameter to paginate results in small and manageable chunks. The first record is indexed at 0.Data type: Number Default: 0 |
| state | Filter test definitions by the test's current state. Only test definitions in the specified state are returned in the response.Valid values: - archived - draft - published - retired Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Header | Description |
|---|---|
| Content-Range | Specifies the range of content returned in a paginated call. For example, if `offset=2` and `limit=3`, the value of the Content-Range header is items `3-5`. |
| Content-Type | Data format of the response body. Only supports application/json. |
| Link | Contains the following links to navigate through query results:- first - last - next - previous |
| X-Total-Count | For paginated queries, this header specifies the total number of records available on the server. |
| Name | Description |
|---|---|
| description | Description of the service test definition.Data type: String |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| name | Required. Name of the service test definition.Data type: String |
| relatedServiceSpecification | Required. Service specifications of the test definition.Data type: Array of Objects ``` "relatedServiceSpecification": [ { "id": "String", "name": "String" } ] ``` |
| relatedServiceSpecification.id | Sys\_id or external\_id of the service specification.Data type: String Table: In the sys\_id or external\_id field of the Specification \[sn\_prd\_pm\_specification\] table. |
| relatedServiceSpecification.name | Name of the service specification.Data type: String |
| serviceTestSpecRelationship | Related service test definition.Data type: Array of Objects ``` "serviceTestSpecRelationship": [ { "id": "String", "name": "String", "relationshipType": "String" } ] ``` |
| serviceTestSpecRelationship.id | Sys\_id or external\_id of the related service test definition.Data type: String Table: Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| serviceTestSpecRelationship.name | Name of the related test definition.Data type: String |
| serviceTestSpecRelationship.relationshipType | Type of relationship.Accepted values: - dependency - exclusivity - substitution Data type: String |
| specCharacteristic | Characteristics of the test definition.Data type: Array of Objects ``` "specCharacteristic": [ { "characteristicValueSpecification": [Array], "description": "String", "name": "String", "validFor": {Object}, "valueType": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification | Possible values of the characteristic.Data type: Array of Objects ``` "characteristicValueSpecification": [ { "value": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification.value | Value of the characteristic.Data type: String |
| specCharacteristic.description | Description of the characteristic.Data type: String |
| specCharacteristic.name | Name of the characteristic.Data type: String |
| specCharacteristic.validFor | Date range that the characteristic is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| specCharacteristic.validFor.endDateTime | End date of the characteristic. Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. Data type: String |
| specCharacteristic.validFor.startDateTime | Start date of the characteristic. Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. Data type: String |
| specCharacteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| testMeasureDefinition | Test measure definitions for this service test definition. For more information, see [Define test measure definitions for a service test](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-test-measure-spm.md).Data type: Array of objects ``` "testMeasureDefinition": [ { "captureFrequency": "String", "captureMethod": "String", "capturePeriod": {Object}, "id": "String", "metricDescription": "String", "metricName": "String", "name": "String", "unitOfMeasure": "String", "thresholdRule": [Array], "validFor": {Object}, "valueType": "String" } ] ``` |
| testMeasureDefinition.captureFrequency | The frequency at which to capture the metric. Valid values: - daily - monthly - none - once - weekly Data type: String |
| testMeasureDefinition.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Doesn't capture the metric. Data type: String |
| testMeasureDefinition.capturePeriod | Period or duration of the metric capture.Data type: Object ``` "capturePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasureDefinition.capturePeriod.amount | Number of capture periods.Data type: Number |
| testMeasureDefinition.capturePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasureDefinition.id | Sys\_id or external\_id of the test measure definitions.Data type: String Table: Test Measure definition table \[sn\_st\_mgmt\_test\_measure\_definition\] |
| testMeasureDefinition.metricDescription | Brief description of the metric.Data type: String |
| testMeasureDefinition.metricName | User-defined name of a metric in the test measure.Data type: String |
| testMeasureDefinition.name | Name of the test measure definition.Data type: String |
| testMeasureDefinition.thresholdRule | Rule that defines conditions to achieve before applying consequences when a threshold is crossed \(or not crossed\) in the test measure definition. For more information, [Define threshold rules for a test measure definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-threshold-rules.md).Data type: Array of Objects ``` { "thresholdRule": { "consequence": [Array], "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "consequence": [Array], "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": {Object} } } ``` |
| testMeasureDefinition.thresholdRule.conformanceComparatorExact | Flag that indicates whether a value is identical to the value set for **testMeasureDefinition.thresholdRule.conformanceTargetExact**. If set to true, **testMeasureDefinition.thresholdRule.conformanceTargetExact** is required.Valid values: - true: The value is identical to the value of **conformanceTargetExact**. - false: The value isn't identical **conformanceTargetExact**. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.conformanceComparatorLower | Operator that checks if a value falls below the threshold. Valid values: - greater than - greater than or is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceComparatorUpper | Operator that checks if a value exceeds the threshold.Valid values: - less than - less than or is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetLower | Lower threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetUpper | Upper threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.consequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed. See [Define threshold rules for a test measure definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-threshold-rules.md) for more information.Data type: Array of objects ``` "consequence": [ { "description": "String", "id": "String", "name": "String", "prescribeAction": "String", "repeatAction": Boolean, "validFor": { "endDateTime": "String", "startDateTime": "String" } ] ``` |
| testMeasureDefinition.thresholdRule.consequence.description | Description of the consequence. Data type: String |
| testMeasureDefinition.thresholdRule.consequence.id | Sys\_id or external\_id of the measure consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.name | Name of the consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.prescribeAction | User-defined action to take for threshold violations. Actions vary between instances.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.repeatAction | Flag that indicates whether to repeat the applied consequence.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.consequence.validFor | Date range that the consequence is valid for.Data type: Object ``` "validFor": { "startDateTime": "String", "endDateTime ": "String" } ``` |
| testMeasureDefinition.thresholdRule.consequence.validFor.endDateTime | Validity end date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.consequence.validFor.startDateTime | Validity start date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.description | Description of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.id | Sys\_id or external\_id of the threshold rules.Data type: String Table: In the sys\_id or external\_id field of the Threshold Rules \[sn\_st\_mgmt\_threshold\_rule\] table. |
| testMeasureDefinition.thresholdRule.name | Name of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasureDefinition.thresholdRule.thresholdRuleSeverity | Severity level of the threshold rule.Valid values: - high - medium - low Data type: String |
| testMeasureDefinition.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasureDefinition.validFor | Date range that the test measure definition is valid for.Data type: String ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| testMeasureDefinition.validFor.endDateTime | Validity end date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.validFor.startDateTime | Validity start date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor | Date range that the test definition is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | Date and time of the test definition on which the state of it is retired. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Date and time of the test definition on which the state of it is published. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Name | Description |
|---|---|
| id | Sys\_id or external\_id of the service test definition to retrieve.Data type: String Table: Service Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| Name | Description |
|---|---|
| fields | List of fields to return in the response. Invalid fields are ignored. If this parameter isn't used, all fields are returned. Located in the Service Test Definition \[sn\_st\_mgmt\_test\_definition\] table.Valid values: - description - id - name - relatedServiceSpecification - serviceTestSpecRelationship - specCharacteristic - testMeasureDefinition - validFor Data type: String |
| state | Filter test definitions by the test's current state. Only test definitions in the specified state are returned in the response.Valid values: - archived - draft - published - retired Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| description | Description of the service test definition.Data type: String |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| name | Required. Name of the service test definition.Data type: String |
| relatedServiceSpecification | Required. Service specifications of the test definition.Data type: Array of Objects ``` "relatedServiceSpecification": [ { "id": "String", "name": "String" } ] ``` |
| relatedServiceSpecification.id | Sys\_id or external\_id of the service specification.Data type: String Table: In the sys\_id or external\_id field of the Specification \[sn\_prd\_pm\_specification\] table. |
| relatedServiceSpecification.name | Name of the service specification.Data type: String |
| serviceTestSpecRelationship | Related service test definition.Data type: Array of Objects ``` "serviceTestSpecRelationship": [ { "id": "String", "name": "String", "relationshipType": "String" } ] ``` |
| serviceTestSpecRelationship.id | Sys\_id or external\_id of the related service test definition.Data type: String Table: Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| serviceTestSpecRelationship.name | Name of the related test definition.Data type: String |
| serviceTestSpecRelationship.relationshipType | Type of relationship.Accepted values: - dependency - exclusivity - substitution Data type: String |
| specCharacteristic | Characteristics of the test definition.Data type: Array of Objects ``` "specCharacteristic": [ { "characteristicValueSpecification": [Array], "description": "String", "name": "String", "validFor": {Object}, "valueType": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification | Possible values of the characteristic.Data type: Array of Objects ``` "characteristicValueSpecification": [ { "value": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification.value | Value of the characteristic.Data type: String |
| specCharacteristic.description | Description of the characteristic.Data type: String |
| specCharacteristic.name | Name of the characteristic.Data type: String |
| specCharacteristic.validFor | Date range that the characteristic is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| specCharacteristic.validFor.endDateTime | End date of the characteristic. Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. Data type: String |
| specCharacteristic.validFor.startDateTime | Start date of the characteristic. Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. Data type: String |
| specCharacteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| testMeasureDefinition | Test measure definitions for this service test definition. For more information, see [Define test measure definitions for a service test](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-test-measure-spm.md).Data type: Array of objects ``` "testMeasureDefinition": [ { "captureFrequency": "String", "captureMethod": "String", "capturePeriod": {Object}, "id": "String", "metricDescription": "String", "metricName": "String", "name": "String", "unitOfMeasure": "String", "thresholdRule": [Array], "validFor": {Object}, "valueType": "String" } ] ``` |
| testMeasureDefinition.captureFrequency | The frequency at which to capture the metric. Valid values: - daily - monthly - none - once - weekly Data type: String |
| testMeasureDefinition.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Doesn't capture the metric. Data type: String |
| testMeasureDefinition.capturePeriod | Period or duration of the metric capture.Data type: Object ``` "capturePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasureDefinition.capturePeriod.amount | Number of capture periods.Data type: Number |
| testMeasureDefinition.capturePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasureDefinition.id | Sys\_id or external\_id of the test measure definitions.Data type: String Table: Test Measure definition table \[sn\_st\_mgmt\_test\_measure\_definition\] |
| testMeasureDefinition.metricDescription | Brief description of the metric.Data type: String |
| testMeasureDefinition.metricName | User-defined name of a metric in the test measure.Data type: String |
| testMeasureDefinition.name | Name of the test measure definition.Data type: String |
| testMeasureDefinition.thresholdRule | Rule that defines conditions to achieve before applying consequences when a threshold is crossed \(or not crossed\) in the test measure definition. For more information, [Define threshold rules for a test measure definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-threshold-rules.md).Data type: Array of Objects ``` { "thresholdRule": { "consequence": [Array], "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "consequence": [Array], "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": {Object} } } ``` |
| testMeasureDefinition.thresholdRule.conformanceComparatorExact | Flag that indicates whether a value is identical to the value set for **testMeasureDefinition.thresholdRule.conformanceTargetExact**. If set to true, **testMeasureDefinition.thresholdRule.conformanceTargetExact** is required.Valid values: - true: The value is identical to the value of **conformanceTargetExact**. - false: The value isn't identical **conformanceTargetExact**. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.conformanceComparatorLower | Operator that checks if a value falls below the threshold. Valid values: - greater than - greater than or is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceComparatorUpper | Operator that checks if a value exceeds the threshold.Valid values: - less than - less than or is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetLower | Lower threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetUpper | Upper threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.consequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed. See [Define threshold rules for a test measure definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-threshold-rules.md) for more information.Data type: Array of objects ``` "consequence": [ { "description": "String", "id": "String", "name": "String", "prescribeAction": "String", "repeatAction": Boolean, "validFor": { "endDateTime": "String", "startDateTime": "String" } ] ``` |
| testMeasureDefinition.thresholdRule.consequence.description | Description of the consequence. Data type: String |
| testMeasureDefinition.thresholdRule.consequence.id | Sys\_id or external\_id of the measure consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.name | Name of the consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.prescribeAction | User-defined action to take for threshold violations. Actions vary between instances.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.repeatAction | Flag that indicates whether to repeat the applied consequence.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.consequence.validFor | Date range that the consequence is valid for.Data type: Object ``` "validFor": { "startDateTime": "String", "endDateTime ": "String" } ``` |
| testMeasureDefinition.thresholdRule.consequence.validFor.endDateTime | Validity end date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.consequence.validFor.startDateTime | Validity start date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.description | Description of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.id | Sys\_id or external\_id of the threshold rules.Data type: String Table: In the sys\_id or external\_id field of the Threshold Rules \[sn\_st\_mgmt\_threshold\_rule\] table. |
| testMeasureDefinition.thresholdRule.name | Name of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasureDefinition.thresholdRule.thresholdRuleSeverity | Severity level of the threshold rule.Valid values: - high - medium - low Data type: String |
| testMeasureDefinition.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasureDefinition.validFor | Date range that the test measure definition is valid for.Data type: String ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| testMeasureDefinition.validFor.endDateTime | Validity end date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.validFor.startDateTime | Validity start date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor | Date range that the test definition is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | Date and time of the test definition on which the state of it is retired. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Date and time of the test definition on which the state of it is published. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Name | Description |
|---|---|
| id | Sys\_id or external\_id of the service test to retrieve.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| Name | Description |
|---|---|
| characteristic | List that describes the characteristics of the associated service test. For more information about test definition characteristics, see Data type: Array of Objects ``` "characteristic": [ { "id": "String", "name": "String", "value": "String", "valueType": "String" } ] ``` |
| characteristic.id | Sys\_id or external\_id of characteristics. If external\_id is present for that record, the response returns the external\_id otherwise it returns the sys\_id.Data type: String Table: Characteristics \[sn\_prd\_pm\_characteristic\] |
| characteristic.name | Name of the characteristic.Data type: String |
| characteristic.value | Characteristic options associated with the service test. Characteristics vary based on the customer instance.Data type: String |
| characteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| description | Description of the service test.Data type: String |
| endDateTime | End date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| mode | Mode that the service test is running in.Valid values: - ONDEMAND: Triggers the service test manually. - PROACTIVE: Triggers the service test automatically. Data type: String Default: ONDEMAND |
| name | Required. Name of the service test.Data type: String |
| relatedService | Required. Test definition associated with the service test.Data type: Object ``` "relatedService": { "href": "String", "id": "String", "name": "String" } ``` |
| relatedService.href | Hyperlink reference to the related service.Data type: String |
| relatedService.id | Sys\_id or external\_id of the product inventory.Data type: String Table: In the sys\_id or external\_id field of the product Inventory \[sn\_prd\_invt\_product\_inventory\] table. |
| startDateTime | Start date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| state | State the service test is in. Valid values: - acknowledged - canceled - completed - failed - inProgress - pending - rejected Data type: String |
| testMeasure | Measure of a specific aspect of a product, service, or resource test, such as lost packets or connectivity status.Data type: Array of Objects ``` "testMeasure": [ { "accuracy": "String", "captureDateTime": "String", "captureMethod": "String", "id": "String", "metricDescription": "String", "metricName": "String", "ruleViolation": [Array], "unitOfMeasure": "String", "value": {Object} } ] ``` |
| testMeasure.accuracy | Float decimal value representing the test measure accuracy captured for the associated metrics.Data type: Number Maximum value: 40 |
| testMeasure.captureDateTime | The date and time that the metric was captured. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasure.id | Sys\_id or external\_id of the Test Measures.Data type: String Table: In the sys\_id or external\_id fields of the Test Measures table \[sn\_st\_mgmt\_test\_measure\] table. |
| testMeasure.Measure.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Don't capture the metric. Data type: String |
| testMeasure.metricDescription | Brief description of the metric.Data type: String |
| testMeasure.metricName | Name of the test measure metric.Data type: String |
| testMeasure.ruleViolation | An object for defining a rule in the threshold rule definition, along with consequences if the rule is violated.Data type: Array of Objects ``` "ruleViolation"[ { appliedConsequence: [Array], conformanceTargetUpper: Number, conformanceComparatorUpper: "String", description: "String", id: "String", name: "String", numberOfAllowedCrossing: Number, thresholdRuleSeverity: "String", tolerancePeriod: "String" } ] ``` |
| testMeasure.ruleViolation.tolerancePeriod.amount | Number of periods before applying the consequence.Data type: Number |
| testMeasure.ruleViolation.appliedConsequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed.Data type: Array of Objects ``` "appliedConsequence": [ { "appliedAction": "String", "description": "String", "id": "String", "name": "String", "repeatAction": Boolean } ] ``` |
| testMeasure.ruleViolation.appliedConsequence.appliedAction | Action to take when a threshold rule is violated. For example, sending a warning or generating a report. Applied actions can vary between instances.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.description | Description of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.id | Sys\_id or external\_id of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.name | Name of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.repeatAction | Flag that indicates whether to repeat the consequence when a second violation occurs.Valid values: - true: Repeat the action. - false: Don't repeat the action. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComporatorExact | Flag that indicates whether a value is identical.Valid values: - true: The value is identical. - false: The value isn't identical. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComporatorLower | Operator for checking if a value falls below the threshold.Valid values: - greater than - greater than or is Data type: String |
| testMeasure.ruleViolation.conformanceComporatorUpper | Operator for checking if a value is above the threshold.Valid values: - less than - less than or is Data type: String |
| testMeasure.ruleViolation.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetLower | Lower threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetUpper | Upper threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.description | Description of the threshold rule.Data type: String |
| testMeasure.ruleViolation.id | Sys\_id or external\_id of the threshold rule violation.Data type: String Table: Threshold Rule Violation \[sn\_st\_mgmt\_threshold\_rule\_violation\] |
| testMeasure.ruleViolation.name | Name of the threshold rule.Data type: String |
| testMeasure.ruleViolation.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasure.ruleViolation.thresholdRuleSeverity | Severity of the threshold rule.Valid values: - high - medium - low Data type: String |
| testMeasure.ruleViolation.tolerancePeriod | Specified time interval during which crossing occurrences are enabled without triggering any immediate consequences or actions.Date type: Object ``` "tolerancePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasure.ruleViolation.tolerancePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasure.unitOfMeasure | Unit of measurement for the conformance target values of the test measure.Data type: String |
| testMeasure.value | Value of the test measure.Data type: Object ``` "value": { "id": "String", "name": "String", "valueType": "String", "value": "String } ``` |
| testMeasure.value.id | ID of the test measure value.Data type: String |
| testMeasure.value.name | Name of the test measure value.Data type: String |
| testMeasure.value.value | Value of the test measure.Data type: String |
| testMeasure.value.valueType | Type of test measure value such as numeric, text, and so forth.Data type: String |
| testSpecification | Required. Test definition associated with this test. Data type: Object ``` "testSpecification": { "href": "String", "id": "String" } ``` |
| testSpecification.href | Hyperlink reference to the service test definition.Data type: String |
| testSpecification.id | Sys\_id or external\_id of the service test definition.Data type: String Table: In the sys\_id or external\_id field of the Service Test Definition \[sn\_st\_mgmt\_test\_definition\] table. |
| validFor | Date range the service test is valid for.Data type: Object ``` "validFor": { "endDateTime ": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | Validity end date of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Validity start date of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| characteristic | List that describes the characteristics of the associated service test.Data type: Array of Objects ``` "characteristic": [ { "id": "String", "name": "String", "value": "String", "valueType": "String" } ] ``` |
| characteristic.id | Sys\_id or external\_id of characteristics. If external\_id is present for that record, the response returns the external\_id otherwise it returns the sys\_id.Data type: String Table: Characteristics \[sn\_prd\_pm\_characteristic\] |
| characteristic.name | Name of the characteristic.Data type: String |
| characteristic.value | Characteristic options associated with the service test. Characteristics vary based on the customer instance.Data type: String |
| characteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| description | Description of the service test.Data type: String |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| name | Name of the service test.Data type: String |
| relatedService | Test definition associated for this test.Data type: Object ``` "relatedService": { "href": "string", "id": "String", "name": "String" } ``` |
| relatedService.id | Sys\_id or external\_id of the product inventory.Data type: String Table: Product Inventory \[sn\_prd\_invt\_product\_inventory\] |
| relatedService.name | Name of the product inventory.Data type: String |
| testMeasure | Measure of a specific aspect of a product, service, or resource test, such as lost packets or connectivity status.Data type: Array of Objects ``` "testMeasureDefinition": [ { "accuracy": "String", "captureDateTime": "String", "captureMethod": "String", "id": "String", "metricDescription": "String", "metricName": "String", "ruleViolation": [Array] "unitOfMeasure": "String", "value": {Object} } ] ``` |
| testMeasure.accuracy | Float decimal value representing the test measure accuracy captured for the associated metrics.Data type: Number Maximum value: 40 |
| testMeasure.captureDateTime | The date and time that the metric was captured.Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasure.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Don't capture the metric. Data type: String |
| testMeasure.id | Sys\_id or external\_id of the test measure.Data type: String Table: Test Measures \[sn\_st\_mgmt\_test\_measure\] |
| testMeasure.metricDescription | Brief description of the metric.Data type: String |
| testMeasure.metricName | Name of a metric in the test measure.Data type: String |
| testMeasure.ruleViolation | Object for defining a rule in the threshold rule definition, along with consequences if the rule is violated.Data type: Array of Objects ``` "RuleViolation": [ { "appliedConsequence": [Array], "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": {Object} } ] ``` |
| testMeasure.ruleViolation.appliedConsequence | Action \(prescribed action or notification\) to take when a threshold rule is violated.Data type: Array of Objects ``` "appliedConsequence": [ { "appliedAction": "String", "description": "String", "id": "String", "name": "String", "repeatAction": Boolean } ] ``` |
| testMeasure.ruleViolation.appliedConsequence.appliedAction | Action to take when a threshold rule is violated. For example, sending a warning or generating a report. Applied actions can vary between instances.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.appliedAction.repeatAction | Flag that indicates whether to repeat the applied action or not.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasure.ruleViolation.appliedConsequence.description | Description of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.id | Sys\_id or external\_id of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.name | Name of the applied consequence.Data type: String |
| testMeasure.ruleViolation.conformanceComparatorExact | Flag that indicates whether a value is identical to the value of **conformanceTargetExact**.Valid values: - true: The value is identical. - false: The value isn't identical. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComparatorLower | An operator that checks if a value falls below the threshold. Valid values: - greater than - is Data type: String |
| testMeasure.ruleViolation.conformanceComparatorUpper | An operator that checks if a value exceeds the threshold.Valid values: - is - lesser than Data type: String |
| testMeasure.ruleViolation.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetLower | Lower threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetUpper | Upper threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.description | Description of the threshold rule violation.Data type: String |
| testMeasure.ruleViolation.id | Sys\_id or external\_id of the threshold rule violation.Data type: String Table: Threshold Rule Violation \[sn\_st\_mgmt\_threshold\_rule\_violation\] |
| testMeasure.ruleViolation.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum: 40 |
| testMeasure.ruleViolation.thresholdRuleSeverity | Severity of the threshold rule.Valid values: - high - low - medium Data type: String |
| testMeasure.ruleViolation.tolerancePeriod | Duration or time interval in which allowed crossings can occur before a consequence is initiated.Date type: Object ``` "tolerancePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasure.ruleViolation.tolerancePeriod.amount | Amount of the period in number.Data type: Number |
| testMeasure.ruleViolation.tolerancePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasure.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasure.value | Value of metric in the test.Data type: Object ``` "value": { "id": "String", "name": "String", "valueType": "String", "value": "String" } ``` |
| testMeasure.value.id | ID of the metric value in the test.Data type: String |
| testMeasure.value.name | Name of the metric value in the test.Data type: String |
| testMeasure.value.value | Value of metric in the test.Data type: String |
| testMeasure.value.valueType | Type of test measure value such as numeric, text, and so forth.Data type: String |
| testSpecification | Test definition associated for this test. Data type: Object ``` "testSpecification": { "href": "String", "id": "String" } ``` |
| testSpecification.href | Hyperlink reference to the service test definition.Data type: String |
| testSpecification.id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| validFor | Date range that the service test is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | End date and timestamp of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Start date and timestamp of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Name | Description |
|---|---|
| id | Sys\_id or external\_id of the service test definition to retrieve.Data type: String Table: Service Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| Name | Description |
|---|---|
| description | Description of the service test definition.Data type: String |
| name | Required. Name of the service test definition.Data type: String |
| relatedServiceSpecification | Required. Service specifications of the test definition.Data type: Array of Objects ``` "relatedServiceSpecification": [ { "id": "String", "name": "String" } ] ``` |
| relatedServiceSpecification.id | Sys\_id or external\_id of the service specification.Data type: String Table: In the sys\_id or external\_id field of the Specification \[sn\_prd\_pm\_specification\] table. |
| relatedServiceSpecification.name | Name of the service specification.Data type: String |
| serviceTestSpecRelationship | Related service test definition.Data type: Array of Objects ``` "serviceTestSpecRelationship": [ { "id": "String", "name": "String", "relationshipType": "String" } ] ``` |
| serviceTestSpecRelationship.id | Sys\_id or external\_id of the related service test definition.Data type: String Table: Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| serviceTestSpecRelationship.name | Name of the related test definition.Data type: String |
| serviceTestSpecRelationship.relationshipType | Type of relationship.Accepted values: - dependency - exclusivity - substitution Data type: String |
| specCharacteristic | Characteristics of the test definition.Data type: Array of Objects ``` "specCharacteristic": [ { "characteristicValueSpecification": [Array], "description": "String", "name": "String", "validFor": {Object}, "valueType": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification | Possible values of the characteristic.Data type: Array of Objects ``` "characteristicValueSpecification": [ { "value": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification.value | Value of the characteristic.Data type: String |
| specCharacteristic.description | Description of the characteristic.Data type: String |
| specCharacteristic.name | Name of the characteristic.Data type: String |
| specCharacteristic.validFor | Date range that the characteristic is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| specCharacteristic.validFor.endDateTime | End date of the characteristic. Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. Data type: String |
| specCharacteristic.validFor.startDateTime | Start date of the characteristic. Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. Data type: String |
| specCharacteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| testMeasureDefinition | Test measure definitions for this service test definition. For more information, see [Define test measure definitions for a service test](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-test-measure-spm.md).Data type: Array of objects ``` "testMeasureDefinition": [ { "captureFrequency": "String", "captureMethod": "String", "capturePeriod": {Object}, "id": "String", "metricDescription": "String", "metricName": "String", "name": "String", "unitOfMeasure": "String", "thresholdRule": [Array], "validFor": {Object}, "valueType": "String" } ] ``` |
| testMeasureDefinition.captureFrequency | The frequency at which to capture the metric. Valid values: - daily - monthly - none - once - weekly Data type: String |
| testMeasureDefinition.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Doesn't capture the metric. Data type: String |
| testMeasureDefinition.capturePeriod | Period or duration of the metric capture.Data type: Object ``` "capturePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasureDefinition.capturePeriod.amount | Number of capture periods.Data type: Number |
| testMeasureDefinition.capturePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasureDefinition.id | Sys\_id or external\_id of the test measure definitions.Data type: String Table: Test Measure definition table \[sn\_st\_mgmt\_test\_measure\_definition\] |
| testMeasureDefinition.metricDescription | Brief description of the metric.Data type: String |
| testMeasureDefinition.metricName | User-defined name of a metric in the test measure.Data type: String |
| testMeasureDefinition.name | Name of the test measure definition.Data type: String |
| testMeasureDefinition.thresholdRule | Rule that defines conditions to achieve before applying consequences when a threshold is crossed \(or not crossed\) in the test measure definition. For more information, [Define threshold rules for a test measure definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-threshold-rules.md).Data type: Array of Objects ``` { "thresholdRule": { "consequence": [Array], "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "consequence": [Array], "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": {Object} } } ``` |
| testMeasureDefinition.thresholdRule.conformanceComparatorExact | Flag that indicates whether a value is identical to the value set for **testMeasureDefinition.thresholdRule.conformanceTargetExact**. If set to true, **testMeasureDefinition.thresholdRule.conformanceTargetExact** is required.Valid values: - true: The value is identical to the value of **conformanceTargetExact**. - false: The value isn't identical **conformanceTargetExact**. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.conformanceComparatorLower | Operator that checks if a value falls below the threshold. Valid values: - greater than - greater than or is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceComparatorUpper | Operator that checks if a value exceeds the threshold.Valid values: - less than - less than or is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetLower | Lower threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetUpper | Upper threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.consequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed. See [Define threshold rules for a test measure definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-threshold-rules.md) for more information.Data type: Array of objects ``` "consequence": [ { "description": "String", "id": "String", "name": "String", "prescribeAction": "String", "repeatAction": Boolean, "validFor": { "endDateTime": "String", "startDateTime": "String" } ] ``` |
| testMeasureDefinition.thresholdRule.consequence.description | Description of the consequence. Data type: String |
| testMeasureDefinition.thresholdRule.consequence.id | Sys\_id or external\_id of the measure consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.name | Name of the consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.prescribeAction | User-defined action to take for threshold violations. Actions vary between instances.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.repeatAction | Flag that indicates whether to repeat the applied consequence.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.consequence.validFor | Date range that the consequence is valid for.Data type: Object ``` "validFor": { "startDateTime": "String", "endDateTime ": "String" } ``` |
| testMeasureDefinition.thresholdRule.consequence.validFor.endDateTime | Validity end date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.consequence.validFor.startDateTime | Validity start date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.description | Description of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.id | Sys\_id or external\_id of the threshold rules.Data type: String Table: In the sys\_id or external\_id field of the Threshold Rules \[sn\_st\_mgmt\_threshold\_rule\] table. |
| testMeasureDefinition.thresholdRule.name | Name of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasureDefinition.thresholdRule.thresholdRuleSeverity | Severity level of the threshold rule.Valid values: - high - medium - low Data type: String |
| testMeasureDefinition.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasureDefinition.validFor | Date range that the test measure definition is valid for.Data type: String ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| testMeasureDefinition.validFor.endDateTime | Validity end date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.validFor.startDateTime | Validity start date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Only supports **application/json**. |
| Name | Description |
|---|---|
| description | Description of the service test definition.Data type: String |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| name | Name of the service test definition.Data type: String |
| relatedServiceSpecification | Service specifications for the test definitions.Data type: Array of Objects ``` "relatedServiceSpecification": [ { "id": "String", "name": "String" } ] ``` |
| relatedServiceSpecification.id | Sys\_id or external\_id of the service specification.Data type: String Table: In the sys\_id or external\_id field of the Specification \[sn\_prd\_pm\_specification\] table. |
| relatedServiceSpecification.name | Name of the service specification.Data type: String |
| serviceTestSpecRelationship | Related service test definition.Data type: Array of Objects ``` "serviceTestSpecRelationship": [ { "id": "String", "name": "String", "relationshipType": "String" } ] ``` |
| serviceTestSpecRelationship.id | Sys\_id or external\_id of the related service test definition.Data type: String Table: Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| serviceTestSpecRelationship.name | Name of the related test definition.Data type: String |
| serviceTestSpecRelationship.relationshipType | Type of relationship.Accepted values: - dependency - exclusivity - substitution Data type: String |
| specCharacteristic | Test definition characteristics.Data type: Array of Objects ``` "specCharacteristic": [ { "characteristicValueSpecification": [Array], "description": "String", "name": "String", "validFor": {Object}, "valueType": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification | Possible values of the characteristic.Data type: Array of Objects ``` "characteristicValueSpecification": [ { "value": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification.value | Value of the characteristic.Data type: String |
| specCharacteristic.description | Description of the characteristic.Data type: String |
| specCharacteristic.name | Name of the characteristic.Data type: String |
| specCharacteristic.validFor | Date range the characteristic is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| specCharacteristic.validFor.endDateTime | End date of the characteristic. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| specCharacteristic.validFor.startDateTime | Start date of the characteristic. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| specCharacteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| testMeasureDefinition | Test measure definitions for this service test definition. See [Define test measure definitions for a service test](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-test-measure-spm.md) for more infomation.Data type: Array of Objects ``` "testMeasureDefinition": [ { "captureFrequency": "String", "captureMethod": "String", "capturePeriod": {Object}, "id": "String", "metricDescription": "String", "metricName": "String", "name": "String", "unitOfMeasure": "String", "thresholdRule": [Array], "validFor": {Object}, "valueType": "String" } ] ``` |
| testMeasureDefinition.captureFrequency | Frequency at which to capture the metric. Valid values: - daily - monthly - none - once - weekly Data type: String |
| testMeasureDefinition.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Don't capture the metric. Data type: String |
| testMeasureDefinition.capturePeriod | Duration or period of the capture.Data type: Object ``` "capturePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasureDefinition.capturePeriod.amount | Number of capture periods.Data type: Number |
| testMeasureDefinition.capturePeriod.units | Units of the period.Accepted values: - days - hours - minutes - seconds Data type: String |
| testMeasureDefinition.id | Sys\_id or external\_id of the Test Measure definitions.Data type: String Table: Test Measure definition \[sn\_st\_mgmt\_test\_measure\_definition\] |
| testMeasureDefinition.metricDescription | Brief description of the metric.Data type: String |
| testMeasureDefinition.metricName | User-defined name of a metric in the test measure.Data type: String |
| testMeasureDefinition.name | Name of the test measure definition.Data type: String |
| testMeasureDefinition.thresholdRule | Rule that defines the condition \(raise or clear\) to achieve to apply consequences when a threshold is crossed or ceased to be crossed for a particular test measure definition.Data type: Array of Objects ``` { "thresholdRule": { "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "consequence": [Array], "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": Object } } ``` |
| testMeasureDefinition.thresholdRule.conformanceComparatorExact | Flag that indicates whether a value is identical to the value of **conformanceTargetExact**.Valid values: - true: The value is identical to the value of **conformanceTargetExact**. - false: The value isn't identical **conformanceTargetExact**. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.conformanceComparatorLower | Operator that checks if a value falls below the threshold. Valid values: - greater than - is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceComparatorUpper | Operator that checks if a value exceeds the threshold.Valid values: - lesser than - is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetLower | Lower threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetUpper | Upper threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.consequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed.Data type: Array of Objects ``` "consequence": [ { "description": "String", "id": "String", "name": "String", "prescribeAction": "String", "repeatAction": Boolean, "validFor": { "endDateTime": "String", "startDateTime": "String" } ] ``` |
| testMeasureDefinition.thresholdRule.consequence.description | Description of the consequence. Data type: String |
| testMeasureDefinition.thresholdRule.consequence.id | Sys\_id or external\_id of the measure consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.name | Name of the consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.prescribeAction | User-defined action to take for threshold violations. Actions vary between instances.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.repeatAction | Flag that indicates whether to repeat the applied action or not.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.consequence.validFor | Date range that the consequence is valid for.Data type: Object ``` "validFor": { "startDateTime": "String", "endDateTime ": "String" } ``` |
| testMeasureDefinition.thresholdRule.consequence.validFor.endDateTime | Validity end date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.consequence.validFor.startDateTime | Validity start date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.description | Description of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.id | Sys\_id or external\_id of the threshold rules.Data type: String Table: Threshold Rules \[sn\_st\_mgmt\_threshold\_rule\] |
| testMeasureDefinition.thresholdRule.name | Name of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasureDefinition.thresholdRule.thresholdRuleSeverity | Severity of the threshold rule.Valid values: - high - low - medium Data type: String |
| testMeasureDefinition.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasureDefinition.validFor | Date range the test measure definition is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| testMeasureDefinition.validFor.endDateTime | Validity end date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.validFor.startDateTime | Validity start date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Name | Description |
|---|---|
| characteristic | List that describes the characteristics of the associated service test. For more information about test definition characteristics, see Data type: Array of Objects ``` "characteristic": [ { "id": "String", "name": "String", "value": "String", "valueType": "String" } ] ``` |
| characteristic.id | Sys\_id or external\_id of characteristics. If external\_id is present for that record, the response returns the external\_id otherwise it returns the sys\_id.Data type: String Table: Characteristics \[sn\_prd\_pm\_characteristic\] |
| characteristic.name | Name of the characteristic.Data type: String |
| characteristic.value | Characteristic options associated with the service test. Characteristics vary based on the customer instance.Data type: String |
| characteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| description | Description of the service test.Data type: String |
| endDateTime | End date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| id | Sys\_id or external\_id of the service test. This ID creates a service test and is used as the external\_id.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| mode | Mode that the service test is running in.Valid values: - ONDEMAND: Triggers the service test manually. - PROACTIVE: Triggers the service test automatically. Data type: String Default: ONDEMAND |
| name | Required. Name of the service test.Data type: String |
| relatedService | Required. Test definition associated with the service test.Data type: Object ``` "relatedService": { "href": "String", "id": "String", "name": "String" } ``` |
| relatedService.href | Hyperlink reference to the related service.Data type: String |
| relatedService.id | Sys\_id or external\_id of the product inventory.Data type: String Table: In the sys\_id or external\_id field of the product Inventory \[sn\_prd\_invt\_product\_inventory\] table. |
| relatedService.name | Name of the product inventory item.Data type: String |
| startDateTime | Start date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| state | State the service test is in. Valid values: - acknowledged - canceled - completed - failed - inProgress - pending - rejected Data type: String |
| testMeasure | Measure of a specific aspect of a product, service, or resource test, such as lost packets or connectivity status.Data type: Array of Objects ``` "testMeasure": [ { "accuracy": "String", "captureDateTime": "String", "captureMethod": "String", "id": "String", "metricDescription": "String", "metricName": "String", "ruleViolation": [Array], "unitOfMeasure": "String", "value": {Object} } ] ``` |
| testMeasure.accuracy | Float decimal value representing the test measure accuracy captured for the associated metrics.Data type: Number Maximum value: 40 |
| testMeasure.captureDateTime | The date and time that the metric was captured. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasure.id | Sys\_id or external\_id of the Test Measures.Data type: String Table: In the sys\_id or external\_id fields of the Test Measures table \[sn\_st\_mgmt\_test\_measure\] table. |
| testMeasure.Measure.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Don't capture the metric. Data type: String |
| testMeasure.metricDescription | Brief description of the metric.Data type: String |
| testMeasure.metricName | Name of the test measure metric.Data type: String |
| testMeasure.ruleViolation | An object for defining a rule in the threshold rule definition, along with consequences if the rule is violated.Data type: Array of Objects ``` "ruleViolation"[ { appliedConsequence: [Array], conformanceTargetUpper: Number, conformanceComparatorUpper: "String", description: "String", id: "String", name: "String", numberOfAllowedCrossing: Number, thresholdRuleSeverity: "String", tolerancePeriod: "String" } ] ``` |
| testMeasure.ruleViolation.appliedConsequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed.Data type: Array of Objects ``` "appliedConsequence": [ { "appliedAction": "String", "description": "String", "id": "String", "name": "String", "repeatAction": Boolean } ] ``` |
| testMeasure.ruleViolation.appliedConsequence.appliedAction | Action to take when a threshold rule is violated. For example, sending a warning or generating a report. Applied actions can vary between instances.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.description | Description of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.id | Sys\_id or external\_id of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.name | Name of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.repeatAction | Flag that indicates whether to repeat the consequence when a second violation occurs.Valid values: - true: Repeat the action. - false: Don't repeat the action. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComporatorExact | Flag that indicates whether a value is identical.Valid values: - true: The value is identical. - false: The value isn't identical. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComporatorLower | Operator for checking if a value falls below the threshold.Valid values: - greater than - greater than or is Data type: String |
| testMeasure.ruleViolation.conformanceComporatorUpper | Operator for checking if a value is above the threshold.Valid values: - less than - less than or is Data type: String |
| testMeasure.ruleViolation.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetLower | Lower threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetUpper | Upper threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.description | Description of the threshold rule.Data type: String |
| testMeasure.ruleViolation.id | Sys\_id or external\_id of the threshold rule violation.Data type: String Table: Threshold Rule Violation \[sn\_st\_mgmt\_threshold\_rule\_violation\] |
| testMeasure.ruleViolation.name | Name of the threshold rule.Data type: String |
| testMeasure.ruleViolation.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasure.ruleViolation.thresholdRuleSeverity | Severity of the threshold rule.Valid values: - high - medium - low Data type: String |
| testMeasure.ruleViolation.tolerancePeriod | Specified time interval during which crossing occurrences are enabled without triggering any immediate consequences or actions.Date type: Object ``` "tolerancePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasure.ruleViolation.tolerancePeriod.amount | Number of periods before applying the consequence.Data type: Number |
| testMeasure.ruleViolation.tolerancePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasure.unitOfMeasure | Unit of measurement for the conformance target values of the test measure.Data type: String |
| testMeasure.value | Value of the test measure.Data type: Object ``` "value": { "id": "String", "name": "String", "valueType": "String", "value": "String } ``` |
| testMeasure.value.id | ID of the test measure value.Data type: String |
| testMeasure.value.name | Name of the test measure value.Data type: String |
| testMeasure.value.value | Value of the test measure.Data type: String |
| testMeasure.value.valueType | Type of test measure value such as numeric, text, and so forth.Data type: String |
| testSpecification | Required. Test definition associated with this test. Data type: Object ``` "testSpecification": { "href": "String", "id": "String" } ``` |
| testSpecification.href | Hyperlink reference to the service test definition.Data type: String |
| testSpecification.id | Sys\_id or external\_id of the service test definition.Data type: String Table: In the sys\_id or external\_id field of the Service Test Definition \[sn\_st\_mgmt\_test\_definition\] table. |
| validFor | Date range the service test is valid for.Data type: Object ``` "validFor": { "endDateTime ": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | Validity end date of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Validity start date of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| characteristic | List that describes the characteristics of the associated service test.Data type: Array of Objects ``` "characteristic": [ { "id": "String", "name": "String", "value": "String", "valueType": "String" } ] ``` |
| characteristic.id | Sys\_id or external\_id of characteristics. If external\_id is present for that record, the response returns the external\_id otherwise it returns the sys\_id.Data type: String Table: Characteristics \[sn\_prd\_pm\_characteristic\] |
| characteristic.name | Name of the characteristic.Data type: String |
| characteristic.value | Characteristic options associated with the service test. Characteristics vary based on the customer instance.Data type: String |
| characteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| description | Description of the service test.Data type: String |
| endDateTime | End date and time of the service test.Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| mode | Mode that the service test is running in.Valid values: - ONDEMAND: Triggers the service test manually. - PROACTIVE: Triggers the service test automatically. Data type: String Default: ONDEMAND |
| name | Name of the service test.Data type: String |
| relatedService | Test definition associated for this test.Data type: Object ``` "relatedService": { "href": "string", "id": "String", "name": "String" } ``` |
| relatedService.id | Sys\_id or external\_id of the product inventory.Data type: String Table: Product Inventory \[sn\_prd\_invt\_product\_inventory\] |
| relatedService.name | Name of the product inventory.Data type: String |
| startDateTime | Start date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| state | State of the service test.Valid values: - acknowledged - canceled - completed - failed - inProgress - pending - rejected Data type: String |
| testMeasure | Measure of a specific aspect of a product, service, or resource test, such as lost packets or connectivity status.Data type: Array of Objects ``` "testMeasureDefinition": [ { "accuracy": "String", "captureDateTime": "String", "captureMethod": "String", "id": "String", "metricDescription": "String", "metricName": "String", "ruleViolation": [Array] "unitOfMeasure": "String", "value": {Object} } ] ``` |
| testMeasure.accuracy | Float decimal value representing the test measure accuracy captured for the associated metrics.Data type: Number Maximum value: 40 |
| testMeasure.captureDateTime | The date and time that the metric was captured.Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasure.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Don't capture the metric. Data type: String |
| testMeasure.id | Sys\_id or external\_id of the test measure.Data type: String Table: Test Measures \[sn\_st\_mgmt\_test\_measure\] |
| testMeasure.metricDescription | Brief description of the metric.Data type: String |
| testMeasure.metricName | Name of a metric in the test measure.Data type: String |
| testMeasure.ruleViolation | Object for defining a rule in the threshold rule definition, along with consequences if the rule is violated.Data type: Array of Objects ``` "RuleViolation": [ { "appliedConsequence": [Array], "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": {Object} } ] ``` |
| testMeasure.ruleViolation.appliedConsequence | Action \(prescribed action or notification\) to take when a threshold rule is violated.Data type: Array of Objects ``` "appliedConsequence": [ { "appliedAction": "String", "description": "String", "id": "String", "name": "String", "repeatAction": Boolean } ] ``` |
| testMeasure.ruleViolation.appliedConsequence.appliedAction | Action to take when a threshold rule is violated. For example, sending a warning or generating a report. Applied actions can vary between instances.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.appliedAction.repeatAction | Flag that indicates whether to repeat the applied action or not.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasure.ruleViolation.appliedConsequence.description | Description of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.id | Sys\_id or external\_id of the applied consequence.Data type: String |
| testMeasure.ruleViolation.appliedConsequence.name | Name of the applied consequence.Data type: String |
| testMeasure.ruleViolation.conformanceComparatorExact | Flag that indicates whether a value is identical to the value of **conformanceTargetExact**.Valid values: - true: The value is identical. - false: The value isn't identical. Data type: Boolean Default: false |
| testMeasure.ruleViolation.conformanceComparatorLower | An operator that checks if a value falls below the threshold. Valid values: - greater than - is Data type: String |
| testMeasure.ruleViolation.conformanceComparatorUpper | An operator that checks if a value exceeds the threshold.Valid values: - is - lesser than Data type: String |
| testMeasure.ruleViolation.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetLower | Lower threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.conformanceTargetUpper | Upper threshold value for comparing the test measure results. Determines if the threshold is crossed or no longer crossed.Data type: Number |
| testMeasure.ruleViolation.description | Description of the threshold rule violation.Data type: String |
| testMeasure.ruleViolation.id | Sys\_id or external\_id of the threshold rule violation.Data type: String Table: Threshold Rule Violation \[sn\_st\_mgmt\_threshold\_rule\_violation\] |
| testMeasure.ruleViolation.name | Name of the threshold rule violation.Date type: String |
| testMeasure.ruleViolation.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum: 40 |
| testMeasure.ruleViolation.thresholdRuleSeverity | Severity of the threshold rule.Valid values: - high - low - medium Data type: String |
| testMeasure.ruleViolation.tolerancePeriod | Duration or time interval in which allowed crossings can occur before a consequence is initiated.Date type: Object ``` "tolerancePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasure.ruleViolation.tolerancePeriod.amount | Amount of the period in number.Data type: Number |
| testMeasure.ruleViolation.tolerancePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasure.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasure.value | Value of metric in the test.Data type: Object ``` "value": { "id": "String", "name": "String", "valueType": "String", "value": "String" } ``` |
| testMeasure.value.id | ID of the metric value in the test.Data type: String |
| testMeasure.value.name | Name of the metric value in the test.Data type: String |
| testMeasure.value.name | Name of the metric value in the test.Data type: String |
| testMeasure.value.value | Value of metric in the test.Data type: String |
| testMeasure.value.valueType | Type of test measure value such as numeric, text, and so forth.Data type: String |
| testSpecification | Test definition associated for this test. Data type: Object ``` "testSpecification": { "href": "String", "id": "String" } ``` |
| testSpecification.href | Hyperlink reference to the service test definition.Data type: String |
| testSpecification.id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| validFor | Date range that the service test is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | End date and timestamp of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Start date and timestamp of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Name | Description |
|---|---|
| description | Description of the service test definition.Data type: String |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| name | Required. Name of the service test definition.Data type: String |
| relatedServiceSpecification | Required. Service specifications of the test definition.Data type: Array of Objects ``` "relatedServiceSpecification": [ { "id": "String", "name": "String" } ] ``` |
| relatedServiceSpecification.id | Sys\_id or external\_id of the service specification.Data type: String Table: In the sys\_id or external\_id field of the Specification \[sn\_prd\_pm\_specification\] table. |
| relatedServiceSpecification.name | Name of the service specification.Data type: String |
| serviceTestSpecRelationship | Related service test definition.Data type: Array of objects ``` "serviceTestSpecRelationship": [ { "id": "String", "name": "String", "relationshipType": "String" } ] ``` |
| serviceTestSpecRelationship.id | Sys\_id or external\_id of the related service test definition.Data type: String Table: In the sys\_id or external\_id field of the Test Definition \[sn\_st\_mgmt\_test\_definition\] table. |
| serviceTestSpecRelationship.name | Name of the related test definition.Data type: String |
| serviceTestSpecRelationship.relationshipType | Type of relationship.Valid values: - dependency - exclusivity - substitution Data type: String |
| specCharacteristic | Characteristics of the test definition.Data type: Array of Objects ``` "specCharacteristic": [ { "characteristicValueSpecification": [Array], "description": "String", "name": "String", "validFor": {Object}, "valueType": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification | Possible values of the characteristic.Data type: Array of Objects ``` "characteristicValueSpecification": [ { "value": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification.value | Value of the characteristic.Data type: String |
| specCharacteristic.description | Description of the characteristic.Data type: String |
| specCharacteristic.name | Name of the characteristic.Data type: String |
| specCharacteristic.validFor | Date range that the characteristic is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| specCharacteristic.validFor.endDateTime | End date of the characteristic. Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. Data type: String |
| specCharacteristic.validFor.startDateTime | Start date of the characteristic. Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. Data type: String |
| specCharacteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| testMeasureDefinition | Test measure definitions for this service test definition. For more information, see [Define test measure definitions for a service test](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-test-measure-spm.md).Data type: Array of objects ``` "testMeasureDefinition": [ { "captureFrequency": "String", "captureMethod": "String", "capturePeriod": {Object}, "id": "String", "metricDescription": "String", "metricName": "String", "name": "String", "unitOfMeasure": "String", "thresholdRule": [Array], "validFor": {Object}, "valueType": "String" } ] ``` |
| testMeasureDefinition.captureFrequency | The frequency at which to capture the metric. Valid values: - daily - monthly - none - once - weekly Data type: String |
| testMeasureDefinition.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Doesn't capture the metric. Data type: String |
| testMeasureDefinition.capturePeriod | Period or duration of the metric capture.Data type: Object ``` "capturePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasureDefinition.capturePeriod.amount | Number of capture periods.Data type: Number |
| testMeasureDefinition.capturePeriod.units | Units of the period.Valid values: - days - hours - minutes - seconds Data type: String |
| testMeasureDefinition.id | Sys\_id or external\_id of the test measure definitions.Data type: String Table: Test Measure definition table \[sn\_st\_mgmt\_test\_measure\_definition\] |
| testMeasureDefinition.metricDescription | Brief description of the metric.Data type: String |
| testMeasureDefinition.metricName | User-defined name of a metric in the test measure.Data type: String |
| testMeasureDefinition.name | Name of the test measure definition.Data type: String |
| testMeasureDefinition.thresholdRule | Rule that defines conditions to achieve before applying consequences when a threshold is crossed \(or not crossed\) in the test measure definition. For more information, [Define threshold rules for a test measure definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-threshold-rules.md).Data type: Array of Objects ``` { "thresholdRule": { "consequence": [Array], "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "consequence": [Array], "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": {Object} } } ``` |
| testMeasureDefinition.thresholdRule.conformanceComparatorExact | Flag that indicates whether a value is identical to the value set for **testMeasureDefinition.thresholdRule.conformanceTargetExact**. If set to true, **testMeasureDefinition.thresholdRule.conformanceTargetExact** is required.Valid values: - true: The value is identical to the value of **conformanceTargetExact**. - false: The value isn't identical **conformanceTargetExact**. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.conformanceComparatorLower | Operator that checks if a value falls below the threshold. Valid values: - greater than - greater than or is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceComparatorUpper | Operator that checks if a value exceeds the threshold.Valid values: - less than - less than or is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetLower | Lower threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetUpper | Upper threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.consequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed. See [Define threshold rules for a test measure definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-threshold-rules.md) for more information.Data type: Array of objects ``` "consequence": [ { "description": "String", "id": "String", "name": "String", "prescribeAction": "String", "repeatAction": Boolean, "validFor": { "endDateTime": "String", "startDateTime": "String" } ] ``` |
| testMeasureDefinition.thresholdRule.consequence.description | Description of the consequence. Data type: String |
| testMeasureDefinition.thresholdRule.consequence.id | Sys\_id or external\_id of the measure consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.name | Name of the consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.prescribeAction | User-defined action to take for threshold violations. Actions vary between instances.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.repeatAction | Flag that indicates whether to repeat the applied consequence.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.consequence.validFor | Date range that the consequence is valid for.Data type: Object ``` "validFor": { "startDateTime": "String", "endDateTime ": "String" } ``` |
| testMeasureDefinition.thresholdRule.consequence.validFor.endDateTime | Validity end date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.consequence.validFor.startDateTime | Validity start date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.description | Description of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.id | Sys\_id or external\_id of the threshold rules.Data type: String Table: In the sys\_id or external\_id field of the Threshold Rules \[sn\_st\_mgmt\_threshold\_rule\] table. |
| testMeasureDefinition.thresholdRule.name | Name of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasureDefinition.thresholdRule.thresholdRuleSeverity | Severity level of the threshold rule.Valid values: - high - medium - low Data type: String |
| testMeasureDefinition.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasureDefinition.validFor | Date range that the test measure definition is valid for.Data type: String ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| testMeasureDefinition.validFor.endDateTime | Validity end date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.validFor.startDateTime | Validity start date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor | Date range that the test definition is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | Date and time of the test definition on which the state of it is retired. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Date and time of the test definition on which the state of it is published. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| Name | Description |
|---|---|
| description | Description of the service test definition.Data type: String |
| id | Sys\_id or external\_id of the service test definition.Data type: String Table: Service Test \[sn\_st\_mgmt\_test\] |
| name | Name of the service test definition.Data type: String |
| relatedServiceSpecification | Service specifications for the test definitions.Data type: Array of Objects ``` "relatedServiceSpecification": [ { "id": "String", "name": "String" } ] ``` |
| relatedServiceSpecification.id | Sys\_id or external\_id of the service specification.Data type: String Table: In the sys\_id or external\_id field of the Specification \[sn\_prd\_pm\_specification\] table. |
| relatedServiceSpecification.name | Name of the service specification.Data type: String |
| serviceTestSpecRelationship | Related service test definition.Data type: Array of Objects ``` "serviceTestSpecRelationship": [ { "id": "String", "name": "String", "relationshipType": "String" } ] ``` |
| serviceTestSpecRelationship.id | Sys\_id or external\_id of the related service test definition.Data type: String Table: Test Definition \[sn\_st\_mgmt\_test\_definition\] |
| serviceTestSpecRelationship.name | Name of the related test definition.Data type: String |
| serviceTestSpecRelationship.relationshipType | Type of relationship.Accepted values: - dependency - exclusivity - substitution Data type: String |
| specCharacteristic | Test definition characteristics.Data type: Array of Objects ``` "specCharacteristic": [ { "characteristicValueSpecification": [Array], "description": "String", "name": "String", "validFor": {Object}, "valueType": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification | Possible values of the characteristic.Data type: Array of Objects ``` "characteristicValueSpecification": [ { "value": "String" } ] ``` |
| specCharacteristic.characteristicValueSpecification.value | Value of the characteristic.Data type: String |
| specCharacteristic.description | Description of the characteristic.Data type: String |
| specCharacteristic.name | Name of the characteristic.Data type: String |
| specCharacteristic.validFor | Date range the characteristic is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| specCharacteristic.validFor.endDateTime | End date of the characteristic. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| specCharacteristic.validFor.startDateTime | Start date of the characteristic. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| specCharacteristic.valueType | Type of characteristic value.- choice - date - date/time - duration - email - label - single line test - yes/no Data type: String |
| testMeasureDefinition | Test measure definitions for this service test definition. See [Define test measure definitions for a service test](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/telecom-media-technology/define-test-measure-spm.md) for more infomation.Data type: Array of Objects ``` "testMeasureDefinition": [ { "captureFrequency": "String", "captureMethod": "String", "capturePeriod": {Object}, "id": "String", "metricDescription": "String", "metricName": "String", "name": "String", "unitOfMeasure": "String", "thresholdRule": [Array], "validFor": {Object}, "valueType": "String" } ] ``` |
| testMeasureDefinition.captureFrequency | Frequency at which to capture the metric. Valid values: - daily - monthly - none - once - weekly Data type: String |
| testMeasureDefinition.captureMethod | Method used to capture the metric.Valid values: - automatic: Automatically capture the metric. - manual: Manually capture the metric. - none: Don't capture the metric. Data type: String |
| testMeasureDefinition.capturePeriod | Duration or period of the capture.Data type: Object ``` "capturePeriod": { "amount": Number, "units": "String" } ``` |
| testMeasureDefinition.capturePeriod.amount | Number of capture periods.Data type: Number |
| testMeasureDefinition.capturePeriod.units | Units of the period.Accepted values: - days - hours - minutes - seconds Data type: String |
| testMeasureDefinition.id | Sys\_id or external\_id of the Test Measure definitions.Data type: String Table: Test Measure definition \[sn\_st\_mgmt\_test\_measure\_definition\] |
| testMeasureDefinition.metricDescription | Brief description of the metric.Data type: String |
| testMeasureDefinition.metricName | User-defined name of a metric in the test measure.Data type: String |
| testMeasureDefinition.name | Name of the test measure definition.Data type: String |
| testMeasureDefinition.thresholdRule | Rule that defines the condition \(raise or clear\) to achieve to apply consequences when a threshold is crossed or ceased to be crossed for a particular test measure definition.Data type: Array of Objects ``` { "thresholdRule": { "conformanceComparatorExact": Boolean, "conformanceComparatorLower": "String", "conformanceComparatorUpper": "String", "conformanceTargetExact": "String", "conformanceTargetLower": "String", "conformanceTargetUpper": "String", "consequence": [Array], "description": "String", "id": "String", "name": "String", "numberOfAllowedCrossing": Number, "thresholdRuleSeverity": "String", "tolerancePeriod": Object } } ``` |
| testMeasureDefinition.thresholdRule.conformanceComparatorExact | Flag that indicates whether a value is identical to the value of **conformanceTargetExact**.Valid values: - true: The value is identical to the value of **conformanceTargetExact**. - false: The value isn't identical **conformanceTargetExact**. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.conformanceComparatorLower | Operator that checks if a value falls below the threshold. Valid values: - greater than - is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceComparatorUpper | Operator that checks if a value exceeds the threshold.Valid values: - lesser than - is Data type: String |
| testMeasureDefinition.thresholdRule.conformanceTargetExact | Required if **conformanceComparatorExact** is set to true. If the **conformanceComparatorExact** value is set to true, its value matches the value defined in **conformanceTargetExact**.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetLower | Lower threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.conformanceTargetUpper | Upper threshold value for comparing the test measure results.Data type: Number |
| testMeasureDefinition.thresholdRule.consequence | Action \(prescribed action or notification\) to take when a threshold rule is crossed.Data type: Array of Objects ``` "consequence": [ { "description": "String", "id": "String", "name": "String", "prescribeAction": "String", "repeatAction": Boolean, "validFor": { "endDateTime": "String", "startDateTime": "String" } ] ``` |
| testMeasureDefinition.thresholdRule.consequence.description | Description of the consequence. Data type: String |
| testMeasureDefinition.thresholdRule.consequence.id | Sys\_id or external\_id of the measure consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.name | Name of the consequence.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.prescribeAction | User-defined action to take for threshold violations. Actions vary between instances.Data type: String |
| testMeasureDefinition.thresholdRule.consequence.repeatAction | Flag that indicates whether to repeat the applied action or not.Valid values: - true: Repeats the action. - false: Doesn't repeat the action. Data type: Boolean Default: false |
| testMeasureDefinition.thresholdRule.consequence.validFor | Date range that the consequence is valid for.Data type: Object ``` "validFor": { "startDateTime": "String", "endDateTime ": "String" } ``` |
| testMeasureDefinition.thresholdRule.consequence.validFor.endDateTime | Validity end date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.consequence.validFor.startDateTime | Validity start date of the consequence. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.thresholdRule.description | Description of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.id | Sys\_id or external\_id of the threshold rules.Data type: String Table: Threshold Rules \[sn\_st\_mgmt\_threshold\_rule\] |
| testMeasureDefinition.thresholdRule.name | Name of the threshold rule.Data type: String |
| testMeasureDefinition.thresholdRule.numberOfAllowedCrossing | Maximum crossings allowed within the tolerance period before consequences are applied.Data type: Number Maximum value: 40 |
| testMeasureDefinition.thresholdRule.thresholdRuleSeverity | Severity of the threshold rule.Valid values: - high - low - medium Data type: String |
| testMeasureDefinition.unitOfMeasure | Measurable value of time used to calculate the performance of a service in days, minutes, and seconds.Data type: String |
| testMeasureDefinition.validFor | Date range the test measure definition is valid for.Data type: Object ``` "validFor": { "endDateTime": "String", "startDateTime": "String" } ``` |
| testMeasureDefinition.validFor.endDateTime | Validity end date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| testMeasureDefinition.validFor.startDateTime | Validity start date of the test measure definition. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor | Date range the service test is valid for.Data type: Object ``` "validFor": { "endDateTime ": "String", "startDateTime": "String" } ``` |
| validFor.endDateTime | End date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |
| validFor.startDateTime | Start date and time of the service test. Data type: String Format: YYYY-MM-DD 00:00:00. For example, `2025-01-31 09:35:43`. |