Skip to content

Latest commit

 

History

History
130 lines (80 loc) · 6.04 KB

AnalysisRuleApi.md

File metadata and controls

130 lines (80 loc) · 6.04 KB

AnalysisRuleApi

Method HTTP request Description
GetByPath GET /analysisrules Retrieve an Analysis Rule by path.
Get GET /analysisrules/{webId} Retrieve an Analysis Rule.
Update PATCH /analysisrules/{webId} Update an Analysis Rule by replacing items in its definition.
Delete DELETE /analysisrules/{webId} Delete an Analysis Rule.
GetAnalysisRules GET /analysisrules/{webId}/analysisrules Get the child Analysis Rules of the Analysis Rule.
CreateAnalysisRule POST /analysisrules/{webId}/analysisrules Create a new Analysis Rule as a child of an existing Analysis Rule.

GetByPath

GetByPath(string path, string selectedFields = null)

Retrieve an Analysis Rule by path.

Parameters

Name Type Description Notes
path string The path to the Analysis Rule.. [required]
selectedFields string List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]

Return type

PIAnalysisRule

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

Get

Get(string webId, string selectedFields = null)

Retrieve an Analysis Rule.

Parameters

Name Type Description Notes
webId string The ID of the Analysis Rule.. [required]
selectedFields string List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]

Return type

PIAnalysisRule

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

Update

Update(string webId, PIAnalysisRule analysisRule)

Update an Analysis Rule by replacing items in its definition.

Parameters

Name Type Description Notes
webId string The ID of the Analysis Rule.. [required]
analysisRule PIAnalysisRule A partial Analysis Rule containing the desired changes.. [required]

Return type

Object

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

Delete

Delete(string webId)

Delete an Analysis Rule.

Parameters

Name Type Description Notes
webId string The ID of the Analysis Rule.. [required]

Return type

Object

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

GetAnalysisRules

GetAnalysisRules(string webId, int? maxCount = null, string nameFilter = null, bool? searchFullHierarchy = null, string selectedFields = null, string sortField = null, string sortOrder = null, int? startIndex = null)

Get the child Analysis Rules of the Analysis Rule.

Parameters

Name Type Description Notes
webId string The ID of the parent Analysis Rule.. [required]
maxCount int? The maximum number of objects to be returned per call (page size). The default is 1000.. [optional]
nameFilter string The name query string used for finding Analysis Rules. The default is no filter.. [optional]
searchFullHierarchy bool? Specifies if the search should include Analysis Rules nested further than the immediate children of the searchRoot. The default is 'false'.. [optional]
selectedFields string List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]
sortField string The field or property of the object used to sort the returned collection. The default is 'Name'.. [optional]
sortOrder string The order that the returned collection is sorted. The default is 'Ascending'.. [optional]
startIndex int? The starting index (zero based) of the items to be returned. The default is 0.. [optional]

Return type

PIItemsAnalysisRule

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

CreateAnalysisRule

CreateAnalysisRule(string webId, PIAnalysisRule analysisRule)

Create a new Analysis Rule as a child of an existing Analysis Rule.

Parameters

Name Type Description Notes
webId string The ID of the parent Analysis Rule, on which to create the child Analysis Rule.. [required]
analysisRule PIAnalysisRule The definition of the new Analysis Rule.. [required]

Return type

Object

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]