REST API 或 Java SDK,哪个更适合监控 Oracle Cloud Compute VM?

REST API or Java SDK, Which is preferable for monitoring Oracle Cloud Compute VM?

哪个使过程更简单,代码行数最少且易于使用。

Java SDK will be easier, assuming you are used to coding in Java. With using the REST API directly, you have to managing the signing logic yourself, as well as be familiar with HTTP semantics like URI, path, query params, headers, body, etc. The Java SDK (and the other OCI SDKs) 抽象,一切都为你而去。