llama.files.slack package¶
FileHandler
classes that log file uploads to Slack.
Slack API documentation: https://api.slack.com/methods/chat.postMessage https://api.slack.com/messaging/composing/formatting#
(Link to permissions in top right of the above pages.)
-
class
llama.files.slack.
RctSlkLmaLVAlertJSON
¶ Bases:
llama.files.slack.SlackReceiptLlama
-
DEPENDENCIES
= (<class 'llama.files.lvalert_json.LVAlertJSON'>, <class 'llama.files.skymap_info.SkymapInfo'>)¶
-
FILENAME
= 'rct_slk_lma_lvalert.json.json'¶
-
FILENAME_FMT
= 'rct_slk_lma_{}.json'¶
-
MANIFEST_TYPES
= (<class 'llama.files.slack.RctSlkLmaLVAlertJSON'>,)¶
-
UPLOAD
¶ alias of
llama.files.lvalert_json.LVAlertJSON
-
UR_DEPENDENCIES
= (<class 'llama.files.lvalert_json.LVAlertJSON'>, <class 'llama.files.skymap_info.SkymapInfo'>)¶
-
UR_DEPENDENCY_TREE
= frozenset({<class 'llama.files.lvalert_json.LVAlertJSON'>})¶
-
class_vetoes
= ()¶
-
-
class
llama.files.slack.
RctSlkLmaLvcGcnXml
¶ Bases:
llama.files.slack.SlackReceiptLlama
-
DEPENDENCIES
= (<class 'llama.files.lvc_gcn_xml.LvcGcnXml'>, <class 'llama.files.skymap_info.SkymapInfo'>)¶
-
FILENAME
= 'rct_slk_lma_lvc_gcn.xml.json'¶
-
FILENAME_FMT
= 'rct_slk_lma_{}.json'¶
-
MANIFEST_TYPES
= (<class 'llama.files.slack.RctSlkLmaLvcGcnXml'>,)¶
-
UPLOAD
¶ alias of
llama.files.lvc_gcn_xml.LvcGcnXml
-
UR_DEPENDENCIES
= (<class 'llama.files.lvc_gcn_xml.LvcGcnXml'>, <class 'llama.files.skymap_info.SkymapInfo'>)¶
-
UR_DEPENDENCY_TREE
= frozenset({<class 'llama.files.lvc_gcn_xml.LvcGcnXml'>})¶
-
class_vetoes
= ()¶
-
-
class
llama.files.slack.
RctSlkLmaLvcRetractionXml
¶ Bases:
llama.files.slack.SlackReceiptLlama
-
DEPENDENCIES
= (<class 'llama.files.lvc_gcn_xml.LvcRetractionXml'>, <class 'llama.files.skymap_info.SkymapInfo'>)¶
-
FILENAME
= 'rct_slk_lma_lvc_gcn_retraction.xml.json'¶
-
FILENAME_FMT
= 'rct_slk_lma_{}.json'¶
-
MANIFEST_TYPES
= (<class 'llama.files.slack.RctSlkLmaLvcRetractionXml'>,)¶
-
UPLOAD
¶
-
UR_DEPENDENCIES
= (<class 'llama.files.lvc_gcn_xml.LvcRetractionXml'>, <class 'llama.files.skymap_info.SkymapInfo'>)¶
-
UR_DEPENDENCY_TREE
= frozenset({<class 'llama.files.lvc_gcn_xml.LvcRetractionXml'>})¶
-
class_vetoes
= ()¶
-
-
class
llama.files.slack.
RctSlkLmaSkymapInfo
¶ Bases:
llama.files.slack.SlackReceiptLlama
-
DEPENDENCIES
= (<class 'llama.files.skymap_info.SkymapInfo'>,)¶
-
FILENAME
= 'rct_slk_lma_skymap_info.json.json'¶
-
FILENAME_FMT
= 'rct_slk_lma_{}.json'¶
-
MANIFEST_TYPES
= (<class 'llama.files.slack.RctSlkLmaSkymapInfo'>,)¶
-
UPLOAD
¶ alias of
llama.files.skymap_info.SkymapInfo
-
UR_DEPENDENCIES
= (<class 'llama.files.skymap_info.SkymapInfo'>,)¶
-
UR_DEPENDENCY_TREE
= frozenset({<class 'llama.files.skymap_info.SkymapInfo'>})¶
-
class_vetoes
= ()¶
-
-
class
llama.files.slack.
SlackReceipt
¶ Bases:
llama.com.utils.UploadReceipt
,llama.filehandler.JSONFile
A log file created after an upload attempt to Slack. Use these filehandlers to upload files to slack. Additional vetoes that turn a specific upload receipt off are specified in
VETOES
.-
ORGANIZATION
= None¶
-
property
comment
¶ An explanation of this upload
FileHandler
to be printed to team slack.
-
classmethod
set_class_attributes
(subclass)¶ See
UploadReceipt.set_class_attributes
; this method first sets theFILENAME_FMT
andCLASSNAME_FMT
attributes based onsubclass.ORGANIZATION
. Also addsSkymapInfo
tosubclass.DEPENDENCIES
if it is not already a member and setsclass_vetoes
to the ones defined for this organization.
-
property
upload_title
¶ Print a title for this upload.
-
-
class
llama.files.slack.
SlackReceiptIcecube
¶ Bases:
llama.files.slack.SlackReceipt
A
SlackReceipt
for organizationIceCube
.-
CLASSNAME_FMT
= 'RctSlkI3{}'¶
-
ORGANIZATION
= 'IceCube'¶
-
-
class
llama.files.slack.
SlackReceiptLlama
¶ Bases:
llama.files.slack.SlackReceipt
A
SlackReceipt
for organizationLLAMA
.-
CLASSNAME_FMT
= 'RctSlkLma{}'¶
-
ORGANIZATION
= 'LLAMA'¶
-
-
llama.files.slack.
icecube_upload_flag_false
(eventdir)¶ Return whether a trigger directory has its “ICECUBE_UPLOAD” flag set to “false”.