在azure门户上是否可以使用任何方法或指标来获取所有逻辑分区及其分配的大小和可用大小的详细信息的列表。 在指标的“存储”部分中,我只能看到100个逻辑分区中的几个分区。
答案 0 :(得分:0)
正如您在问题中提到的,azure门户指标仅显示集合中的前几个分区。
我发现Collection Partition - List Usages REST API可能符合您的要求。
您可以基于class DetailTvShowViewModel(idTvShow: Int, application: Application): AndroidViewModel(application) {
private var viewModelJob = Job()
private val coroutineScope = CoroutineScope(viewModelJob + Dispatchers.Main)
private val _detailTvShow = MutableLiveData<DetailsTvShowResponse>()
val detailTvShow: LiveData<DetailsTvShowResponse>
get() = _detailTvShow
private val _navigateToHomepage = MutableLiveData<Boolean>()
val navigateToHomepage: LiveData<Boolean>
get() = _navigateToHomepage
init {
getDetailTvShow(idTvShow)
}
private fun getDetailTvShow(idTvShow: Int) {
coroutineScope.launch {
val getDetailTvShowDeffered = Api.retrofitService.getDetailTvShowAsync(tvId = idTvShow)
try {
val listResult = getDetailTvShowDeffered.await()
if (listResult.nameDetailsTvShow != null) {
_detailTvShow.value = listResult
} else {
Log.i("DetailTvShowViewModel", "Completed : ${getDetailTvShowDeffered.isCompleted}" )
}
} catch (t: Throwable) {
Log.i("DetailTvShowViewModel", "message : ${t.message.toString()}")
Log.i("DetailTvShowViewModel", "localizedMessage : ${t.localizedMessage}")
Log.i("DetailTvShowViewModel", "printStackTrace : ${t.printStackTrace()}")
_detailTvShow.value = null
}
}
}
// val displayGenreList: LiveData<String> = Transformations.map(detailTvShow) { response ->
// val genreName = response.genresDetailsTvShow?.map { it.nameGenreMovie }
// "Genre : ${genreName?.joinToString(separator = ", ")}"
// }
//
// val displayRating: LiveData<String> = Transformations.map(detailTvShow) {
// "${it.ratingDetailsTvShow} Out of ${it.ratingCountDetailsTvShow} review"
// }
//
// val displayNumberOfSeason: LiveData<String> = Transformations.map(detailTvShow) {
// it.numberOfSeasonsDetailsTvShow.toString()
// }
// val displayNumberOfEpisodes: LiveData<String> = Transformations.map(detailTvShow) {
// it.numberOfEpisodesDetailsTvShow.toString()
// }
fun onHomepageClicked() {
_navigateToHomepage.value = true
}
fun onHomepageClickedComplete() {
_navigateToHomepage.value = false
}
override fun onCleared() {
super.onCleared()
viewModelJob.cancel()
}
}
对象查看一些指标