Skip to content

Commit

Permalink
Fix api prefix error
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeon-inno committed Sep 12, 2024
1 parent d6e66b2 commit 038995b
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,58 +59,58 @@ public Object deleteTarget(@PathVariable String nsId, @PathVariable String mciId
}

// monitoring item api
@GetMapping(Constants.PREFIX_V1 + Constants.TARGET_ITEM_PATH)
@GetMapping(Constants.TARGET_ITEM_PATH)
Object getItemList(@PathVariable String nsId, @PathVariable String mciId, @PathVariable String targetId) {
return monitoringClient.getItemList(nsId, mciId, targetId);
}
@PostMapping(Constants.PREFIX_V1 + Constants.TARGET_ITEM_PATH)
@PostMapping(Constants.TARGET_ITEM_PATH)
Object insertItem(@PathVariable String nsId, @PathVariable String mciId, @PathVariable String targetId, @RequestBody Object monitoringConfigInfo) {
return monitoringClient.insertItem(nsId, mciId, targetId, monitoringConfigInfo);
}
@PutMapping(Constants.PREFIX_V1 + Constants.TARGET_ITEM_PATH)
@PutMapping(Constants.TARGET_ITEM_PATH)
Object updateItem(@PathVariable String nsId, @PathVariable String mciId, @PathVariable String targetId, @RequestBody Object monitoringConfigInfo) {
return monitoringClient.updateItem(nsId, mciId, targetId, monitoringConfigInfo);
}
@DeleteMapping(Constants.PREFIX_V1 + Constants.TARGET_ITEM_PATH + "/{itemSeq}")
@DeleteMapping(Constants.TARGET_ITEM_PATH + "/{itemSeq}")
Object deleteItem(@PathVariable String nsId, @PathVariable String mciId, @PathVariable String targetId, @PathVariable Long itemSeq) {
return monitoringClient.deleteItem(nsId, mciId, targetId, itemSeq);
}

// monitoring storage api
@GetMapping(Constants.PREFIX_V1 + Constants.TARGET_STORAGE_PATH)
@GetMapping(Constants.TARGET_STORAGE_PATH)
Object getStorageList(@PathVariable String nsId, @PathVariable String mciId, @PathVariable String targetId) {
return monitoringClient.getStorageList(nsId, mciId, targetId);
}
@PostMapping(Constants.PREFIX_V1 + Constants.TARGET_STORAGE_PATH)
@PostMapping(Constants.TARGET_STORAGE_PATH)
Object insertStorage(@PathVariable String nsId, @PathVariable String mciId, @PathVariable String targetId, @RequestBody Object monitoringConfigInfo) {
return monitoringClient.insertStorage(nsId, mciId, targetId, monitoringConfigInfo);
}
@PutMapping(Constants.PREFIX_V1 + Constants.TARGET_STORAGE_PATH)
@PutMapping(Constants.TARGET_STORAGE_PATH)
Object updateStorage(@PathVariable String nsId, @PathVariable String mciId, @PathVariable String targetId, @RequestBody Object monitoringConfigInfo) {
return monitoringClient.updateStorage(nsId, mciId, targetId, monitoringConfigInfo);
}
@DeleteMapping(Constants.PREFIX_V1 + Constants.TARGET_STORAGE_PATH + "/{storageSeq}")
@DeleteMapping(Constants.TARGET_STORAGE_PATH + "/{storageSeq}")
Object deleteStorage(@PathVariable String nsId, @PathVariable String mciId, @PathVariable String targetId, @PathVariable Long storageSeq) {
return monitoringClient.deleteStorage(nsId, mciId, targetId, storageSeq);
}

// monitoring influxdb metric api
@GetMapping(Constants.PREFIX_V1 + Constants.INFLUXDB_PATH)
@GetMapping(Constants.INFLUXDB_PATH)
public Object getInfluxDBList() {
return monitoringClient.getInfluxDBList();
}

@GetMapping(Constants.PREFIX_V1 + Constants.INFLUXDB_PATH + "/{influxDBSeq}/measurement")
@GetMapping(Constants.INFLUXDB_PATH + "/{influxDBSeq}/measurement")
public Object getInfluxDBFields(@PathVariable Long influxDBSeq) {
return monitoringClient.getInfluxDBFields(influxDBSeq);
}

@GetMapping(Constants.PREFIX_V1 + Constants.INFLUXDB_PATH + "/{influxDBSeq}/tag")
@GetMapping(Constants.INFLUXDB_PATH + "/{influxDBSeq}/tag")
public Object getInfluxDBTags(@PathVariable Long influxDBSeq) {
return monitoringClient.getInfluxDBTags(influxDBSeq);
}

@PostMapping(Constants.PREFIX_V1 + Constants.INFLUXDB_PATH + "/{influxDBSeq}/metric")
@PostMapping(Constants.INFLUXDB_PATH + "/{influxDBSeq}/metric")
public Object getInfluxDBMetrics(@PathVariable Long influxDBSeq, @RequestBody Object metricsInfo) {
return monitoringClient.getInfluxDBMetrics(influxDBSeq, metricsInfo);
}
Expand Down

0 comments on commit 038995b

Please sign in to comment.