- URL:
- https://<knowledgegraphserviceadmin-url>/replicas/trimChangeLog
- Methods:
POST- Version Introduced:
- 12.1
Description
The trim operation allows administrative clients to remove change log entries made to a knowledge graph service that fall outside of a specified window of time. Changes made within the specified window are not removed. The trim operation is available for knowledge graph services that have Sync feature enabled.
A knowledge graph service can be configured to keep track of changes. Over time, as edits are applied and the change log grows, the size of the underlying dataset will increase. When running trim, change log entries that are older than a specific date are removed thus reducing the size of the underlying dataset.
Prior to performing this operation, ensure knowledge graph services are synced or that older replicas have been removed, including replicas that were not synced prior to the moment in which change log entries will be removed. Additionally, the change parameter can be used to gather log statistics to aid owners and admins in determining any appropriate actions prior to trimming.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The trim mode for trimming the change log to a specific moment in time. When this parameter is set to values: |
(Required) | The date to trim the change log to. All change log entries made prior to this date (exclusive) will be removed. Syntax |
(Optional) | This option will trim the change log to the earliest possible date that preserves all available replicas on the knowledge graph service. Syntax |
(Optional) | If Values: |
(Optional) | If |
(Optional) | The date used to provide statistics demonstrating the change log rows and replicas that would be impacted by Syntax |
(Optional) | If Values: |
| The response format. The default format is Values: |
Example usage
The following is a sample request URL for a knowledge graph service named Field:
https://organization.example.com/<context>/rest/admin/services/Hosted/FieldService/KnowledgeGraphServer/replicas/trimChangeLogRequests and responses
This operation can be performed by sending a PBF-formatted request and receiving a PBF-formatted response. The status of the operation can be queried using a PBF-formatted request. Details of the request and response parameters are provided in the appropriate .proto files.
PBF Request
Create a PBF-formatted request to perform this operation based on the Trim file.
PBF Response
When executing this operation asynchronously, create a PBF-formatted response to query the status of the operation based on the Async file.
Create a PBF-formatted response to query the status of the operation based on the Trim file.