This file contains hidden or 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
def getChangeSetStatus(self): | |
hourlyTimestamp = datetime.fromtimestamp(datetime.utcnow().timestamp() - (3600 * 6)) | |
dtFormat = '%Y-%m-%dT%H:%M:%S-00:00%z' | |
query = f"SELECT EventType, LogDate, LogFileFieldNames, LogFile, Interval FROM EventLogFile WHERE EventType='ChangeSetOperation' AND Interval='Hourly' AND LogDate >= {hourlyTimestamp.strftime(dtFormat)}" | |
url = f"{self._auth['instanceUrl']}/services/data/v{apiVersion}/query/?q={quote_plus(query)}" | |
eventTypeLogResult = self._client.request('GET', url).json() | |
for result in eventTypeLogResult['records']: | |
This file contains hidden or 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
FROM node:dubnium-alpine3.10 | |
ARG TARGET_USERNAME | |
ARG SFDX_AUTH_URL | |
WORKDIR /app | |
RUN apk update | |
RUN apk add --no-cache \ | |
bash \ |
This file contains hidden or 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
def delete(self): | |
print(f"Deleting logs from instance...") | |
if self.apexLogIds: | |
logIdsCsvFile = f"{self._logdir}/apex-logids.csv" | |
with open(logIdsCsvFile, 'w') as csvwriter_file: | |
csvwriter = csv.writer(csvwriter_file) | |
csvwriter.writerow(['Id']) | |
for id in self.apexLogIds: | |
csvwriter.writerow([id]) |
This file contains hidden or 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
# initial traceflag setting | |
body = { | |
'StartDate': f"{startDate}", | |
'ExpirationDate': f"{expiryDate}", | |
'ApexCode': 'FINEST', | |
'ApexProfiling': 'FINEST', | |
'Callout': 'FINEST', | |
'Database': 'FINEST', | |
'DebugLevelId': debugLevelId, | |
'System': 'FINE', |