This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
// Retain count of object | |
var object = NSObject() | |
CFGetRetainCount(object) | |
let nextObject = object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------------- ANALYZA CHYBOVOSTI VZHLEDEM KE SLUŽBĚ --------------------------------------- | |
--> extrakce zasazene sluzby (`serviceName`) podle jeji domeny (`requestDomain`) | |
-- DATA_CENTER: | |
-- * EU (eu1.concursolutions.com): cetnost statuscodes a errorrate kodu 500 dle service_name v REQUEST v EU domene pro vsechny entity za celou dobu | |
-- * US (www.concursolutions.com): cetnost statuscodes a errorrate kodu 500 dle service_name v REQUEST v US domene pro vsechny entity za celou dobu | |
SELECT UPPER((SPLIT_PART(REQUESTPATH, '/', 3))) AS SERVICE_NAME | |
, COUNT(*) AS COUNT_ALL | |
, COUNT(CASE WHEN STATUSCODE = 200 THEN 1 ELSE NULL END) AS COUNT_200 |