AnalysisRule CreateAnalysisRule
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
AnalysisRule CreateAnalysisRule
Create a new Analysis Rule as a child of an existing Analysis Rule.
Request
POST analysisrules/{webId}/analysisrules
URL Parameters
-
webId The ID of the parent Analysis Rule, on which to create the child Analysis Rule. See WebID for more information.
-
webIdType Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType". See WebID Type for more information.
Body Parameter
The definition of the new Analysis Rule.
Status Codes
201: The Analysis Rule was created. The response's Location header is a link to the created Analysis Rule.
Sample Request Body
{
"ConfigString": "a := TagVal('sinusoid'); b := Pow(a, 2); c := a + b;",
"PlugInName": "PerformanceEquation",
"VariableMapping": "b||Attribute1;c||Attribute2"
}