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
ConnectApi.SmartDataDiscoveryPredictInputRecords input = new ConnectApi.SmartDataDiscoveryPredictInputRecords(); | |
input.predictionDefinition = '0ORf0000000xxxxxxx'; | |
input.records = new List<Id>{'a291Y000002Exxxxxxx'}; | |
ConnectApi.SmartDataDiscoveryPrediction request = | |
ConnectApi.SmartDataDiscovery.predict(input); | |
// Everything up to here so far so good | |
System.debug('ConnectApi.SmartDataDiscoveryPrediction'); | |
System.debug(JSON.serializePretty(request)); |
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
#!/usr/bin/env ruby | |
require 'net/telnet' | |
cache_dump_limit = 100 | |
localhost = Net::Telnet::new("Host" => "localhost", "Port" => 11211, "Timeout" => 3) | |
slab_ids = [] | |
localhost.cmd("String" => "stats items", "Match" => /^END/) do |c| | |
matches = c.scan(/STAT items:(\d+):/) | |
slab_ids += matches | |
end |