Browse Source

add missing getter (#84912)

- Have you signed the [contributor license agreement](https://www.elastic.co/contributor-agreement)? - **YES**
- Have you followed the [contributor guidelines](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md)? - **YES**
- If submitting code, have you built your formula locally prior to submission with `gradle check`? 
- If submitting code, is your pull request against master? Unless there is a good reason otherwise, we prefer pull requests against master and will backport as needed. - **YES**
- If submitting code, have you checked that your submission is for an [OS and architecture that we support](https://www.elastic.co/support/matrix#show_os)? - **N/A**
- If you are submitting this code for a class then read our [policy](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md#contributing-as-part-of-a-class) for that. - **NO**
Gabi Davar 3 years ago
parent
commit
f2dd32e236
1 changed files with 4 additions and 0 deletions
  1. 4 0
      server/src/main/java/org/elasticsearch/monitor/fs/FsInfo.java

+ 4 - 0
server/src/main/java/org/elasticsearch/monitor/fs/FsInfo.java

@@ -259,6 +259,10 @@ public class FsInfo implements Iterable<FsInfo.Path>, Writeable, ToXContentFragm
             out.writeLong(previousIOTime);
         }
 
+        public String getDeviceName() {
+            return deviceName;
+        }
+
         public long operations() {
             if (previousReadsCompleted == -1 || previousWritesCompleted == -1) return -1;