API Stability Long-Term

The installedPackage() GraphQL query provides details for a specific package installed on a specific view.

For more information on packages, see the Packages documentation page.

Syntax

Below is the syntax for the installedPackage() query field:

graphql
installedPackage(
     packageId: VersionedPackageSpecifier!, 
     viewName: string!
   ): PackageInstallation

For the VersionedPackageSpecifier, you'll have to know the package name and it's version. Below is an example of how this might be given:

Show:
graphql
query {
  installedPackage(packageId: "humio/insights@0.0.14", viewName: "humio") 
  {
    installedBy{username,timestamp}, 
    updatedBy{username, timestamp},
    availableUpdate, source
  }
}
Example Responses
Show:
json
{
  "data": {
    "installedPackage": {
      "installedBy": {
        "username": "System",
        "timestamp": "2024-10-10T11:09:56.280Z"
      },
      "updatedBy": {
        "username": "System",
        "timestamp": "2024-10-10T11:09:56.280Z"
      },
      "availableUpdate": null,
      "source": "HumioHub"
    }
  }
}

There are many parameters and sub-parameters for the PackageInstallation. They're listed in the table in the next section here.

Given & Returned Datatypes

The given datatype, VersionedPackageSpecifier is a scalar. The returned datatype PackageInstallation has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: PackageInstallation

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 27, 2024
availableUpdatePackageVersion  Long-TermVersion of package available for updating. PackageVersion is a scalar.
idVersionedPackageSpecifieryes Long-TermThe identifier for the package and version. VersionedPackageSpecifier is a scalar.
installedByUserAndTimestampyes Long-TermThe user identifier and time stamp for installation. See UserAndTimestamp.
packagePackage2yes Long-TermDesignate a LogScale package. See Package2.
sourcePackageInstallationSourceTypeyes Long-TermFinds updates on a package. Looks also for updates installed manually. See PackageInstallationSourceType.
updatedByUserAndTimestampyes Long-TermThe user and time stamp for the user that updated the package. See UserAndTimestamp.