REST Resource: projects.locations.assets

Resource: Asset

An asset represents a resource in your environment. Asset types include virtual machines and databases.

JSON representation
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "labels": {
    string: string,
    ...
  },
  "attributes": {
    string: string,
    ...
  },
  "insightList": {
    object (InsightList)
  },
  "performanceData": {
    object (AssetPerformanceData)
  },
  "sources": [
    string
  ],
  "assignedGroups": [
    string
  ],

  // Union field AssetDetails can be only one of the following:
  "machineDetails": {
    object (MachineDetails)
  }
  // End of list of possible types for union field AssetDetails.
}
Fields
name

string

Output only. The full name of the asset.

createTime

string (Timestamp format)

Output only. The timestamp when the asset was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The timestamp when the asset was last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

labels

map (key: string, value: string)

Labels as key value pairs.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

attributes

map (key: string, value: string)

Generic asset attributes.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

insightList

object (InsightList)

Output only. The list of insights associated with the asset.

performanceData

object (AssetPerformanceData)

Output only. Performance data for the asset.

sources[]

string

Output only. The list of sources contributing to the asset.

assignedGroups[]

string

Output only. The list of groups that the asset is assigned to.

Union field AssetDetails. The internal information of an asset. Only one field can be specified with different attributes based on the type of the asset. AssetDetails can be only one of the following:
machineDetails

object (MachineDetails)

Output only. Asset information specific for virtual and physical machines.

InsightList

Message containing insights list.

JSON representation
{
  "insights": [
    {
      object (Insight)
    }
  ],
  "updateTime": string
}
Fields
insights[]

object (Insight)

Output only. Insights of the list.

updateTime

string (Timestamp format)

Output only. Update timestamp.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Insight

An insight about an asset.

JSON representation
{

  // Union field insight can be only one of the following:
  "migrationInsight": {
    object (MigrationInsight)
  }
  // End of list of possible types for union field insight.
}
Fields

Union field insight.

insight can be only one of the following:

migrationInsight

object (MigrationInsight)

Output only. An insight about potential migrations for an asset.

MigrationInsight

An insight about potential migrations for an asset.

JSON representation
{
  "fit": {
    object (FitDescriptor)
  },

  // Union field migration_target can be only one of the following:
  "computeEngineTarget": {
    object (ComputeEngineMigrationTarget)
  }
  // End of list of possible types for union field migration_target.
}
Fields
fit

object (FitDescriptor)

Output only. Description of how well the asset this insight is associated with fits the proposed migration.

Union field migration_target. A target for the migration. migration_target can be only one of the following:
computeEngineTarget

object (ComputeEngineMigrationTarget)

Output only. A Google Compute Engine target.

FitDescriptor

Describes the fit level of an asset for migration to a specific target.

JSON representation
{
  "fitLevel": enum (FitLevel)
}
Fields
fitLevel

enum (FitLevel)

Fit level.

FitLevel

Fit level.

Enums
FIT_LEVEL_UNSPECIFIED Not enough information.
FIT Fit.
NO_FIT No Fit.
REQUIRES_EFFORT Fit with effort.

ComputeEngineMigrationTarget

Compute engine migration target.

JSON representation
{
  "shape": {
    object (ComputeEngineShapeDescriptor)
  }
}
Fields
shape

object (ComputeEngineShapeDescriptor)

Description of the suggested shape for the migration target.

ComputeEngineShapeDescriptor

Compute Engine target shape descriptor.

JSON representation
{
  "memoryMb": integer,
  "physicalCoreCount": integer,
  "logicalCoreCount": integer,
  "series": string,
  "machineType": string
}
Fields
memoryMb

integer

Memory in mebibytes.

physicalCoreCount

integer

Number of physical cores.

logicalCoreCount

integer

Number of logical cores.

series

string

Compute Engine machine series.

machineType

string

Compute Engine machine type.

AssetPerformanceData

Performance data for an asset.

JSON representation
{
  "dailyResourceUsageAggregations": [
    {
      object (DailyResourceUsageAggregation)
    }
  ]
}
Fields
dailyResourceUsageAggregations[]

object (DailyResourceUsageAggregation)

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days. Aggregations are sorted from oldest to most recent.

DailyResourceUsageAggregation

Usage data aggregation for a single day.

JSON representation
{
  "date": {
    object (Date)
  },
  "cpu": {
    object (CPU)
  },
  "memory": {
    object (Memory)
  },
  "network": {
    object (Network)
  },
  "disk": {
    object (Disk)
  }
}
Fields
date

object (Date)

Aggregation date. Day boundaries are at midnight UTC.

cpu

object (CPU)

CPU usage.

memory

object (Memory)

Memory usage.

network

object (Network)

Network usage.

disk

object (Disk)

Disk usage.

CPU

Statistical aggregation of CPU usage.

JSON representation
{
  "utilizationPercentage": {
    object (Stats)
  }
}
Fields
utilizationPercentage

object (Stats)

CPU utilization percentage.

Stats

Statistical aggregation of samples for a single resource usage.

JSON representation
{
  "average": number,
  "median": number,
  "ninteyFifthPercentile": number,
  "peak": number
}
Fields
average

number

Average usage value.

median

number

Median usage value.

ninteyFifthPercentile

number

95th percentile usage value.

peak

number

Peak usage value.

Memory

Statistical aggregation of memory usage.

JSON representation
{
  "utilizationPercentage": {
    object (Stats)
  }
}
Fields
utilizationPercentage

object (Stats)

Memory utilization percentage.

Network

Statistical aggregation of network usage.

JSON representation
{
  "ingressBps": {
    object (Stats)
  },
  "egressBps": {
    object (Stats)
  }
}
Fields
ingressBps

object (Stats)

Network ingress in B/s.

egressBps

object (Stats)

Network egress in B/s.

Disk

Statistical aggregation of disk usage.

JSON representation
{
  "iops": {
    object (Stats)
  }
}
Fields
iops

object (Stats)

Disk I/O operations per second.

Methods

aggregateValues

Aggregates the requested fields based on provided function.

batchDelete

Deletes list of Assets.

batchUpdate

Updates the parameters of a list of assets.

delete

Deletes an asset.

get

Gets the details of an asset.

list

Lists all the assets in a given project and location.

patch

Updates the parameters of an asset.

reportAssetFrames

Reports a set of frames.