Skip to content

Commit dce0909

Browse files
committed
Updated Readme.md
1 parent 1b09fdf commit dce0909

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,7 @@ After creation you can get metadata of all collectors:
19161916
OperationResult<CollectorSettingsList> operationResult = session
19171917
.diagnosticService()
19181918
.allCollectors()
1919-
.collectorsMetadata();
1919+
.collectorsSettings();
19201920

19211921
CollectorSettingsList result = operationResult
19221922
.getEntity();
@@ -1926,7 +1926,7 @@ or for single log collector:
19261926
OperationResult<CollectorSettings> operationResult = session
19271927
.diagnosticService()
19281928
.forCollector(collector1.getId())
1929-
.collectorMetadata();
1929+
.collectorSettings();
19301930

19311931
CollectorSettings result = operationResult
19321932
.getEntity();
@@ -1955,14 +1955,14 @@ OperationResult<CollectorSettingsList> operationResult = session
19551955
CollectorSettingsList 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
19601960
collector1.setStatus("STOPPED");
19611961

19621962
OperationResult<CollectorSettings> operationResult = session
19631963
.diagnosticService()
19641964
.forCollector(collector1)
1965-
.updateCollector(collector1);
1965+
.updateCollectorSettings(collector1);
19661966

19671967
CollectorSettings result = operationResult
19681968
.getEntity();
@@ -1985,11 +1985,11 @@ OperationResult<InputStream> operationResult = session
19851985
InputStream 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.
19891989
Stopping the collector will turn off logging and begin resource export (if "includeDataSnapshots" is `true` and resourceUri not empty).
19901990
Once stopped, collectors can't be run again.
19911991
When 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

19941994
Delete log collectors you can as single or as batch operation:
19951995
```java

0 commit comments

Comments
 (0)