Skip to content

Commit

Permalink
[Fix partially #133] Add fhaBasedoperationalFailureRateService config…
Browse files Browse the repository at this point in the history
…uration parameter
  • Loading branch information
kostobog committed Jul 2, 2024
1 parent 258951f commit 241041c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@
public class OperationalDataConfig {

public static final String MIN_OPERATIONAL_TIME_PARAM = "minOperationalTime";
public static final String FHA_TYPES_PARAM = "fha";

protected Double minOperationalHours;
protected String operationalFailureRateService;
protected String fhaBasedoperationalFailureRateService;

@Autowired
public OperationalDataConfig(Environment env) {
operationalFailureRateService = env.getProperty("operationalFailureRateService");
fhaBasedoperationalFailureRateService = env.getProperty("fhaBasedoperationalFailureRateService");
}
}
3 changes: 2 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ spring:
operational.data.filter:
min-operational-hours: 200

operationalFailureRateService: http://localhost:9998/stats/failure-rate
operationalFailureRateService: http://localhost:9998/stats/failure-rate
fhaBasedoperationalFailureRateService: http://localhost:9998/stats/fha-failure-rate

0 comments on commit 241041c

Please sign in to comment.