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
Step 1 - Flash the SSD with an operating system | |
Official RaspberryPi.org Imager Tool | |
https://bit.ly/3qmmmOd | |
Step 2 - Power On, Change Hostnames, Assign Static IPs | |
ssh ubuntu@<Initial_IP_Address> | |
sudo vim /etc/hostname | |
sudo reboot now |
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
...class definition | |
/// Set InitialExpression to any class method returning the calculated value. | |
/// In this case, I'm returning a string value. | |
Property BaseDirectoryPath As %String [ InitialExpression = {..GetBaseDirectoryForNamespace()} ]; | |
/// Returns the base directory path to use for whatever cache instance the class is being used in. | |
ClassMethod GetBaseDirectoryForNamespace() As %String | |
{ | |
SET vPath = $CASE($Namespace, |
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
ResultSetSample() | |
// Build query string | |
Set sql = "Select Value, DateTimeStamp From Spectrum_Support_Metrics.EnsPerformanceMetricsData Where " _ | |
"CheckType = 'datasize' AND " _ | |
"Detail = '/ensemble/mgr/PROD/' AND " _ | |
"DateTimeStamp > '201012170930'" | |
// Create new resultSet object to work with called "rs". It's basically a cursor. | |
// This %Prepare command executes the query contained in "sql", sets the result to "rs", and gives an "error" flag back. | |
Set rs = ##class(%ResultSet.SQL).%Prepare(sql,.error,"") |