Skip to content

Commit c3c2c31

Browse files
committed
added backend for weathertop2
1 parent 76737ab commit c3c2c31

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

.tools/weathertop2/backend/src/main/java/com/weathertop/service/EcsEventBridgeInspector.java

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -249,52 +249,5 @@ private String humanTime(String expr) {
249249
}
250250
return "Schedule: " + expr;
251251
}
252-
253-
public static void main(String[] args) {
254-
try {
255-
256-
/*
257-
// PHP
258-
String clusterName = "MyPHPWeathertopCluster";
259-
String taskDefinitionFamily = "WeathertopPhp";
260-
String logGroup = "WeathertopPhpContainerLogs";
261-
String ruleName = "ecs-php-schedule";
262-
263-
// jAVA
264-
String clusterName = "MyJavaWeathertopCluster";
265-
String taskDefinitionFamily = "WeathertopJava";
266-
String logGroup = "WeathertopJavaLogs";
267-
String ruleName = "ecs-java-schedule"; // exact rule name now
268-
269-
*/
270-
String clusterName = "MyKotlinWeathertopCluster";
271-
String taskDefinitionFamily = "WeathertopKotlin";
272-
String logGroup = "WeathertopKotlinContainerLogs";
273-
String ruleName = "ecs-kotlin-schedule";
274-
275-
276-
// String clusterName = "MyPythonWeathertopCluster";
277-
// String taskDefinitionFamily = "WeathertopPython";
278-
// String logGroup = "WeathertopPythonContainerLogs";
279-
// String ruleName = "ecs-python-schedule";
280-
281-
282-
EcsEventBridgeInspector inspector = new EcsEventBridgeInspector(
283-
clusterName,
284-
taskDefinitionFamily,
285-
logGroup,
286-
ruleName
287-
);
288-
289-
Map<String, Object> data = inspector.inspect();
290-
291-
Gson gson = new GsonBuilder().setPrettyPrinting().create();
292-
String json = gson.toJson(data);
293-
System.out.println(json);
294-
295-
} catch (Exception e) {
296-
e.printStackTrace();
297-
}
298-
}
299252
}
300253

0 commit comments

Comments
 (0)