|
| 1 | +package ccmcommons |
| 2 | + |
| 3 | +const CCMPerspectiveGridQuery = ` |
| 4 | + query FetchperspectiveGrid( |
| 5 | + $filters: [QLCEViewFilterWrapperInput], |
| 6 | + $groupBy: [QLCEViewGroupByInput], |
| 7 | + $limit: Int, |
| 8 | + $offset: Int, |
| 9 | + $aggregateFunction: [QLCEViewAggregationInput], |
| 10 | + $isClusterOnly: Boolean!, |
| 11 | + $isClusterHourlyData: Boolean = null, |
| 12 | + $preferences: ViewPreferencesInput |
| 13 | + ) { |
| 14 | + perspectiveGrid( |
| 15 | + aggregateFunction: $aggregateFunction |
| 16 | + filters: $filters |
| 17 | + groupBy: $groupBy |
| 18 | + limit: $limit |
| 19 | + offset: $offset |
| 20 | + preferences: $preferences |
| 21 | + isClusterHourlyData: $isClusterHourlyData |
| 22 | + sortCriteria: [{sortType: COST, sortOrder: DESCENDING}] |
| 23 | + ) { |
| 24 | + data { |
| 25 | + name |
| 26 | + id |
| 27 | + cost |
| 28 | + costTrend |
| 29 | + __typename |
| 30 | + } |
| 31 | + __typename |
| 32 | + } |
| 33 | + perspectiveTotalCount( |
| 34 | + filters: $filters |
| 35 | + groupBy: $groupBy |
| 36 | + isClusterQuery: $isClusterOnly |
| 37 | + isClusterHourlyData: $isClusterHourlyData |
| 38 | + ) |
| 39 | + }` |
| 40 | + |
| 41 | +const CCMPerspectiveTimeSeriesQuery = ` |
| 42 | + query FetchPerspectiveTimeSeries( |
| 43 | + $filters: [QLCEViewFilterWrapperInput], |
| 44 | + $groupBy: [QLCEViewGroupByInput], |
| 45 | + $limit: Int, |
| 46 | + $preferences: ViewPreferencesInput, |
| 47 | + $isClusterHourlyData: Boolean = null |
| 48 | + ) { |
| 49 | + perspectiveTimeSeriesStats( |
| 50 | + filters: $filters |
| 51 | + groupBy: $groupBy |
| 52 | + limit: $limit |
| 53 | + preferences: $preferences |
| 54 | + isClusterHourlyData: $isClusterHourlyData |
| 55 | + aggregateFunction: [{operationType: SUM, columnName: "cost"}] |
| 56 | + sortCriteria: [{sortType: COST, sortOrder: DESCENDING}] |
| 57 | + ) { |
| 58 | + stats { |
| 59 | + values { |
| 60 | + key { |
| 61 | + id |
| 62 | + name |
| 63 | + type |
| 64 | + __typename |
| 65 | + } |
| 66 | + value |
| 67 | + __typename |
| 68 | + } |
| 69 | + time |
| 70 | + __typename |
| 71 | + } |
| 72 | + __typename |
| 73 | + } |
| 74 | + } |
| 75 | + ` |
| 76 | + |
| 77 | +const CCMPerspectiveSummaryWithBudgetQuery = ` |
| 78 | + query FetchPerspectiveDetailsSummaryWithBudget( |
| 79 | + $filters: [QLCEViewFilterWrapperInput], |
| 80 | + $aggregateFunction: [QLCEViewAggregationInput], |
| 81 | + $isClusterQuery: Boolean, |
| 82 | + $isClusterHourlyData: Boolean = null, |
| 83 | + $groupBy: [QLCEViewGroupByInput], |
| 84 | + $preferences: ViewPreferencesInput |
| 85 | + ) { |
| 86 | + perspectiveTrendStats( |
| 87 | + filters: $filters |
| 88 | + aggregateFunction: $aggregateFunction |
| 89 | + isClusterQuery: $isClusterQuery |
| 90 | + isClusterHourlyData: $isClusterHourlyData |
| 91 | + groupBy: $groupBy |
| 92 | + preferences: $preferences |
| 93 | + ) { |
| 94 | + cost { |
| 95 | + statsDescription |
| 96 | + statsLabel |
| 97 | + statsTrend |
| 98 | + statsValue |
| 99 | + value |
| 100 | + __typename |
| 101 | + } |
| 102 | + idleCost { |
| 103 | + statsLabel |
| 104 | + statsValue |
| 105 | + value |
| 106 | + __typename |
| 107 | + } |
| 108 | + unallocatedCost { |
| 109 | + statsLabel |
| 110 | + statsValue |
| 111 | + value |
| 112 | + __typename |
| 113 | + } |
| 114 | + utilizedCost { |
| 115 | + statsLabel |
| 116 | + statsValue |
| 117 | + value |
| 118 | + __typename |
| 119 | + } |
| 120 | + efficiencyScoreStats { |
| 121 | + statsLabel |
| 122 | + statsTrend |
| 123 | + statsValue |
| 124 | + __typename |
| 125 | + } |
| 126 | + __typename |
| 127 | + } |
| 128 | + perspectiveForecastCost( |
| 129 | + filters: $filters |
| 130 | + aggregateFunction: $aggregateFunction |
| 131 | + isClusterQuery: $isClusterQuery |
| 132 | + isClusterHourlyData: $isClusterHourlyData |
| 133 | + groupBy: $groupBy |
| 134 | + preferences: $preferences |
| 135 | + ) { |
| 136 | + cost { |
| 137 | + statsLabel |
| 138 | + statsTrend |
| 139 | + statsValue |
| 140 | + statsDescription |
| 141 | + value |
| 142 | + __typename |
| 143 | + } |
| 144 | + __typename |
| 145 | + } |
| 146 | + } |
| 147 | +` |
0 commit comments