lib/datadog/statsd.rb
def service_check(name, status, opts = EMPTY_OPTIONS)
      telemetry.sent(service_checks: 1)

      send_stat(serializer.to_service_check(name, status, opts))
    end
# This method allows you to send custom service check statuses.
#
# @param [String] name Service check name
# @param [String] status Service check status.
# @param [Hash] opts the additional data about the service check
# @option opts [Integer, String, nil] :timestamp (nil) Assign a timestamp to the service check. Default is now when none
# @option opts [String, nil] :hostname (nil) Assign a hostname to the service check.
# @option opts [Array<String>, nil] :tags (nil) An array of tags
# @option opts [String, nil] :message (nil) A message to associate with this service check status
# @example Report a critical service check status
#   $statsd.service_check('my.service.check', Statsd::CRITICAL, :tags=>['urgent'])
This method allows you to send custom service check statuses.
This method allows you to send custom service check statuses .
def service_check(name, status, opts = EMPTY_OPTIONS)
      telemetry.sent(service_checks: 1)
      send_stat(serializer.to_service_check(name, status, opts))
    end
def service_check ( name , status , opts = EMPTY_OPTIONS ) telemetry . sent ( service_checks : 1 ) send_stat ( serializer . to_service_check ( name , status , opts ) ) end
This method allows you to send custom service check statuses.
This method allows you to send custom service check statuses .
name
status
opts
:message (nil) A message to associate with this service check status
: message ( nil ) A message to associate with this service check status
opts the additional data about the service check
opts the additional data about the service check
example
Report a critical service check status $statsd.service_check('my.service.check', Statsd::CRITICAL, :tags=>['urgent'])
Report a critical service check status $statsd . service_check ( ' my . service . check ' Statsd :: CRITICAL : tags = > [ ' urgent ' ] )