Google Cloud Gke Recommender V1 Client - Class FetchBenchmarkingDataRequest (0.1.0)

Reference documentation and code samples for the Google Cloud Gke Recommender V1 Client class FetchBenchmarkingDataRequest.

Request message for GkeInferenceQuickstart.FetchBenchmarkingData.

Generated from protobuf message google.cloud.gkerecommender.v1.FetchBenchmarkingDataRequest

Namespace

Google \ Cloud \ GkeRecommender \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ model_server_info ModelServerInfo

Required. The model server configuration to get benchmarking data for. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

↳ instance_type string

Optional. The instance type to filter benchmarking data. Instance types are in the format a2-highgpu-1g. If not provided, all instance types for the given profile's model_server_info will be returned. Use GkeInferenceQuickstart.FetchProfiles to find available instance types.

↳ pricing_model string

Optional. The pricing model to use for the benchmarking data. Defaults to spot.

getModelServerInfo

Required. The model server configuration to get benchmarking data for. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

Returns
Type Description
ModelServerInfo|null

hasModelServerInfo

clearModelServerInfo

setModelServerInfo

Required. The model server configuration to get benchmarking data for. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

Parameter
Name Description
var ModelServerInfo
Returns
Type Description
$this

getInstanceType

Optional. The instance type to filter benchmarking data. Instance types are in the format a2-highgpu-1g. If not provided, all instance types for the given profile's model_server_info will be returned. Use GkeInferenceQuickstart.FetchProfiles to find available instance types.

Returns
Type Description
string

setInstanceType

Optional. The instance type to filter benchmarking data. Instance types are in the format a2-highgpu-1g. If not provided, all instance types for the given profile's model_server_info will be returned. Use GkeInferenceQuickstart.FetchProfiles to find available instance types.

Parameter
Name Description
var string
Returns
Type Description
$this

getPricingModel

Optional. The pricing model to use for the benchmarking data. Defaults to spot.

Returns
Type Description
string

setPricingModel

Optional. The pricing model to use for the benchmarking data. Defaults to spot.

Parameter
Name Description
var string
Returns
Type Description
$this