_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c17800 | train | // FixNameServers returns fixed name servers | {
"resource": ""
} | ||
c17801 | train | // UnmarshalJSON converts a byte array into a CheckResponseType. | {
"resource": ""
} | ||
c17802 | train | // Return string representation of the PingdomError. | {
"resource": ""
} | ||
c17803 | train | // List return a list of reports from Pingdom. | {
"resource": ""
} | ||
c17804 | train | // PublishCheck is used to activate a check on the public report. | {
"resource": ""
} | ||
c17805 | train | // PutParams returns a map of parameters for an Team that can be sent along. | {
"resource": ""
} | ||
c17806 | train | // List return a list of probes from Pingdom. | {
"resource": ""
} | ||
c17807 | train | // ValidContact determines whether a Contact contains valid fields. | {
"resource": ""
} | ||
c17808 | train | // PostParams returns a map of params that are sent with an HTTP POST request for a User. | {
"resource": ""
} | ||
c17809 | train | // PostContactParams returns a map of params that are sent with an HTTP POST request for a Contact. | {
"resource": ""
} | ||
c17810 | train | // PutParams returns a map of params that are sent with an HTTP PUT request for a User. | {
"resource": ""
} | ||
c17811 | train | // List returns the response holding a list of Maintenance windows. | {
"resource": ""
} | ||
c17812 | train | // Read returns a Maintenance for a given ID. | {
"resource": ""
} | ||
c17813 | train | // Create creates a new Maintenance. | {
"resource": ""
} | ||
c17814 | train | // Update is used to update an existing Maintenance. Only the 'Description',
// and 'To' fields can be updated. | {
"resource": ""
} | ||
c17815 | train | // MultiDelete will delete the Maintenance for the given ID. | {
"resource": ""
} | ||
c17816 | train | // List returns a list of all users and their contact details. | {
"resource": ""
} | ||
c17817 | train | // Read return a user object from Pingdom. | {
"resource": ""
} | ||
c17818 | train | // Create adds a new user. | {
"resource": ""
} | ||
c17819 | train | // CreateContact adds a contact target to an existing user. | {
"resource": ""
} | ||
c17820 | train | // Update a user's core properties not contact targets. | {
"resource": ""
} | ||
c17821 | train | // UpdateContact updates a contact by id, will change an email to sms or sms to email
// if you provide an id for the other. | {
"resource": ""
} | ||
c17822 | train | // DeleteContact deletes a contact target from a user, either an email or sms property of a user. | {
"resource": ""
} | ||
c17823 | train | // List return a list of teams from Pingdom. | {
"resource": ""
} | ||
c17824 | train | // Read return a team object from Pingdom. | {
"resource": ""
} | ||
c17825 | train | // Create is used to create a new team. | {
"resource": ""
} | ||
c17826 | train | // Update is used to update existing team. | {
"resource": ""
} | ||
c17827 | train | // Delete will delete the Team for the given ID. | {
"resource": ""
} | ||
c17828 | train | // PutParams returns a map of parameters for an MaintenanceWindow that can be sent along. | {
"resource": ""
} | ||
c17829 | train | // Valid determines whether the MaintenanceWindow contains valid fields. This can be
// used to guard against sending illegal values to the Pingdom API. | {
"resource": ""
} | ||
c17830 | train | // DeleteParams returns a map of parameters for an MaintenanceWindow that can be sent along. | {
"resource": ""
} | ||
c17831 | train | // List returns a list of checks from Pingdom.
// This returns type CheckResponse rather than Check since the
// Pingdom API does not return a complete representation of a check. | {
"resource": ""
} | ||
c17832 | train | // Create a new check. This function will validate the given check param
// to ensure that it contains correct values before submitting the request
// Returns a CheckResponse object representing the response from Pingdom.
// Note that Pingdom does not return a full check object so in the returned
// object you should o... | {
"resource": ""
} | ||
c17833 | train | // ReadCheck returns detailed information about a pingdom check given its ID.
// This returns type CheckResponse rather than Check since the
// pingdom API does not return a complete representation of a check. | {
"resource": ""
} | ||
c17834 | train | // Update will update the check represented by the given ID with the values
// in the given check. You should submit the complete list of values in
// the given check parameter, not just those that have changed. | {
"resource": ""
} | ||
c17835 | train | // Delete will delete the check for the given ID. | {
"resource": ""
} | ||
c17836 | train | // SummaryPerformance returns a performance summary from Pingdom. | {
"resource": ""
} | ||
c17837 | train | // NewClientWithConfig returns a Pingdom client. | {
"resource": ""
} | ||
c17838 | train | // NewRequest makes a new HTTP Request. The method param should be an HTTP method in
// all caps such as GET, POST, PUT, DELETE. The rsc param should correspond with
// a restful resource. Params can be passed in as a map of strings
// Usually users of the client can use one of the convenience methods such as
// Lis... | {
"resource": ""
} | ||
c17839 | train | // Do makes an HTTP request and will unmarshal the JSON response in to the
// passed in interface. If the HTTP response is outside of the 2xx range the
// response will be returned along with the error. | {
"resource": ""
} | ||
c17840 | train | // Takes an HTTP response and determines whether it was successful.
// Returns nil if the HTTP status code is within the 2xx range. Returns
// an error otherwise. | {
"resource": ""
} | ||
c17841 | train | // PutParams returns a map of parameters for an HttpCheck that can be sent along
// with an HTTP PUT request. | {
"resource": ""
} | ||
c17842 | train | // PostParams returns a map of parameters for an HttpCheck that can be sent along
// with an HTTP POST request. They are the same than the Put params, but
// empty strings cleared out, to avoid Pingdom API reject the request. | {
"resource": ""
} | ||
c17843 | train | // Valid determines whether the HttpCheck contains valid fields. This can be
// used to guard against sending illegal values to the Pingdom API. | {
"resource": ""
} | ||
c17844 | train | // PutParams returns a map of parameters for a PingCheck that can be sent along
// with an HTTP PUT request. | {
"resource": ""
} | ||
c17845 | train | // Valid determines whether the PingCheck contains valid fields. This can be
// used to guard against sending illegal values to the Pingdom API. | {
"resource": ""
} | ||
c17846 | train | // PutParams returns a map of parameters for a TCPCheck that can be sent along
// with an HTTP PUT request. | {
"resource": ""
} | ||
c17847 | train | // Valid determines whether the TCPCheck contains valid fields. This can be
// used to guard against sending illegal values to the Pingdom API. | {
"resource": ""
} | ||
c17848 | train | // Valid determines whether a SummaryPerformanceRequest contains valid fields for the Pingdom API. | {
"resource": ""
} | ||
c17849 | train | // GetParams returns a map of params for a Pingdom SummaryPerformanceRequest. | {
"resource": ""
} | ||
c17850 | train | // XXX probably insecure | {
"resource": ""
} | ||
c17851 | train | // DiscoverGateway attempts to find a gateway device. | {
"resource": ""
} | ||
c17852 | train | // Insert adds a word to the dictionary that IS was built on.
// This is pretty slow, because of linear-time insertion into an array,
// so stick to New when you can | {
"resource": ""
} | ||
c17853 | train | // ErrorCorrect returns all byte-arrays which are Levenshtein distance of 1 away from Word
// within an allowed array of byte characters. | {
"resource": ""
} | ||
c17854 | train | // ToASCII converts a single unicode rune to the ASCII equivalent using the UnicodeToASCII table | {
"resource": ""
} | ||
c17855 | train | // UnicodeToLowerASCII converts a unicode string to ASCII bytes using the UnicodeToASCII table | {
"resource": ""
} | ||
c17856 | train | // New returns an initialized Gossip node
// which identifies itself with the given ip | {
"resource": ""
} | ||
c17857 | train | // NodeMeta is used to retrieve meta-data about the current node
// when broadcasting an alive message. It's length is limited to
// the given byte size. This metadata is available in the Node structure. | {
"resource": ""
} | ||
c17858 | train | // NotifyJoin is invoked when a node is detected to have joined.
// The Node argument must not be modified. | {
"resource": ""
} | ||
c17859 | train | // NotifyLeave is invoked when a node is detected to have left.
// The Node argument must not be modified. | {
"resource": ""
} | ||
c17860 | train | // isClusterDomainSuspectDown returns truewhen a peer node should be put in suspected offline state
// For the given nodeId, it finds out all its peers from
// the same cluster domain. If even one ping to such peer node succeeds it assumes that
// only the suspected node is down and the whole cluster domain is still op... | {
"resource": ""
} | ||
c17861 | train | // NewProbationManager returns the default implementation of Probation interface
// It takes in a name to be associated with this probation manager and a
// ProbationCallbackFn | {
"resource": ""
} | ||
c17862 | train | // isDomainActive returns true if the input failure domains is a part of
// of an active domain list | {
"resource": ""
} | ||
c17863 | train | // NewQuorumProvider returns tan implementation of Quorum interface based on
// the input type | {
"resource": ""
} | ||
c17864 | train | // Work out the rollover time based on the specified time. | {
"resource": ""
} | ||
c17865 | train | // Determine if rollover should occur. | {
"resource": ""
} | ||
c17866 | train | // Determine the files to delete when rolling over. | {
"resource": ""
} | ||
c17867 | train | // Emit a record.
// The record is formatted, and then sent to the syslog server
// in specified log level. | {
"resource": ""
} | ||
c17868 | train | // Initialize base rotating handler with specified filename for stream logging. | {
"resource": ""
} | ||
c17869 | train | // A helper function for subclass to emit record. | {
"resource": ""
} | ||
c17870 | train | // Determine if rollover should occur.
// Basically, see if the supplied record would cause the file to exceed the
// size limit we have. | {
"resource": ""
} | ||
c17871 | train | // Rotate source file to destination file if source file exists. | {
"resource": ""
} | ||
c17872 | train | // Do a rollover, as described above. | {
"resource": ""
} | ||
c17873 | train | // Initializes the handler with a specific host address and port.
// The attribute 'closeOnError' is set to true by default, which means that
// if a socket error occurs, the socket is silently closed and then reopen
// on the next loggging call. | {
"resource": ""
} | ||
c17874 | train | // Marshals the record in gob binary format and returns it ready for
// transmission across socket. | {
"resource": ""
} | ||
c17875 | train | // A factory method which allows succlasses to define the precise type of
// socket they want. | {
"resource": ""
} | ||
c17876 | train | // Send a marshaled binary to the tcp socket. | {
"resource": ""
} | ||
c17877 | train | // Send a marshaled binary to the udp socket. | {
"resource": ""
} | ||
c17878 | train | // Emit a record.
// Marshals the record and writes it to the socket in binary format.
// If there is an error with the socket, silently drop the packet.
// If there was a problem with the socket, re-establishes the socket. | {
"resource": ""
} | ||
c17879 | train | // Handles an error during logging.
// An error has occurred during logging. Most likely cause connection lost.
// Close the socket so that we can retry on the next event. | {
"resource": ""
} | ||
c17880 | train | // Close the socket. | {
"resource": ""
} | ||
c17881 | train | // Determine if the specified record is to be logged.
// Is the specified record to be logged? Returns false for no, true for yes.
// If deemed appropriate, the record may be modified in-place. | {
"resource": ""
} | ||
c17882 | train | // Add the specified filter. | {
"resource": ""
} | ||
c17883 | train | // Remove the specified filter. | {
"resource": ""
} | ||
c17884 | train | // Return a logger with the specified name, creating it if necessary.
// If empty name is specified, return the root logger. | {
"resource": ""
} | ||
c17885 | train | // Log a message with specified severity level on the root logger. | {
"resource": ""
} | ||
c17886 | train | // Open the specified file and use it as the stream for logging. | {
"resource": ""
} | ||
c17887 | train | // Apply all configuration in specified file. | {
"resource": ""
} | ||
c17888 | train | // Apply all configuration in specified json file. | {
"resource": ""
} | ||
c17889 | train | // Apply all configuration in specified yaml file. | {
"resource": ""
} | ||
c17890 | train | // Initialize the instance - basically setting the formatter to nil and the
// filterer without filter. | {
"resource": ""
} | ||
c17891 | train | // Format the specified record.
// If a formatter is set, use it. Otherwise, use the default formatter
// for the module. | {
"resource": ""
} | ||
c17892 | train | // Associate levelName with level.
// This is used when converting levels to test during message formatting. | {
"resource": ""
} | ||
c17893 | train | // Initialize a PlaceHolder with the specified logger being a child of
// this PlaceHolder. | {
"resource": ""
} | ||
c17894 | train | // Add the specified logger as a child of this PlaceHolder. | {
"resource": ""
} | ||
c17895 | train | // Find the stack frame of the caller so that we can note the source file name,
// line number and function name. | {
"resource": ""
} | ||
c17896 | train | // Initialize a standard logger instance with name and logging level. | {
"resource": ""
} | ||
c17897 | train | // Get the effective level for this logger.
// Loop through this logger and its parents in the logger hierarchy,
// looking for a non-zero logging level. Return the first one found. | {
"resource": ""
} | ||
c17898 | train | // Pass a record to all relevant handlers.
// Loop through all handlers for this logger and its parents in the logger
// hierarchy. Stop searching up the hierarchy whenever a logger with the
// "propagate" attribute set to false is found - that will be the last
// logger whose handlers are called. | {
"resource": ""
} | ||
c17899 | train | // Initialize the root logger with the name "root". | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.