amazonka-storagegateway-2.0: Amazon Storage Gateway SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.StorageGateway.DescribeCache

Description

Returns information about the cache of a gateway. This operation is only supported in the cached volume, tape, and file gateway types.

The response includes disk IDs that are configured as cache, and it includes the amount of cache allocated and used.

Synopsis

Creating a Request

data DescribeCache Source #

See: newDescribeCache smart constructor.

Constructors

DescribeCache' 

Fields

Instances

Instances details
ToJSON DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

ToHeaders DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

ToPath DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

ToQuery DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

AWSRequest DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

Associated Types

type AWSResponse DescribeCache #

Generic DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

Associated Types

type Rep DescribeCache :: Type -> Type #

Read DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

Show DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

NFData DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

Methods

rnf :: DescribeCache -> () #

Eq DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

Hashable DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

type AWSResponse DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

type Rep DescribeCache Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

type Rep DescribeCache = D1 ('MetaData "DescribeCache" "Amazonka.StorageGateway.DescribeCache" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "DescribeCache'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDescribeCache Source #

Create a value of DescribeCache with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeCache, describeCache_gatewayARN - Undocumented member.

Request Lenses

Destructuring the Response

data DescribeCacheResponse Source #

See: newDescribeCacheResponse smart constructor.

Constructors

DescribeCacheResponse' 

Fields

  • cacheAllocatedInBytes :: Maybe Integer

    The amount of cache in bytes allocated to a gateway.

  • cacheDirtyPercentage :: Maybe Double

    The file share's contribution to the overall percentage of the gateway's cache that has not been persisted to Amazon Web Services. The sample is taken at the end of the reporting period.

  • cacheHitPercentage :: Maybe Double

    Percent of application read operations from the file shares that are served from cache. The sample is taken at the end of the reporting period.

  • cacheMissPercentage :: Maybe Double

    Percent of application read operations from the file shares that are not served from cache. The sample is taken at the end of the reporting period.

  • cacheUsedPercentage :: Maybe Double

    Percent use of the gateway's cache storage. This metric applies only to the gateway-cached volume setup. The sample is taken at the end of the reporting period.

  • diskIds :: Maybe [Text]

    An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.

  • gatewayARN :: Maybe Text
     
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

Associated Types

type Rep DescribeCacheResponse :: Type -> Type #

Read DescribeCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

Show DescribeCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

NFData DescribeCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

Methods

rnf :: DescribeCacheResponse -> () #

Eq DescribeCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

type Rep DescribeCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeCache

type Rep DescribeCacheResponse = D1 ('MetaData "DescribeCacheResponse" "Amazonka.StorageGateway.DescribeCache" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "DescribeCacheResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cacheAllocatedInBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "cacheDirtyPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "cacheHitPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "cacheMissPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "cacheUsedPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "diskIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newDescribeCacheResponse Source #

Create a value of DescribeCacheResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:cacheAllocatedInBytes:DescribeCacheResponse', describeCacheResponse_cacheAllocatedInBytes - The amount of cache in bytes allocated to a gateway.

$sel:cacheDirtyPercentage:DescribeCacheResponse', describeCacheResponse_cacheDirtyPercentage - The file share's contribution to the overall percentage of the gateway's cache that has not been persisted to Amazon Web Services. The sample is taken at the end of the reporting period.

$sel:cacheHitPercentage:DescribeCacheResponse', describeCacheResponse_cacheHitPercentage - Percent of application read operations from the file shares that are served from cache. The sample is taken at the end of the reporting period.

$sel:cacheMissPercentage:DescribeCacheResponse', describeCacheResponse_cacheMissPercentage - Percent of application read operations from the file shares that are not served from cache. The sample is taken at the end of the reporting period.

$sel:cacheUsedPercentage:DescribeCacheResponse', describeCacheResponse_cacheUsedPercentage - Percent use of the gateway's cache storage. This metric applies only to the gateway-cached volume setup. The sample is taken at the end of the reporting period.

$sel:diskIds:DescribeCacheResponse', describeCacheResponse_diskIds - An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.

DescribeCache, describeCacheResponse_gatewayARN - Undocumented member.

$sel:httpStatus:DescribeCacheResponse', describeCacheResponse_httpStatus - The response's http status code.

Response Lenses

describeCacheResponse_cacheAllocatedInBytes :: Lens' DescribeCacheResponse (Maybe Integer) Source #

The amount of cache in bytes allocated to a gateway.

describeCacheResponse_cacheDirtyPercentage :: Lens' DescribeCacheResponse (Maybe Double) Source #

The file share's contribution to the overall percentage of the gateway's cache that has not been persisted to Amazon Web Services. The sample is taken at the end of the reporting period.

describeCacheResponse_cacheHitPercentage :: Lens' DescribeCacheResponse (Maybe Double) Source #

Percent of application read operations from the file shares that are served from cache. The sample is taken at the end of the reporting period.

describeCacheResponse_cacheMissPercentage :: Lens' DescribeCacheResponse (Maybe Double) Source #

Percent of application read operations from the file shares that are not served from cache. The sample is taken at the end of the reporting period.

describeCacheResponse_cacheUsedPercentage :: Lens' DescribeCacheResponse (Maybe Double) Source #

Percent use of the gateway's cache storage. This metric applies only to the gateway-cached volume setup. The sample is taken at the end of the reporting period.

describeCacheResponse_diskIds :: Lens' DescribeCacheResponse (Maybe [Text]) Source #

An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.