PUT /v1/transformationRules/{id}
Update an existing transformation rule. All properties specified in the request are replaced. Missing properties will remain the same.
Servers
- https://api.au.sumologic.com/api/
- https://api.ca.sumologic.com/api/
- https://api.de.sumologic.com/api/
- https://api.eu.sumologic.com/api/
- https://api.fed.sumologic.com/api/
- https://api.jp.sumologic.com/api/
- https://api.kr.sumologic.com/api/
- https://api.in.sumologic.com/api/
- https://api.sumologic.com/api/
- https://api.us2.sumologic.com/api/
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
String | Yes |
Identifier of the transformation rule to update. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
ruleDefinition |
Object | Yes |
The properties that define a transformation rule. |
ruleDefinition.transformedMetricsRetention |
Integer | No |
Retention period in days for the transformed metrics that are generated by this rule. The supported retention periods for transformed metrics are 8 days, and 400 days. If no dimension transformations are defined, this value will be set to 0. Default value: 0 |
ruleDefinition.selector |
String | Yes |
Selector of the transformation rule. |
ruleDefinition.dimensionTransformations[] |
Array | No |
Dimension transformations of the transformation rule. |
ruleDefinition.dimensionTransformations[].transformationType |
String | Yes |
This is the base type of all dimension transformations. |
ruleDefinition.name |
String | Yes |
Name of the transformation rule. |
ruleDefinition.retention |
Integer | Yes |
Retention period in days for the metrics that are selected by the selector. The supported retention periods for selected metrics are 8 days, 400 days, and 0 (Do not store) if this rule contains dimension transformation. Default value: 400 |
enabled |
Boolean | Yes |
True if the rule is enabled. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.