010 extended debug view
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<cfset request.RECORDS_PER_PAGE=500/>
|
<cfset request.RECORDS_PER_PAGE=500/>
|
||||||
<cfset request.APP_VERSION="0.00.009"/>
|
<cfset request.APP_VERSION="0.00.010"/>
|
||||||
<cfset request.STAND=getStand()/>
|
<cfset request.STAND=getStand()/>
|
||||||
|
|
||||||
<cflock scope="application" type="readonly" timeout=3>
|
<cflock scope="application" type="readonly" timeout=3>
|
||||||
|
|||||||
@@ -76,11 +76,17 @@
|
|||||||
group by tenant.wzcode, vdc.name
|
group by tenant.wzcode, vdc.name
|
||||||
order by tenant.wzcode, vdc.name;
|
order by tenant.wzcode, vdc.name;
|
||||||
</cfquery>
|
</cfquery>
|
||||||
<!--- <cfdump var=#qComputing#/> --->
|
|
||||||
|
<cfif isDefined("DEBUG")>
|
||||||
|
<cfdump var=#qComputing#/>
|
||||||
|
<cfflush/>
|
||||||
|
</cfif>
|
||||||
|
|
||||||
<cfquery name="qComputingAge" datasource="billing-vc">
|
<cfquery name="qComputingAge" datasource="billing-vc">
|
||||||
select max(capacity_resource.timestamp) as dt_load from ngcloud_ru.capacity_resource
|
select max(capacity_resource.timestamp) as dt_load from ngcloud_ru.capacity_resource
|
||||||
</cfquery>
|
</cfquery>
|
||||||
|
|
||||||
|
|
||||||
<!--- переделать storage_profile_types с расшифровкой ssd, sata, можно прямо до каталожного кода --->
|
<!--- переделать storage_profile_types с расшифровкой ssd, sata, можно прямо до каталожного кода --->
|
||||||
<cfquery name="qStorage" datasource="billing-vc">
|
<cfquery name="qStorage" datasource="billing-vc">
|
||||||
select 'WZ'||to_char(tenant.wzcode,'FM00000') as wz, vdc.name as vdc_name,
|
select 'WZ'||to_char(tenant.wzcode,'FM00000') as wz, vdc.name as vdc_name,
|
||||||
@@ -112,7 +118,11 @@
|
|||||||
<cfquery name="qStorageAge" datasource="billing-vc">
|
<cfquery name="qStorageAge" datasource="billing-vc">
|
||||||
select max(capacity_storage.timestamp) as dt_load from ngcloud_ru.capacity_storage
|
select max(capacity_storage.timestamp) as dt_load from ngcloud_ru.capacity_storage
|
||||||
</cfquery>
|
</cfquery>
|
||||||
<!--- <cfdump var=#qStorage#/> --->
|
|
||||||
|
<cfif isDefined("DEBUG")>
|
||||||
|
<cfdump var=#qStorage#/>
|
||||||
|
<cfflush/>
|
||||||
|
</cfif>
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
"placement" "size_gb" "get_10k" "put_10k" "bytes_sent_gb"
|
"placement" "size_gb" "get_10k" "put_10k" "bytes_sent_gb"
|
||||||
@@ -142,7 +152,12 @@ HOT_FREE_LIMIT 1 10 1 100
|
|||||||
group by bucket_stat.owner, bucket_stat.placement_id
|
group by bucket_stat.owner, bucket_stat.placement_id
|
||||||
order by bucket_stat.owner, bucket_stat.placement_id;
|
order by bucket_stat.owner, bucket_stat.placement_id;
|
||||||
</cfquery>
|
</cfquery>
|
||||||
<!--- <cfdump var=#qS3Vol#/> --->
|
|
||||||
|
<cfif isDefined("DEBUG")>
|
||||||
|
<cfdump var=#qS3Vol#/>
|
||||||
|
<cfflush/>
|
||||||
|
</cfif>
|
||||||
|
|
||||||
<cfquery name="qS3VolAge" datasource="billing-s3">
|
<cfquery name="qS3VolAge" datasource="billing-s3">
|
||||||
select max(timestamp_addition) as dt_load from s3billing.bucket_stat
|
select max(timestamp_addition) as dt_load from s3billing.bucket_stat
|
||||||
</cfquery>
|
</cfquery>
|
||||||
@@ -221,10 +236,16 @@ select
|
|||||||
group by user_info.name, bucket_info.placement_id
|
group by user_info.name, bucket_info.placement_id
|
||||||
order by user_info.name, bucket_info.placement_id;
|
order by user_info.name, bucket_info.placement_id;
|
||||||
</cfquery>
|
</cfquery>
|
||||||
|
|
||||||
|
<cfif isDefined("DEBUG")>
|
||||||
|
<cfdump var=#qS3OpsTrf#/>
|
||||||
|
<cfflush/>
|
||||||
|
</cfif>
|
||||||
|
|
||||||
<cfquery name="qS3OpsTrfAge" datasource="billing-s3">
|
<cfquery name="qS3OpsTrfAge" datasource="billing-s3">
|
||||||
select max(time) as dt_load from s3billing.usage_bucket_by_user
|
select max(time) as dt_load from s3billing.usage_bucket_by_user
|
||||||
</cfquery>
|
</cfquery>
|
||||||
<!--- <cfdump var=#qS3OpsTrf#/> --->
|
|
||||||
|
|
||||||
<cfquery name="qUnifiedMetric" dbType="query">
|
<cfquery name="qUnifiedMetric" dbType="query">
|
||||||
select wz, code || '.vcpu-m' as code, core_h as raw_metric, core_h as metric, core_h as chargeable_metric from qComputing
|
select wz, code || '.vcpu-m' as code, core_h as raw_metric, core_h as metric, core_h as chargeable_metric from qComputing
|
||||||
|
|||||||
Reference in New Issue
Block a user