@@ -1916,7 +1916,7 @@ After creation you can get metadata of all collectors:
19161916OperationResult<CollectorSettingsList > operationResult = session
19171917 .diagnosticService()
19181918 .allCollectors()
1919- .collectorsMetadata ();
1919+ .collectorsSettings ();
19201920
19211921CollectorSettingsList result = operationResult
19221922 .getEntity();
@@ -1926,7 +1926,7 @@ or for single log collector:
19261926OperationResult<CollectorSettings > operationResult = session
19271927 .diagnosticService()
19281928 .forCollector(collector1. getId())
1929- .collectorMetadata ();
1929+ .collectorSettings ();
19301930
19311931CollectorSettings result = operationResult
19321932 .getEntity();
@@ -1955,14 +1955,14 @@ OperationResult<CollectorSettingsList> operationResult = session
19551955CollectorSettingsList result = operationResult
19561956 .getEntity();
19571957```
1958- Also you can update collector with ` .updateCollector() ` method for single operation :
1958+ Also you can update whole collector :
19591959``` java
19601960collector1. setStatus(" STOPPED" );
19611961
19621962OperationResult<CollectorSettings > operationResult = session
19631963 .diagnosticService()
19641964 .forCollector(collector1)
1965- .updateCollector (collector1);
1965+ .updateCollectorSettings (collector1);
19661966
19671967CollectorSettings result = operationResult
19681968 .getEntity();
@@ -1985,11 +1985,11 @@ OperationResult<InputStream> operationResult = session
19851985InputStream result = operationResult
19861986 .getEntity();
19871987````
1988- Please notice, you should stop them previously using `. updateCollectors()` or `updateCollectorsMetadata ()` methods.
1988+ Please notice, you should stop them previously using `. updateCollectorSettings ()` methods.
19891989Stopping the collector will turn off logging and begin resource export (if " includeDataSnapshots" is `true ` and resourceUri not empty).
19901990Once stopped, collectors can' t be run again.
19911991When App Server (e.g. Tomcat) is restarted, all collectors must change to stopped state.
1992- Before getting collectors' content check them status with method `. collectorsMetadata ()`.
1992+ Before getting collectors' content check them status with method `. collectorsSettings ()`.
19931993
19941994Delete log collectors you can as single or as batch operation:
19951995```java
0 commit comments