app/services/hearings/reminder_service.rb
# Remove this when we enable feature to allow reminder for all hearings
Remove this when we enable feature to allow reminder for all hearings
Remove this when we enable feature to allow reminder for all hearings
def send_to_datadog(type)
    DataDogService.increment_counter(
      app_name: Constants.DATADOG_METRICS.HEARINGS.APP_NAME,
      metric_group: Constants.DATADOG_METRICS.HEARINGS.REMINDER_EMAILS_GROUP_NAME,
      metric_name: "emails.would_be_sent",
      attrs: {
        reminder_type: type,
        hearing_id: hearing.id,
        request_type: hearing.hearing_request_type,
        hearing_type: hearing.class.name
      }
    )
  end
def send_to_datadog ( type ) DataDogService . increment_counter ( app_name : Constants . DATADOG_METRICS . HEARINGS . APP_NAME , metric_group : Constants . DATADOG_METRICS . HEARINGS . REMINDER_EMAILS_GROUP_NAME , metric_name : "emails.would_be_sent" , attrs : { reminder_type : type , hearing_id : hearing . id , request_type : hearing . hearing_request_type , hearing_type : hearing . class . name } ) end
Remove this when we enable feature to allow reminder for all hearings
Remove this when we enable feature to allow reminder for all hearings
type