Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseAPI
    • SensorsApi

Index

Constructors

constructor

  • new SensorsApi(configuration?: Configuration): SensorsApi
  • Parameters

    • configuration: Configuration = ...

    Returns SensorsApi

Properties

Protected configuration

configuration: Configuration = ...

Methods

Protected request

  • request(context: RequestOpts): Promise<Response>
  • Parameters

    • context: RequestOpts

    Returns Promise<Response>

v1getSensors

  • v1getSensors(): Promise<InlineResponse2009>
  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get sensor objects. This method returns a list of the sensor objects in the Samsara Cloud and information about them. Get all sensors

    Returns Promise<InlineResponse2009>

v1getSensorsCargo

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get cargo monitor status (empty / full) for requested sensors. Get cargo status

    Parameters

    Returns Promise<V1CargoResponse>

v1getSensorsCargoRaw

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get cargo monitor status (empty / full) for requested sensors. Get cargo status

    Parameters

    Returns Promise<ApiResponse<V1CargoResponse>>

v1getSensorsDoor

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get door monitor status (closed / open) for requested sensors. Get door status

    Parameters

    Returns Promise<V1DoorResponse>

v1getSensorsDoorRaw

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get door monitor status (closed / open) for requested sensors. Get door status

    Parameters

    Returns Promise<ApiResponse<V1DoorResponse>>

v1getSensorsHistory

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get historical data for specified sensors. This method returns a set of historical data for the specified sensors in the specified time range and at the specified time resolution. Get sensor history

    Parameters

    Returns Promise<V1SensorHistoryResponse>

v1getSensorsHistoryRaw

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get historical data for specified sensors. This method returns a set of historical data for the specified sensors in the specified time range and at the specified time resolution. Get sensor history

    Parameters

    Returns Promise<ApiResponse<V1SensorHistoryResponse>>

v1getSensorsHumidity

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get humidity for requested sensors. This method returns the current relative humidity for the requested sensors. Get humidity

    Parameters

    Returns Promise<V1HumidityResponse>

v1getSensorsHumidityRaw

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get humidity for requested sensors. This method returns the current relative humidity for the requested sensors. Get humidity

    Parameters

    Returns Promise<ApiResponse<V1HumidityResponse>>

v1getSensorsRaw

  • v1getSensorsRaw(): Promise<ApiResponse<InlineResponse2009>>
  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get sensor objects. This method returns a list of the sensor objects in the Samsara Cloud and information about them. Get all sensors

    Returns Promise<ApiResponse<InlineResponse2009>>

v1getSensorsTemperature

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get temperature for requested sensors. This method returns the current ambient temperature (and probe temperature if applicable) for the requested sensors. Get temperature

    Parameters

    Returns Promise<V1TemperatureResponse>

v1getSensorsTemperatureRaw

  • <n class="warning"> <i class="fa fa-exclamation-circle"> This endpoint is still on our legacy API. Get temperature for requested sensors. This method returns the current ambient temperature (and probe temperature if applicable) for the requested sensors. Get temperature

    Parameters

    Returns Promise<ApiResponse<V1TemperatureResponse>>

withMiddleware

  • withMiddleware<T>(...middlewares: Middleware[]): T
  • Type parameters

    • T: BaseAPI<T>

    Parameters

    • Rest ...middlewares: Middleware[]

    Returns T

withPostMiddleware

  • withPostMiddleware<T>(...postMiddlewares: ((context: ResponseContext) => Promise<void | Response>)[]): T
  • Type parameters

    • T: BaseAPI<T>

    Parameters

    • Rest ...postMiddlewares: ((context: ResponseContext) => Promise<void | Response>)[]

    Returns T

withPreMiddleware

  • withPreMiddleware<T>(...preMiddlewares: ((context: RequestContext) => Promise<void | FetchParams>)[]): T
  • Type parameters

    • T: BaseAPI<T>

    Parameters

    • Rest ...preMiddlewares: ((context: RequestContext) => Promise<void | FetchParams>)[]

    Returns T

Generated using TypeDoc