@@ -151,10 +151,10 @@ func CompareResourcesInLogsAndKubeAPI(K8sClient *kubernetes.Clientset, logsClien
151151 return CompareResourcesHelper (logsClient , resourceID , query , resources )
152152}
153153
154- // QueryContainerLogV2CountsByComputer queries the Log Analytics workspace for
154+ // GetComputerFromContainerLog queries the Log Analytics workspace for
155155// the number of ContainerLogV2 rows ingested per node (Computer) within the
156156// given time window (e.g. "5m"). Returns a map keyed by lowercased Computer
157- // name.
157+ // name with the row count as value .
158158//
159159// ContainerLogV2 and ContainerLog are mutually exclusive — a cluster writes
160160// to one or the other based on its schema configuration. This helper only
@@ -163,7 +163,7 @@ func CompareResourcesInLogsAndKubeAPI(K8sClient *kubernetes.Clientset, logsClien
163163// query that returns zero rows is treated as a real ingestion failure and
164164// surfaced as an empty map; callers must NOT interpret that as a reason to
165165// fall back, otherwise V2 ingestion failures would be silently masked.
166- func QueryContainerLogV2CountsByComputer (logsClient * azquery.LogsClient , resourceID string , window string ) (map [string ]int64 , error ) {
166+ func GetComputerFromContainerLog (logsClient * azquery.LogsClient , resourceID string , window string ) (map [string ]int64 , error ) {
167167 counts , v2Err := queryCountsByComputer (logsClient , resourceID , "ContainerLogV2" , window )
168168 if v2Err == nil {
169169 return counts , nil
0 commit comments