Get-ITGlueUserMetric

SYNOPSIS

List all user metrics

SYNTAX

__AllParameterSets

Get-ITGlueUserMetric [[-FilterDate] <string>] [[-FilterOrganizationId] <long>]
 [[-FilterResourceType] <string>] [[-FilterUserId] <long>] [[-PageNumber] <long>]
 [[-PageSize] <long>] [[-Sort] <string>] [-AllResults] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Get-ITGlueUserMetric cmdlet invokes the GET method of the /user_metrics endpoint (List all user metrics)

Returns a list of the user metrics in your account.

Example return value:

{ “data”: [ { “id”: “23948”, “type”: “user-metrics”, “attributes”: { “user-id”: 54, “organization-id”: 226, “resource-type”: “Active Directory”, “created”: 1, “viewed”: 5, “edited”: 1, “deleted”: 0, “date”: “2017-08-27” } }, { “id”: “23947”, “type”: “user-metrics”, “attributes”: { “user-id”: 54, “organization-id”: 226, “resource-type”: “Configuration”, “created”: 2, “viewed”: 24, “edited”: 3, “deleted”: 1, “date”: “2017-08-27” } } ] }

EXAMPLES

EXAMPLE 1

Get-ITGlueUserMetric

Returns the result of the /user_metrics endpoint

EXAMPLE 2

Get-ITGlueUserMetric -PageNumber 2 -PageSize 10

Returns the second page of 10 items from the /user_metrics endpoint

EXAMPLE 3

Get-ITGlueUserMetric -AllResults

Returns every item from the /user_metrics endpoint by requesting every page of the results

PARAMETERS

-AllResults

Returns all items from the endpoint by requesting every page of the results

When PageSize is not defined 1000 items are requested with each page

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterDate

The specified string must be a date range and comma-separated as ‘start_date, end_date’. The dates are UTC. Use ‘*’ for unspecified ‘start_date’ or ‘end_date’. Date ranges longer than a week may be disallowed for performance reasons.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterOrganizationId

Filter by organization id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterResourceType

Filter by resource type

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterUserId

Filter by user id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 3
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageNumber

Defines the page number to return

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 4
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageSize

Defines the number of items to return with each page

The maximum page size is 1000

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 5
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Raw

Returns the full API response (data, meta, links, & included) instead of only the data

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Sort

Notes: To Invert order use -, eg: -name Comma separated values

Allowed values: ‘id’, ‘created’, ‘viewed’, ‘edited’, ‘deleted’, ‘date’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 6
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Endpoint : GET /user_metrics