Apache Mesos
Public Member Functions | Public Attributes | List of all members
mesos::internal::master::FrameworkMetrics Struct Reference

#include <metrics.hpp>

Public Member Functions

 FrameworkMetrics (const FrameworkInfo &_frameworkInfo, bool publishPerFrameworkMetrics)
 
 ~FrameworkMetrics ()
 
void incrementCall (const mesos::scheduler::Call::Type &callType)
 
void incrementEvent (const mesos::scheduler::Event &event)
 
void incrementEvent (const FrameworkErrorMessage &message)
 
void incrementEvent (const ExitedExecutorMessage &message)
 
void incrementEvent (const LostSlaveMessage &message)
 
void incrementEvent (const InverseOffersMessage &message)
 
void incrementEvent (const ExecutorToFrameworkMessage &message)
 
void incrementEvent (const ResourceOffersMessage &message)
 
void incrementEvent (const RescindResourceOfferMessage &message)
 
void incrementEvent (const RescindInverseOfferMessage &message)
 
void incrementEvent (const FrameworkRegisteredMessage &message)
 
void incrementEvent (const FrameworkReregisteredMessage &message)
 
void incrementEvent (const StatusUpdateMessage &message)
 
void incrementEvent (const UpdateOperationStatusMessage &message)
 
void incrementTaskState (const TaskState &state)
 
void decrementActiveTaskState (const TaskState &state)
 
void incrementOperation (const Offer::Operation &operation)
 
template<typename T >
void addMetric (const T &metric)
 
template<typename T >
void removeMetric (const T &metric)
 

Public Attributes

const std::string metricPrefix
 
bool publishPerFrameworkMetrics
 
process::metrics::PushGauge subscribed
 
process::metrics::Counter calls
 
hashmap< mesos::scheduler::Call::Type, process::metrics::Countercall_types
 
process::metrics::Counter events
 
hashmap< mesos::scheduler::Event::Type, process::metrics::Counterevent_types
 
process::metrics::Counter offers_sent
 
process::metrics::Counter offers_accepted
 
process::metrics::Counter offers_declined
 
process::metrics::Counter offers_rescinded
 
hashmap< TaskState, process::metrics::Counterterminal_task_states
 
hashmap< TaskState, process::metrics::PushGaugeactive_task_states
 
process::metrics::Counter operations
 
hashmap< Offer::Operation::Type, process::metrics::Counteroperation_types
 

Constructor & Destructor Documentation

mesos::internal::master::FrameworkMetrics::FrameworkMetrics ( const FrameworkInfo &  _frameworkInfo,
bool  publishPerFrameworkMetrics 
)
mesos::internal::master::FrameworkMetrics::~FrameworkMetrics ( )

Member Function Documentation

template<typename T >
void mesos::internal::master::FrameworkMetrics::addMetric ( const T &  metric)
void mesos::internal::master::FrameworkMetrics::decrementActiveTaskState ( const TaskState &  state)
void mesos::internal::master::FrameworkMetrics::incrementCall ( const mesos::scheduler::Call::Type &  callType)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const mesos::scheduler::Event &  event)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const FrameworkErrorMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const ExitedExecutorMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const LostSlaveMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const InverseOffersMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const ExecutorToFrameworkMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const ResourceOffersMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const RescindResourceOfferMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const RescindInverseOfferMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const FrameworkRegisteredMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const FrameworkReregisteredMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const StatusUpdateMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementEvent ( const UpdateOperationStatusMessage &  message)
void mesos::internal::master::FrameworkMetrics::incrementOperation ( const Offer::Operation &  operation)
void mesos::internal::master::FrameworkMetrics::incrementTaskState ( const TaskState &  state)
template<typename T >
void mesos::internal::master::FrameworkMetrics::removeMetric ( const T &  metric)

Member Data Documentation

hashmap<TaskState, process::metrics::PushGauge> mesos::internal::master::FrameworkMetrics::active_task_states
hashmap<mesos::scheduler::Call::Type, process::metrics::Counter> mesos::internal::master::FrameworkMetrics::call_types
process::metrics::Counter mesos::internal::master::FrameworkMetrics::calls
hashmap<mesos::scheduler::Event::Type, process::metrics::Counter> mesos::internal::master::FrameworkMetrics::event_types
process::metrics::Counter mesos::internal::master::FrameworkMetrics::events
const std::string mesos::internal::master::FrameworkMetrics::metricPrefix
process::metrics::Counter mesos::internal::master::FrameworkMetrics::offers_accepted
process::metrics::Counter mesos::internal::master::FrameworkMetrics::offers_declined
process::metrics::Counter mesos::internal::master::FrameworkMetrics::offers_rescinded
process::metrics::Counter mesos::internal::master::FrameworkMetrics::offers_sent
hashmap<Offer::Operation::Type, process::metrics::Counter> mesos::internal::master::FrameworkMetrics::operation_types
process::metrics::Counter mesos::internal::master::FrameworkMetrics::operations
bool mesos::internal::master::FrameworkMetrics::publishPerFrameworkMetrics
process::metrics::PushGauge mesos::internal::master::FrameworkMetrics::subscribed
hashmap<TaskState, process::metrics::Counter> mesos::internal::master::FrameworkMetrics::terminal_task_states

The documentation for this struct was generated from the following file: