@@ -85,9 +85,9 @@ public ObserveEnvironment(AuthenticatedUser currentUser, HttpContext httpContext
8585 List < ObsCreditsMonitor > monitorUsage1hList = new List < ObsCreditsMonitor > ( ) ;
8686 List < ObsCreditsMonitor > monitorUsage1dList = new List < ObsCreditsMonitor > ( ) ;
8787 List < ObsCreditsMonitor > monitorUsage1wList = new List < ObsCreditsMonitor > ( ) ;
88- List < ObsCreditsQuery > queryUsage1hList = new List < ObsCreditsQuery > ( ) ;
89- List < ObsCreditsQuery > queryUsage1dList = new List < ObsCreditsQuery > ( ) ;
90- List < ObsCreditsQuery > queryUsage1wList = new List < ObsCreditsQuery > ( ) ;
88+ List < ObsCreditsQuery > queryUsage1hList = new List < ObsCreditsQuery > ( ) ;
89+ List < ObsCreditsQuery > queryUsage1dList = new List < ObsCreditsQuery > ( ) ;
90+ List < ObsCreditsQuery > queryUsage1wList = new List < ObsCreditsQuery > ( ) ;
9191
9292 List < ObsCreditsTransform > transformUsage1hList = getUsageTransform ( currentUser , 1 ) ;
9393 List < ObsCreditsTransform > transformUsage1dList = getUsageTransform ( currentUser , 24 ) ;
@@ -779,6 +779,18 @@ public string RenderGraphOfRelationships(ObsObject interestingObject, List<Objec
779779
780780 break ;
781781
782+ case ObsObjectOriginType . DirectContent :
783+ sb . AppendLine ( " subgraph cluster_ds_direct_content {" ) ;
784+ sb . AppendFormat ( " label=\" {0} Direct Content ({1})\" style=\" filled\" fillcolor=\" cyan\" " , iconForGroup , allDatasetsInGroup . Count ) . AppendLine ( ) ;
785+ foreach ( ObsDataset dataset in allDatasetsInGroup )
786+ {
787+ if ( dataset == interestingObject ) continue ;
788+ sb . AppendFormat ( " {0}" , getGraphVizNodeDefinition ( dataset ) ) . AppendLine ( ) ;
789+ }
790+ sb . AppendLine ( " }" ) ;
791+
792+ break ;
793+
782794 default :
783795 break ;
784796 }
@@ -2016,7 +2028,12 @@ internal string getIconMonitorType(ObsCompositeObjectType objectType)
20162028 {
20172029 return objectType switch
20182030 {
2019- ObsCompositeObjectType . MetricThresholdMonitor => "📈" , ObsCompositeObjectType . LogThresholdMonitor => "📜" , ObsCompositeObjectType . ResourceCountThresholdMonitor => "🍫" , ObsCompositeObjectType . PromotionMonitor => "🕙" , ObsCompositeObjectType . ResourceTextValueMonitor => "🏆" , _ => "❓"
2031+ ObsCompositeObjectType . MetricThresholdMonitor => "📈" ,
2032+ ObsCompositeObjectType . LogThresholdMonitor => "📜" ,
2033+ ObsCompositeObjectType . ResourceCountThresholdMonitor => "🍫" ,
2034+ ObsCompositeObjectType . PromotionMonitor => "🕙" ,
2035+ ObsCompositeObjectType . ResourceTextValueMonitor => "🏆" ,
2036+ _ => "❓"
20202037 } ;
20212038 }
20222039
@@ -2029,7 +2046,16 @@ internal string getIconOriginType(ObsObjectOriginType obsObjectOriginType)
20292046 {
20302047 return obsObjectOriginType switch
20312048 {
2032- ObsObjectOriginType . System => "⚙️" , ObsObjectOriginType . App => "📊" , ObsObjectOriginType . User => "👋" , ObsObjectOriginType . DataStream => "🎏" , ObsObjectOriginType . Terraform => "🛤️" , ObsObjectOriginType . External => "❄️" , ObsObjectOriginType . ReferenceUpload => "⏫" , ObsObjectOriginType . SAML => "🏢" , _ => "❓"
2049+ ObsObjectOriginType . System => "⚙️" ,
2050+ ObsObjectOriginType . App => "📊" ,
2051+ ObsObjectOriginType . User => "👋" ,
2052+ ObsObjectOriginType . DataStream => "🎏" ,
2053+ ObsObjectOriginType . Terraform => "🛤️" ,
2054+ ObsObjectOriginType . External => "❄️" ,
2055+ ObsObjectOriginType . ReferenceUpload => "⏫" ,
2056+ ObsObjectOriginType . SAML => "🏢" ,
2057+ ObsObjectOriginType . DirectContent => "🔖" ,
2058+ _ => "❓"
20332059 } ;
20342060 }
20352061
@@ -2071,7 +2097,12 @@ internal string getIconUserStatus(ObsUser obsUser)
20712097 {
20722098 return obsUser . status switch
20732099 {
2074- "UserStatusActive" => "✅" , "UserStatusDisabled" => "❌" , "UserStatusIdpDisabled" => "🚫" , "UserStatusCreated" => "🔆" , "Deleted" => "📛" , _ => "❓"
2100+ "UserStatusActive" => "✅" ,
2101+ "UserStatusDisabled" => "❌" ,
2102+ "UserStatusIdpDisabled" => "🚫" ,
2103+ "UserStatusCreated" => "🔆" ,
2104+ "Deleted" => "📛" ,
2105+ _ => "❓"
20752106 } ;
20762107 }
20772108
@@ -2111,23 +2142,47 @@ internal string getIconWidgetType(ObsStage obsStage)
21112142 {
21122143 return obsStage . type switch
21132144 {
2114- "table" => "📑" , "timeseries" => "📉" , "bar" => "📊" , "circular" => "🥧" , "stacked_area" => "🗻" , "singlevalue" => "#️⃣" , "list" => "📜" , "valueovertime" => "⏳" , "gantt" => "📐" , "flame" => "🔥" , _ => ""
2145+ "table" => "📑" ,
2146+ "timeseries" => "📉" ,
2147+ "bar" => "📊" ,
2148+ "circular" => "🥧" ,
2149+ "stacked_area" => "🗻" ,
2150+ "singlevalue" => "#️⃣" ,
2151+ "list" => "📜" ,
2152+ "valueovertime" => "⏳" ,
2153+ "gantt" => "📐" ,
2154+ "flame" => "🔥" ,
2155+ _ => "❓"
21152156 } ;
21162157 }
21172158
21182159 internal string getIconParameterType ( ObsParameter obsParameter )
21192160 {
21202161 return obsParameter . viewType switch
21212162 {
2122- "resource-input" => "🛆" , "single-select" => "⛛" , "text" => "🔤" , "numeric" => "#️⃣" , "input" => "🌫️" , _ => "❓"
2163+ "resource-input" => "🛆" ,
2164+ "single-select" => "⛛" ,
2165+ "text" => "🔤" ,
2166+ "numeric" => "#️⃣" ,
2167+ "input" => "🌫️" ,
2168+ _ => "❓"
21232169 } ;
21242170 }
21252171
21262172 internal string getIconFieldType ( ObsFieldDefinition obsFieldDefinition )
21272173 {
21282174 return obsFieldDefinition . type switch
21292175 {
2130- "timestamp" => "🕘" , "duration" => "⏰" , "string" => "📝" , "int64" => "⑽" , "float64" => "⒑" , "object" => "🎛" , "variant" => "💫" , "array" => "🔢" , "bool" => "❓" , _ => " "
2176+ "timestamp" => "🕘" ,
2177+ "duration" => "⏰" ,
2178+ "string" => "📝" ,
2179+ "int64" => "⑽" ,
2180+ "float64" => "⒑" ,
2181+ "object" => "🎛" ,
2182+ "variant" => "💫" ,
2183+ "array" => "🔢" ,
2184+ "bool" => "❓" ,
2185+ _ => " "
21312186 } ;
21322187 }
21332188
0 commit comments